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

TypeNotificationPicture() private static method

private static TypeNotificationPicture ( ProtocolTreeNode tmpChild, string tmpFrom ) : void
tmpChild WhatsAppApi.Helper.ProtocolTreeNode
tmpFrom string
return void
        private static void TypeNotificationPicture(ProtocolTreeNode tmpChild, string tmpFrom)
        {
            foreach (ProtocolTreeNode item in (tmpChild.GetAllChildren() ?? new ProtocolTreeNode[0]))
            {
                if (ProtocolTreeNode.TagEquals(item, "set"))
                {
                    string photoId = item.GetAttribute("id");
                    if (photoId != null)
                    {
                        //this.EventHandler.OnPhotoChanged(tmpFrom, item.GetAttribute("author"), photoId);
                        WhatsEventHandler.OnPhotoChangedEventHandler(tmpFrom, item.GetAttribute("author"), photoId);
                    }
                }
                else if (ProtocolTreeNode.TagEquals(item, "delete"))
                {
                    //this.EventHandler.OnPhotoChanged(tmpFrom, item.GetAttribute("author"), null);
                    WhatsEventHandler.OnPhotoChangedEventHandler(tmpFrom, item.GetAttribute("author"), null);
                }
            }
        }