C# Класс WhatsAppApi.WhatsSendHandler

Handles sending messages to the Whatsapp servers
Показать файл Открыть проект

Открытые методы

Метод Описание
GetSubjectMessage ( string to, string id, ProtocolTreeNode child ) : ProtocolTreeNode
SendActive ( ) : void
SendAddParticipants ( string gjid, IEnumerable participants ) : void
SendAddParticipants ( string gjid, IEnumerable participants, System.Action onSuccess, Action onError ) : void
SendAvailableForChat ( string nickName ) : void
SendClearDirty ( IEnumerable categoryNames ) : void
SendClearDirty ( string category ) : void
SendClientConfig ( string platform, string lg, string lc ) : void
SendClientConfig ( string platform, string lg, string lc, Uri pushUri, bool preview, bool defaultSetting, bool groupsSetting, IEnumerable groups, Action onCompleted, Action onError ) : void
SendClose ( ) : void
SendComposing ( string to ) : void
SendCreateGroupChat ( string subject ) : void
SendCreateGroupChat ( string subject, Action onSuccess, Action onError ) : void
SendDeleteAccount ( Action onSuccess, Action onError ) : void
SendDeleteFromRoster ( string jid ) : void
SendDeliveredReceiptAck ( string to, string id ) : void
SendEndGroupChat ( string gjid ) : void
SendEndGroupChat ( string gjid, Action onSuccess, Action onError ) : void
SendGetClientConfig ( ) : void
SendGetDirty ( ) : void
SendGetGroupInfo ( string gjid ) : void
SendGetGroups ( Action onSuccess, Action onError ) : void
SendGetOwningGroups ( ) : void
SendGetParticipants ( string gjid ) : void
SendGetPhoto ( string jid, bool largeFormat ) : void
SendGetPhoto ( string jid, string expectedPhotoId, bool largeFormat, Action onComplete ) : void
SendGetPhotoIds ( IEnumerable jids ) : void
SendGetPrivacyList ( ) : void
SendGetServerProperties ( ) : void
SendGetStatus ( string jid ) : void
SendInactive ( ) : void
SendLeaveGroup ( string gjid ) : void
SendLeaveGroup ( string gjid, Action onSuccess, Action onError ) : void
SendLeaveGroups ( IEnumerable gjids, Action onSuccess, Action onError ) : void
SendMessage ( FMessage message ) : void
SendMessageReceived ( FMessage message ) : void
SendNop ( ) : void
SendNotificationReceived ( string jid, string id ) : void
SendPaused ( string to ) : void
SendPing ( ) : void
SendPong ( string id ) : void
SendPresenceSubscriptionRequest ( string to ) : void
SendQueryLastOnline ( string jid ) : void
SendRelayCapable ( string platform, bool value ) : void
SendRelayComplete ( string id, int millis ) : void
SendRelayTimeout ( string id ) : void
SendRemoveParticipants ( string gjid, List participants ) : void
SendRemoveParticipants ( string gjid, List participants, Action onSuccess, Action onError ) : void
SendSetGroupSubject ( string gjid, string subject ) : void
SendSetGroupSubject ( string gjid, string subject, Action onSuccess, Action onError ) : void
SendSetPhoto ( string jid, byte bytes, byte thumbnailBytes, Action onSuccess, Action onError ) : void
SendSetPrivacyBlockedList ( IEnumerable list ) : void
SendSetPrivacyBlockedList ( IEnumerable jidSet, Action onSuccess, Action onError ) : void
SendStatusUpdate ( string status, Action onComplete, Action onError ) : void
SendSubjectReceived ( string to, string id ) : void
SendUnsubscribeHim ( string jid ) : void
SendUnsubscribeMe ( string jid ) : void
SendVisibleReceiptAck ( string to, string id ) : void
WhatsSendHandler ( WhatsNetwork net ) : System

Приватные методы

Метод Описание
GetMessageNode ( FMessage message, ProtocolTreeNode pNode ) : ProtocolTreeNode
ProcessGroupSettings ( IEnumerable groups ) : IEnumerable
SendGetGroups ( string id, string type ) : void
SendMessageWithBody ( FMessage message ) : void
SendMessageWithMedia ( FMessage message ) : void
SendReceiptAck ( string to, string id, string receiptType ) : void
SendVerbParticipants ( string gjid, IEnumerable participants, string id, string inner_tag ) : void

