Skip to content

McpThreadedChatBase

Class in IpDrv · IpDrv.McpThreadedChatBase · abstract, config

Object › McpServiceBase › McpThreadedChatBase

Subclasses: McpThreadedChatV3

Using it from Lua
h7.find_all("McpThreadedChatBase")            -- live instances
h7.find_class("IpDrv.McpThreadedChatBase")   -- the class
h7.hook("IpDrv.McpThreadedChatBase.ClearChatPosts", fn)

Structs

McpChatPost

FieldType
PostIdString
ThreadIdString
OwnerIdString
OwnerNameString
ownerRankfloat
MessageString
bProfanityCheckedbool
bReportedbool
VoteUpCountint
VoteDownCountint
Popularityint
TimestampString
ReplyToOwnerIdString
ReplyToOwnerNameString
ReplyToPostIdString

McpSystemChatThread

FieldType
ThreadNameString
ThreadIdString

McpUserChatThread

Struct extends McpSystemChatThread

FieldType
OwnerIdString

Properties

NameTypeNotes
McpThreadedChatClassNameStringconfig

Functions

NameDeclaration
ClearChatPostsfunction ClearChatPosts(String ThreadId)
CreateInstancestatic final function McpThreadedChatBase CreateInstance()
CreateUserChatThreadfunction CreateUserChatThread(String McpId, String ThreadName)
DeleteUserDatafunction DeleteUserData(String McpId)
GetChatPostsfunction GetChatPosts(String ThreadId, out array<McpChatPost> ChatPosts)
GetChatPostsForUserfunction GetChatPostsForUser(String McpId, out array<McpChatPost> ChatPosts, optional String ThreadId)
GetSystemChatThreadsfunction GetSystemChatThreads(out array<McpSystemChatThread> SystemChatThreads)
GetUserChatThreadsfunction GetUserChatThreads(String McpId, out array<McpUserChatThread> UserChatThreads)
OnCreateUserChatThreadCompletedelegate OnCreateUserChatThreadComplete(bool bWasSuccessful, String McpId, String ThreadName, String Error)
OnDeleteUserDataCompletedelegate OnDeleteUserDataComplete(bool bWasSuccessful, String McpId, String Error)
OnPostToThreadCompletedelegate OnPostToThreadComplete(bool bWasSuccessful, String ThreadId, String McpId, String Error)
OnReadChatPostsCompletedelegate OnReadChatPostsComplete(bool bWasSuccessful, String ThreadId, String Error)
OnReadChatPostsConcerningUserCompletedelegate OnReadChatPostsConcerningUserComplete(bool bWasSuccessful, String ThreadId, String McpId, String Error)
OnReadSystemChatThreadsCompletedelegate OnReadSystemChatThreadsComplete(bool bWasSuccessful, String Error)
OnReadUserChatThreadsCompletedelegate OnReadUserChatThreadsComplete(bool bWasSuccessful, String McpId, String Error)
OnReportPostCompletedelegate OnReportPostComplete(bool bWasSuccessful, String PostId, String Error)
OnVoteOnPostCompletedelegate OnVoteOnPostComplete(bool bWasSuccessful, String PostId, String Error)
PostToThreadfunction PostToThread(String ThreadId, String McpId, String OwnerName, String Message, optional String ReplyToMessageId, optional String ReplyToOwnerId, optional String ReplyToOwnerName)
ReadChatPostsByPopularityfunction ReadChatPostsByPopularity(String ThreadId, int Start = 0, int Count = 20)
ReadChatPostsByTimefunction ReadChatPostsByTime(String ThreadId, String Before = "", int Count = 20)
ReadChatPostsConcerningUserfunction ReadChatPostsConcerningUser(String McpId, optional String ThreadId, optional int Start = 0, optional int Count = 20)
ReadChatPostsForUsersfunction ReadChatPostsForUsers(String ThreadId, const out array McpIds, optional int Start = 0, optional int Count = 20)
ReadSystemChatThreadsfunction ReadSystemChatThreads()
ReadUserChatThreadsfunction ReadUserChatThreads(String McpId)
ReportPostfunction ReportPost(String ThreadId, String PostId, String McpId)
VoteDownPostfunction VoteDownPost(String ThreadId, String PostId, String McpId)
VoteUpPostfunction VoteUpPost(String ThreadId, String PostId, String McpId)

Inherited

FromMembers
McpServiceBase2 properties, 16 functions
Object13 properties, 308 functions