Skip to main content
Deno 2 is finally here 🎉️
Learn more
class DialogueCallbacks
implements OnUpdate
import { DialogueCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/DialogueCallbacks.d.ts";

Constructors

new
DialogueCallbacks(
hashUtil: HashUtil,
timeUtil: TimeUtil,
httpResponse: HttpResponseUtil,
dialogueController: DialogueController,
)

Properties

protected
dialogueController: DialogueController
protected
hashUtil: HashUtil
protected
httpResponse: HttpResponseUtil
protected
timeUtil: TimeUtil

Methods

acceptAllFriendRequests(
url: string,
sessionID: string,
): INullResponseData

Handle client/friend/request/accept-all

acceptFriendRequest(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>

Handle client/friend/request/accept

cancelFriendRequest(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>

Handle client/friend/request/cancel

clearMail(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>
declineFriendRequest(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>

Handle client/friend/request/decline

deleteFriend(
url: string,
sessionID: string,
): INullResponseData

Handle client/friend/delete

Handle client/mail/dialog/getAllAttachments

Handle client/chatServer/list

Handle client/friend/list

Handle client/mail/dialog/info

Handle client/mail/dialog/list

Handle client/mail/dialog/view

getRoute(): string
ignoreFriend(
url: string,
request: IUIDRequestData,
sessionID: string,
): INullResponseData

Handle client/friend/ignore/set

listInbox(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/friend/request/list/inbox

listOutbox(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/friend/request/list/outbox

onUpdate(timeSinceLastRun: number): Promise<boolean>
pinDialog(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/mail/dialog/pin

removeDialog(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/mail/dialog/remove

removeMail(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/friend/request/send

sendMessage(
url: string,
sessionID: string,
): IGetBodyResponseData<string>

Handle client/mail/msg/send

setRead(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/mail/dialog/read

unIgnoreFriend(
url: string,
request: IUIDRequestData,
sessionID: string,
): INullResponseData

Handle client/friend/ignore/remove

unpinDialog(
url: string,
sessionID: string,
): IGetBodyResponseData<any[]>

Handle client/mail/dialog/unpin