MicroMsg.sdk.WXWebpageMessage.FromProto C# (CSharp) Method

FromProto() private method

private FromProto ( object protoObj ) : void
protoObj object
return void
        internal override void FromProto(object protoObj)
        {
            WXMessageP ep = protoObj as WXMessageP;
            if (ep != null)
            {
                Title = ep.Title;
                Description = ep.Description;
                ThumbData = ep.ThumbData.ToByteArray();
                if (ep.WebpageMessage != null)
                {
                    WebpageUrl = ep.WebpageMessage.WebpageUrl;
                }
            }
        }