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

TypeNotification() private method

private TypeNotification ( ProtocolTreeNode messageNode, string tmpAttrFrom, string tmpAttrbId ) : void
messageNode WhatsAppApi.Helper.ProtocolTreeNode
tmpAttrFrom string
tmpAttrbId string
return void
        private void TypeNotification(ProtocolTreeNode messageNode, string tmpAttrFrom, string tmpAttrbId)
        {
            //bool tmpIsRequest = false;
            foreach (ProtocolTreeNode tmpChild in (messageNode.GetAllChildren() ?? new ProtocolTreeNode[0]))
            {
                if (ProtocolTreeNode.TagEquals(tmpChild, "notification"))
                {
                    string tmpChildType = tmpChild.GetAttribute("type");
                    if (StringComparer.Ordinal.Equals(tmpChildType, "picture"))
                    {
                        TypeNotificationPicture(tmpChild, tmpAttrFrom);
                    }
                }
                else if (ProtocolTreeNode.TagEquals(tmpChild, "request"))
                {
                    this.sendHandler.SendNotificationReceived(tmpAttrFrom, tmpAttrbId);
                }
            }
        }