WhatsAppApi.Response.MessageRecvResponse.TypeSubject C# (CSharp) Method

TypeSubject() private method

private TypeSubject ( ProtocolTreeNode messageNode, string tmpFrom, string uJid, string tmpId, string tmpT ) : void
messageNode WhatsAppApi.Helper.ProtocolTreeNode
tmpFrom string
uJid string
tmpId string
tmpT string
return void
        private void TypeSubject(ProtocolTreeNode messageNode, string tmpFrom, string uJid, string tmpId, string tmpT)
        {
            bool flag = false;
            foreach (ProtocolTreeNode item in messageNode.GetAllChildren("request"))
            {
                if (item.GetAttribute("xmlns").Equals("urn:xmpp:receipts"))
                {
                    flag = true;
                }
            }
            ProtocolTreeNode child = messageNode.GetChild("body");
            string subject = (child == null) ? null : child.GetDataString();
            if (subject != null)
            {
                WhatsEventHandler.OnGroupNewSubjectEventHandler(tmpFrom, uJid, subject, int.Parse(tmpT, CultureInfo.InvariantCulture));
            }
            if (flag)
            {
                this.sendHandler.SendSubjectReceived(tmpFrom, tmpId);
            }
        }