Описание методов

GetSubjectMessage() публичный статический Метод

public static GetSubjectMessage ( string to, string id, ProtocolTreeNode child ) : ProtocolTreeNode
to string
id string
child WhatsAppApi.Helper.ProtocolTreeNode
Результат WhatsAppApi.Helper.ProtocolTreeNode

SendActive() публичный Метод

public SendActive ( ) : void
Результат void

SendAddParticipants() публичный Метод

public SendAddParticipants ( string gjid, IEnumerable participants ) : void
gjid string
participants IEnumerable
Результат void

SendAddParticipants() публичный Метод

public SendAddParticipants ( string gjid, IEnumerable participants, System.Action onSuccess, Action onError ) : void
gjid string
participants IEnumerable
onSuccess System.Action
onError Action
Результат void

SendAvailableForChat() публичный Метод

public SendAvailableForChat ( string nickName ) : void
nickName string
Результат void

SendClearDirty() публичный Метод

public SendClearDirty ( IEnumerable categoryNames ) : void
categoryNames IEnumerable
Результат void

SendClearDirty() публичный Метод

public SendClearDirty ( string category ) : void
category string
Результат void

SendClientConfig() публичный Метод

public SendClientConfig ( string platform, string lg, string lc ) : void
platform string
lg string
lc string
Результат void

SendClientConfig() публичный Метод

public SendClientConfig ( string platform, string lg, string lc, Uri pushUri, bool preview, bool defaultSetting, bool groupsSetting, IEnumerable groups, Action onCompleted, Action onError ) : void
platform string
lg string
lc string
pushUri Uri
preview bool
defaultSetting bool
groupsSetting bool
groups IEnumerable
onCompleted Action
onError Action
Результат void

SendClose() публичный Метод

public SendClose ( ) : void
Результат void

SendComposing() публичный Метод

public SendComposing ( string to ) : void
to string
Результат void

SendCreateGroupChat() публичный Метод

public SendCreateGroupChat ( string subject ) : void
subject string
Результат void

SendCreateGroupChat() публичный Метод

public SendCreateGroupChat ( string subject, Action onSuccess, Action onError ) : void
subject string
onSuccess Action
onError Action
Результат void

SendDeleteAccount() публичный Метод

public SendDeleteAccount ( Action onSuccess, Action onError ) : void
onSuccess Action
onError Action
Результат void

SendDeleteFromRoster() публичный Метод

public SendDeleteFromRoster ( string jid ) : void
jid string
Результат void

SendDeliveredReceiptAck() публичный Метод

public SendDeliveredReceiptAck ( string to, string id ) : void
to string
id string
Результат void

SendEndGroupChat() публичный Метод

public SendEndGroupChat ( string gjid ) : void
gjid string
Результат void

SendEndGroupChat() публичный Метод

public SendEndGroupChat ( string gjid, Action onSuccess, Action onError ) : void
gjid string
onSuccess Action
onError Action
Результат void

SendGetClientConfig() публичный Метод

public SendGetClientConfig ( ) : void
Результат void

SendGetDirty() публичный Метод

public SendGetDirty ( ) : void
Результат void

SendGetGroupInfo() публичный Метод

public SendGetGroupInfo ( string gjid ) : void
gjid string
Результат void

SendGetGroups() публичный Метод

public SendGetGroups ( Action onSuccess, Action onError ) : void
onSuccess Action
onError Action
Результат void

SendGetOwningGroups() публичный Метод

public SendGetOwningGroups ( ) : void
Результат void

SendGetParticipants() публичный Метод

public SendGetParticipants ( string gjid ) : void
gjid string
Результат void

SendGetPhoto() публичный Метод

public SendGetPhoto ( string jid, bool largeFormat ) : void
jid string
largeFormat bool
Результат void

SendGetPhoto() публичный Метод

public SendGetPhoto ( string jid, string expectedPhotoId, bool largeFormat, Action onComplete ) : void
jid string
expectedPhotoId string
largeFormat bool
onComplete Action
Результат void

SendGetPhotoIds() публичный Метод

public SendGetPhotoIds ( IEnumerable jids ) : void
jids IEnumerable
Результат void

SendGetPrivacyList() публичный Метод

public SendGetPrivacyList ( ) : void
Результат void

