internal override object ToProto() { WXWebpageMessageP.Builder builder = WXWebpageMessageP.CreateBuilder(); builder.WebpageUrl = WebpageUrl; WXMessageP.Builder builder2 = WXMessageP.CreateBuilder(); builder2.Type = (uint)Type(); builder2.Title = Title; builder2.Description = Description; builder2.ThumbData = ByteString.CopyFrom(ThumbData); builder2.WebpageMessage = builder.Build(); return(builder2.Build()); }
internal override object ToProto() { WXEmojiMessageP.Builder builder = WXEmojiMessageP.CreateBuilder(); builder.EmojiData = ByteString.CopyFrom(this.EmojiData); WXMessageP.Builder builder2 = WXMessageP.CreateBuilder(); builder2.Type = (uint)this.Type(); builder2.Title = this.Title; builder2.Description = this.Description; builder2.ThumbData = ByteString.CopyFrom(this.ThumbData); builder2.EmojiMessage = builder.Build(); return(builder2.Build()); }
internal override object ToProto() { WXAppExtendMessageP.Builder builder = WXAppExtendMessageP.CreateBuilder(); builder.FileData = ByteString.CopyFrom(FileData); builder.ExtInfo = ExtInfo; builder.FileName = FileName; WXMessageP.Builder builder2 = WXMessageP.CreateBuilder(); builder2.Type = (uint)Type(); builder2.Title = Title; builder2.Description = Description; builder2.ThumbData = ByteString.CopyFrom(ThumbData); builder2.AppExtendMessage = builder.Build(); return(builder2.Build()); }
internal override object ToProto() { WXTextMessageP.Builder builder = WXTextMessageP.CreateBuilder(); builder.Text = this.Text; WXMessageP.Builder builder2 = WXMessageP.CreateBuilder(); builder2.Type = (uint)this.Type(); builder2.Title = this.Title; builder2.Description = this.Description; if (this.ThumbData == null) { this.ThumbData = new byte[0]; } builder2.ThumbData = ByteString.CopyFrom(this.ThumbData); builder2.TextMessage = builder.Build(); return(builder2.Build()); }