internal WhatsParser(WhatsNetwork whatsNet, BinTreeNodeWriter writer) { this.WhatsSendHandler = new WhatsSendHandler(whatsNet, writer); this.whatsNetwork = whatsNet; this.messResponseHandler = new MessageRecvResponse(this.WhatsSendHandler); this._binWriter = writer; }
/// <summary> /// Default constructor /// </summary> /// <param name="whatsNet">An instance of the WhatsNetwork class</param> /// <param name="writer">An instance of the BinTreeNodeWriter class</param> internal WhatsParser(WhatsNetwork whatsNet, BinTreeNodeWriter writer) { this.WhatsSendHandler = new WhatsSendHandler(whatsNet, writer); this.whatsNetwork = whatsNet; this.messResponseHandler = new MessageRecvResponse(this.WhatsSendHandler); this._binWriter = writer; }
public WhatsAppProtocol(WhatsappAccount _Acc) { this.messageQueue = new List<ProtocolTreeNode>(); WhatsAppProtocol.DEBUG = false; string[] dict = DecodeHelper.getDictionary(); this.writer = new BinTreeNodeWriter(dict); this.reader = new BinTreeNodeReader(dict); this.loginStatus = CONNECTION_STATUS.DISCONNECTED; this.whatsNetwork = new WhatsNetwork(WhatsConstants.WhatsAppHost, WhatsConstants.WhatsPort, this.timeout); this.WhatsParser = new WhatsParser(this.whatsNetwork, this.writer); this.WhatsSendHandler = this.WhatsParser.WhatsSendHandler; _incompleteBytes = new List<IncompleteMessageException>(); Acc = _Acc; }
public WhatsAppProtocol(WhatsappAccount _Acc) { this.messageQueue = new List <ProtocolTreeNode>(); WhatsAppProtocol.DEBUG = false; string[] dict = DecodeHelper.getDictionary(); this.writer = new BinTreeNodeWriter(dict); this.reader = new BinTreeNodeReader(dict); this.loginStatus = CONNECTION_STATUS.DISCONNECTED; this.whatsNetwork = new WhatsNetwork(WhatsConstants.WhatsAppHost, WhatsConstants.WhatsPort, this.timeout); this.WhatsParser = new WhatsParser(this.whatsNetwork, this.writer); this.WhatsSendHandler = this.WhatsParser.WhatsSendHandler; _incompleteBytes = new List <IncompleteMessageException>(); Acc = _Acc; }
internal WhatsSendHandler(WhatsNetwork net, BinTreeNodeWriter writer) { this.whatsNetwork = net; this._binWriter = writer; }
public WhatsParser(WhatsNetwork whatsNet) { this.WhatsSendHandler = new WhatsSendHandler(whatsNet); this.whatsNetwork = whatsNet; this.messResponseHandler = new MessageRecvResponse(this.WhatsSendHandler); }