C# Class WhatsAppApi.WhatsAppBase

Inheritance: WhatsAppApi.WhatsEventBase
Show file Open project: kwailo888/AxolotlTestApp

Public Properties

Property Type Description
DEBUG bool
DEBUGOutBound bool
SYSEncoding System.Text.Encoding
m_LastSentInfo long

Protected Properties

Property Type Description
BinWriter WhatsAppApi.Helper.BinTreeNodeWriter
_challengeBytes byte[]
accountinfo WhatsAppApi.Helper.AccountInfo
hidden bool
loginStatus CONNECTION_STATUS
messageLock object
messageQueue List
name string
outputKey WhatsAppApi.Helper.KeyStream
password string
phoneNumber string
reader WhatsAppApi.Helper.BinTreeNodeReader
timeout int
uploadResponse WhatsAppApi.Helper.ProtocolTreeNode
whatsNetwork WhatsAppApi.WhatsNetwork

Public Methods

Method Description
Connect ( ) : void
Disconnect ( Exception ex = null ) : void
GetAccountInfo ( ) : AccountInfo
GetAllMessages ( ) : WhatsAppApi.Helper.ProtocolTreeNode[]
HasMessages ( ) : bool
SendNode ( ProtocolTreeNode node ) : void

Protected Methods

Method Description
AddMessage ( ProtocolTreeNode node ) : void
SendData ( byte data ) : void
_constructBase ( string phoneNum, string imei, string nick, bool debug, bool hidden ) : void
encryptPassword ( ) : byte[]

Method Details

AddMessage() protected method

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

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( Exception ex = null ) : void
ex System.Exception
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

SendData() protected method

protected SendData ( byte data ) : void
data byte
return void

SendNode() public method

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

_constructBase() protected method

protected _constructBase ( string phoneNum, string imei, string nick, bool debug, bool hidden ) : void
phoneNum string
imei string
nick string
debug bool
hidden bool
return void

encryptPassword() protected method

protected encryptPassword ( ) : byte[]
return byte[]

Property Details

BinWriter protected property

protected BinTreeNodeWriter,WhatsAppApi.Helper BinWriter
return WhatsAppApi.Helper.BinTreeNodeWriter

DEBUG public static property

public static bool DEBUG
return bool

DEBUGOutBound public static property

public static bool DEBUGOutBound
return bool

SYSEncoding public static property

public static Encoding,System.Text SYSEncoding
return System.Text.Encoding

_challengeBytes protected property

protected byte[] _challengeBytes
return byte[]

accountinfo protected property

protected AccountInfo,WhatsAppApi.Helper accountinfo
return WhatsAppApi.Helper.AccountInfo

hidden protected property

protected bool hidden
return bool

loginStatus protected property

protected CONNECTION_STATUS loginStatus
return CONNECTION_STATUS

m_LastSentInfo public property

public long m_LastSentInfo
return long

messageLock protected property

protected object messageLock
return object

messageQueue protected property

protected List messageQueue
return List

name protected property

protected string name
return string

outputKey protected property

protected KeyStream,WhatsAppApi.Helper outputKey
return WhatsAppApi.Helper.KeyStream

password protected property

protected string password
return string

phoneNumber protected property

protected string phoneNumber
return string

reader protected property

protected BinTreeNodeReader,WhatsAppApi.Helper reader
return WhatsAppApi.Helper.BinTreeNodeReader

timeout protected property

protected int timeout
return int

uploadResponse protected property

protected ProtocolTreeNode,WhatsAppApi.Helper uploadResponse
return WhatsAppApi.Helper.ProtocolTreeNode

whatsNetwork protected property

protected WhatsNetwork,WhatsAppApi whatsNetwork
return WhatsAppApi.WhatsNetwork