C# Class WhatsSendHandler, whatsapp-desktop-client

Show file Open project: sambulosenda/whatsapp-desktop-client Class Usage Examples

Public Methods

Method Description
GetSubjectMessage ( string to, string id, ProtocolTreeNode, child ) : ProtocolTreeNode,
SendActive ( ) : void
SendAddParticipants ( string gjid, IEnumerable participants ) : void
SendAddParticipants ( string gjid, IEnumerable participants, 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

Private Methods

Method Description
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
WhatsSendHandler ( WhatsNetwork, net, BinTreeNodeWriter, writer ) : System

Method Details

GetSubjectMessage() public static method

public static GetSubjectMessage ( string to, string id, ProtocolTreeNode, child ) : ProtocolTreeNode,
to string
id string
child ProtocolTreeNode,
return ProtocolTreeNode,

SendActive() public method

public SendActive ( ) : void
return void

SendAddParticipants() public method

public SendAddParticipants ( string gjid, IEnumerable participants ) : void
gjid string
participants IEnumerable
return void

SendAddParticipants() public method

public SendAddParticipants ( string gjid, IEnumerable participants, Action onSuccess, Action onError ) : void
gjid string
participants IEnumerable
onSuccess Action
onError Action
return void

SendAvailableForChat() public method

public SendAvailableForChat ( string nickName ) : void
nickName string
return void

SendClearDirty() public method

public SendClearDirty ( IEnumerable categoryNames ) : void
categoryNames IEnumerable
return void

SendClearDirty() public method

public SendClearDirty ( string category ) : void
category string
return void

SendClientConfig() public method

public SendClientConfig ( string platform, string lg, string lc ) : void
platform string
lg string
lc string
return void

SendClientConfig() public method

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
return void

SendClose() public method

public SendClose ( ) : void
return void

SendComposing() public method

public SendComposing ( string to ) : void
to string
return void

SendCreateGroupChat() public method

public SendCreateGroupChat ( string subject ) : void
subject string
return void

SendCreateGroupChat() public method

public SendCreateGroupChat ( string subject, Action onSuccess, Action onError ) : void
subject string
onSuccess Action
onError Action
return void

SendDeleteAccount() public method

public SendDeleteAccount ( Action onSuccess, Action onError ) : void
onSuccess Action
onError Action
return void

SendDeleteFromRoster() public method

public SendDeleteFromRoster ( string jid ) : void
jid string
return void

SendDeliveredReceiptAck() public method

public SendDeliveredReceiptAck ( string to, string id ) : void
to string
id string
return void

SendEndGroupChat() public method

public SendEndGroupChat ( string gjid ) : void
gjid string
return void

SendEndGroupChat() public method

public SendEndGroupChat ( string gjid, Action onSuccess, Action onError ) : void
gjid string
onSuccess Action
onError Action
return void

SendGetClientConfig() public method

public SendGetClientConfig ( ) : void
return void

SendGetDirty() public method

public SendGetDirty ( ) : void
return void

SendGetGroupInfo() public method

public SendGetGroupInfo ( string gjid ) : void
gjid string
return void

SendGetGroups() public method

public SendGetGroups ( Action onSuccess, Action onError ) : void
onSuccess Action
onError Action
return void

SendGetOwningGroups() public method

public SendGetOwningGroups ( ) : void
return void

SendGetParticipants() public method

public SendGetParticipants ( string gjid ) : void
gjid string
return void

SendGetPhoto() public method

public SendGetPhoto ( string jid, bool largeFormat ) : void
jid string
largeFormat bool
return void

SendGetPhoto() public method

public SendGetPhoto ( string jid, string expectedPhotoId, bool largeFormat, Action onComplete ) : void
jid string
expectedPhotoId string
largeFormat bool
onComplete Action
return void

SendGetPhotoIds() public method

public SendGetPhotoIds ( IEnumerable jids ) : void
jids IEnumerable
return void

SendGetPrivacyList() public method

public SendGetPrivacyList ( ) : void
return void

SendGetServerProperties() public method

public SendGetServerProperties ( ) : void
return void

SendGetStatus() public method

public SendGetStatus ( string jid ) : void
jid string
return void

SendInactive() public method

public SendInactive ( ) : void
return void

SendLeaveGroup() public method

public SendLeaveGroup ( string gjid ) : void
gjid string
return void

SendLeaveGroup() public method

public SendLeaveGroup ( string gjid, Action onSuccess, Action onError ) : void
gjid string
onSuccess Action
onError Action
return void

SendLeaveGroups() public method

public SendLeaveGroups ( IEnumerable gjids, Action onSuccess, Action onError ) : void
gjids IEnumerable
onSuccess Action
onError Action
return void

SendMessage() public method

public SendMessage ( FMessage, message ) : void
message FMessage,
return void

SendMessageReceived() public method

public SendMessageReceived ( FMessage, message ) : void
message FMessage,
return void

SendNop() public method

public SendNop ( ) : void
return void

SendNotificationReceived() public method

public SendNotificationReceived ( string jid, string id ) : void
jid string
id string
return void

SendPaused() public method

public SendPaused ( string to ) : void
to string
return void

SendPing() public method

public SendPing ( ) : void
return void

SendPong() public method

public SendPong ( string id ) : void
id string
return void

SendPresenceSubscriptionRequest() public method

public SendPresenceSubscriptionRequest ( string to ) : void
to string
return void

SendQueryLastOnline() public method

public SendQueryLastOnline ( string jid ) : void
jid string
return void

SendRelayCapable() public method

public SendRelayCapable ( string platform, bool value ) : void
platform string
value bool
return void

SendRelayComplete() public method

public SendRelayComplete ( string id, int millis ) : void
id string
millis int
return void

SendRelayTimeout() public method

public SendRelayTimeout ( string id ) : void
id string
return void

SendRemoveParticipants() public method

public SendRemoveParticipants ( string gjid, List participants ) : void
gjid string
participants List
return void

SendRemoveParticipants() public method

public SendRemoveParticipants ( string gjid, List participants, Action onSuccess, Action onError ) : void
gjid string
participants List
onSuccess Action
onError Action
return void

SendSetGroupSubject() public method

public SendSetGroupSubject ( string gjid, string subject ) : void
gjid string
subject string
return void

SendSetGroupSubject() public method

public SendSetGroupSubject ( string gjid, string subject, Action onSuccess, Action onError ) : void
gjid string
subject string
onSuccess Action
onError Action
return void

SendSetPhoto() public method

public SendSetPhoto ( string jid, byte bytes, byte thumbnailBytes, Action onSuccess, Action onError ) : void
jid string
bytes byte
thumbnailBytes byte
onSuccess Action
onError Action
return void

SendSetPrivacyBlockedList() public method

public SendSetPrivacyBlockedList ( IEnumerable list ) : void
list IEnumerable
return void

SendSetPrivacyBlockedList() public method

public SendSetPrivacyBlockedList ( IEnumerable jidSet, Action onSuccess, Action onError ) : void
jidSet IEnumerable
onSuccess Action
onError Action
return void

SendStatusUpdate() public method

public SendStatusUpdate ( string status, Action onComplete, Action onError ) : void
status string
onComplete Action
onError Action
return void

SendSubjectReceived() public method

public SendSubjectReceived ( string to, string id ) : void
to string
id string
return void

SendUnsubscribeHim() public method

public SendUnsubscribeHim ( string jid ) : void
jid string
return void

SendUnsubscribeMe() public method

public SendUnsubscribeMe ( string jid ) : void
jid string
return void

SendVisibleReceiptAck() public method

public SendVisibleReceiptAck ( string to, string id ) : void
to string
id string
return void