SendGetServerProperties() публичный Метод

public SendGetServerProperties ( ) : void
Результат void

SendGetStatus() публичный Метод

public SendGetStatus ( string jid ) : void
jid string
Результат void

SendInactive() публичный Метод

public SendInactive ( ) : void
Результат void

SendLeaveGroup() публичный Метод

public SendLeaveGroup ( string gjid ) : void
gjid string
Результат void

SendLeaveGroup() публичный Метод

public SendLeaveGroup ( string gjid, Action onSuccess, Action onError ) : void
gjid string
onSuccess Action
onError Action
Результат void

SendLeaveGroups() публичный Метод

public SendLeaveGroups ( IEnumerable gjids, Action onSuccess, Action onError ) : void
gjids IEnumerable
onSuccess Action
onError Action
Результат void

SendMessage() публичный Метод

public SendMessage ( FMessage message ) : void
message FMessage
Результат void

SendMessageReceived() публичный Метод

public SendMessageReceived ( FMessage message ) : void
message FMessage
Результат void

SendNop() публичный Метод

public SendNop ( ) : void
Результат void

SendNotificationReceived() публичный Метод

public SendNotificationReceived ( string jid, string id ) : void
jid string
id string
Результат void

SendPaused() публичный Метод

public SendPaused ( string to ) : void
to string
Результат void

SendPing() публичный Метод

public SendPing ( ) : void
Результат void

SendPong() публичный Метод

public SendPong ( string id ) : void
id string
Результат void

SendPresenceSubscriptionRequest() публичный Метод

public SendPresenceSubscriptionRequest ( string to ) : void
to string
Результат void

SendQueryLastOnline() публичный Метод

public SendQueryLastOnline ( string jid ) : void
jid string
Результат void

SendRelayCapable() публичный Метод

public SendRelayCapable ( string platform, bool value ) : void
platform string
value bool
Результат void

SendRelayComplete() публичный Метод

public SendRelayComplete ( string id, int millis ) : void
id string
millis int
Результат void

SendRelayTimeout() публичный Метод

public SendRelayTimeout ( string id ) : void
id string
Результат void

SendRemoveParticipants() публичный Метод

public SendRemoveParticipants ( string gjid, List participants ) : void
gjid string
participants List
Результат void

SendRemoveParticipants() публичный Метод

public SendRemoveParticipants ( string gjid, List participants, Action onSuccess, Action onError ) : void
gjid string
participants List
onSuccess Action
onError Action
Результат void

SendSetGroupSubject() публичный Метод

public SendSetGroupSubject ( string gjid, string subject ) : void
gjid string
subject string
Результат void

SendSetGroupSubject() публичный Метод

public SendSetGroupSubject ( string gjid, string subject, Action onSuccess, Action onError ) : void
gjid string
subject string
onSuccess Action
onError Action
Результат void

SendSetPhoto() публичный Метод

public SendSetPhoto ( string jid, byte bytes, byte thumbnailBytes, Action onSuccess, Action onError ) : void
jid string
bytes byte
thumbnailBytes byte
onSuccess Action
onError Action
Результат void

SendSetPrivacyBlockedList() публичный Метод

public SendSetPrivacyBlockedList ( IEnumerable list ) : void
list IEnumerable
Результат void

SendSetPrivacyBlockedList() публичный Метод

public SendSetPrivacyBlockedList ( IEnumerable jidSet, Action onSuccess, Action onError ) : void
jidSet IEnumerable
onSuccess Action
onError Action
Результат void

SendStatusUpdate() публичный Метод

public SendStatusUpdate ( string status, Action onComplete, Action onError ) : void
status string
onComplete Action
onError Action
Результат void

SendSubjectReceived() публичный Метод

public SendSubjectReceived ( string to, string id ) : void
to string
id string
Результат void

SendUnsubscribeHim() публичный Метод

public SendUnsubscribeHim ( string jid ) : void
jid string
Результат void

SendUnsubscribeMe() публичный Метод

public SendUnsubscribeMe ( string jid ) : void
jid string
Результат void

SendVisibleReceiptAck() публичный Метод

public SendVisibleReceiptAck ( string to, string id ) : void
to string
id string
Результат void

WhatsSendHandler() публичный Метод

public WhatsSendHandler ( WhatsNetwork net ) : System
net WhatsNetwork
Результат System