C# Class WhatsAppApi.WhatsApp

Main api interface
Datei anzeigen Open project: rquiroz/WhatsAPINet Class Usage Examples

Public Methods

Method Description
AddMessage ( ProtocolTreeNode node ) : void
Connect ( ) : void
GetAccountInfo ( ) : AccountInfo
GetAllMessages ( ) : WhatsAppApi.Helper.ProtocolTreeNode[]
HasMessages ( ) : bool
Login ( ) : void
Message ( string to, string txt ) : void
MessageImage ( string msgid, string to, string url, string file, string size, string icon ) : void
PollMessages ( ) : void
Pong ( string msgid ) : void
RequestLastSeen ( string jid ) : void
WhatsApp ( string phoneNum, string imei, string nick, bool debug = false ) : System
encryptPassword ( ) : string
sendNickname ( string nickname ) : void

Protected Methods

Method Description
DebugPrint ( string debugMsg ) : void
addAuth ( ) : ProtocolTreeNode
addAuthResponse ( ) : ProtocolTreeNode
addFeatures ( ) : ProtocolTreeNode
authenticate ( string nonce ) : string
processChallenge ( ProtocolTreeNode node ) : void
processInboundData ( string data ) : void
sendMessageReceived ( ProtocolTreeNode msg ) : void

Private Methods

Method Description
PrintInfo ( string p ) : void
md5 ( string pass ) : string

Method Details

AddMessage() public method

public AddMessage ( ProtocolTreeNode node ) : void
node WhatsAppApi.Helper.ProtocolTreeNode
return void

Connect() public method

public Connect ( ) : void
return void

DebugPrint() protected method

protected DebugPrint ( string debugMsg ) : void
debugMsg string
return void

GetAccountInfo() public method

public GetAccountInfo ( ) : AccountInfo
return WhatsAppApi.Helper.AccountInfo

GetAllMessages() public method

public GetAllMessages ( ) : WhatsAppApi.Helper.ProtocolTreeNode[]
return WhatsAppApi.Helper.ProtocolTreeNode[]

HasMessages() public method

public HasMessages ( ) : bool
return bool

Login() public method

public Login ( ) : void
return void

Message() public method

public Message ( string to, string txt ) : void
to string
txt string
return void

MessageImage() public method

public MessageImage ( string msgid, string to, string url, string file, string size, string icon ) : void
msgid string
to string
url string
file string
size string
icon string
return void

PollMessages() public method

public PollMessages ( ) : void
return void

Pong() public method

public Pong ( string msgid ) : void
msgid string
return void

RequestLastSeen() public method

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

WhatsApp() public method

public WhatsApp ( string phoneNum, string imei, string nick, bool debug = false ) : System
phoneNum string
imei string
nick string
debug bool
return System

addAuth() protected method

protected addAuth ( ) : ProtocolTreeNode
return WhatsAppApi.Helper.ProtocolTreeNode

addAuthResponse() protected method

protected addAuthResponse ( ) : ProtocolTreeNode
return WhatsAppApi.Helper.ProtocolTreeNode

addFeatures() protected method

protected addFeatures ( ) : ProtocolTreeNode
return WhatsAppApi.Helper.ProtocolTreeNode

authenticate() protected method

protected authenticate ( string nonce ) : string
nonce string
return string

encryptPassword() public method

public encryptPassword ( ) : string
return string

processChallenge() protected method

protected processChallenge ( ProtocolTreeNode node ) : void
node WhatsAppApi.Helper.ProtocolTreeNode
return void

processInboundData() protected method

protected processInboundData ( string data ) : void
data string
return void

sendMessageReceived() protected method

protected sendMessageReceived ( ProtocolTreeNode msg ) : void
msg WhatsAppApi.Helper.ProtocolTreeNode
return void

sendNickname() public method

public sendNickname ( string nickname ) : void
nickname string
return void