C# Class WhatsAppApi.WhatsAppBase

Inheritance: WhatsAppApi.WhatsEventBase
Exibir arquivo 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_oe property

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

DEBUG public_oe static_oe property

public static bool DEBUG
return bool

DEBUGOutBound public_oe static_oe property

public static bool DEBUGOutBound
return bool

SYSEncoding public_oe static_oe property

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

_challengeBytes protected_oe property

protected byte[] _challengeBytes
return byte[]

accountinfo protected_oe property

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

hidden protected_oe property

protected bool hidden
return bool

loginStatus protected_oe property

protected CONNECTION_STATUS loginStatus
return CONNECTION_STATUS

m_LastSentInfo public_oe property

public long m_LastSentInfo
return long

messageLock protected_oe property

protected object messageLock
return object

messageQueue protected_oe property

protected List messageQueue
return List

name protected_oe property

protected string name
return string

outputKey protected_oe property

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

password protected_oe property

protected string password
return string

phoneNumber protected_oe property

protected string phoneNumber
return string

reader protected_oe property

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

timeout protected_oe property

protected int timeout
return int

uploadResponse protected_oe property

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

whatsNetwork protected_oe property

protected WhatsNetwork,WhatsAppApi whatsNetwork
return WhatsAppApi.WhatsNetwork