Esempio n. 1
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Text = StringUtil.Deserialize(br);
 }
Esempio n. 2
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(this.Constructor);
     StringUtil.Serialize(this.Text, bw);
 }
Esempio n. 3
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Id     = StringUtil.Deserialize(br);
     this.Title  = StringUtil.Deserialize(br);
     this.Prices = (TLVector <TLLabeledPrice>)ObjectUtils.DeserializeVector <TLLabeledPrice>(br);
 }
Esempio n. 4
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags = br.ReadInt32();
            id    = StringUtil.Deserialize(br);
            type  = StringUtil.Deserialize(br);
            if ((flags & 2) != 0)
            {
                title = StringUtil.Deserialize(br);
            }
            else
            {
                title = null;
            }

            if ((flags & 4) != 0)
            {
                description = StringUtil.Deserialize(br);
            }
            else
            {
                description = null;
            }

            if ((flags & 8) != 0)
            {
                url = StringUtil.Deserialize(br);
            }
            else
            {
                url = null;
            }

            if ((flags & 16) != 0)
            {
                thumb_url = StringUtil.Deserialize(br);
            }
            else
            {
                thumb_url = null;
            }

            if ((flags & 32) != 0)
            {
                content_url = StringUtil.Deserialize(br);
            }
            else
            {
                content_url = null;
            }

            if ((flags & 32) != 0)
            {
                content_type = StringUtil.Deserialize(br);
            }
            else
            {
                content_type = null;
            }

            if ((flags & 64) != 0)
            {
                w = br.ReadInt32();
            }
            else
            {
                w = null;
            }

            if ((flags & 64) != 0)
            {
                h = br.ReadInt32();
            }
            else
            {
                h = null;
            }

            if ((flags & 128) != 0)
            {
                duration = br.ReadInt32();
            }
            else
            {
                duration = null;
            }

            send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
            Type         = TLAbsInputBotInlineResultTypes.TLInputBotInlineResult;
        }
Esempio n. 5
0
 public override void DeserializeBody(BinaryReader br)
 {
     id      = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
     caption = StringUtil.Deserialize(br);
     Type    = TLAbsInputMediaTypes.TLInputMediaPhoto;
 }
Esempio n. 6
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags        = br.ReadInt32();
            @out         = (flags & 2) != 0;
            mentioned    = (flags & 16) != 0;
            media_unread = (flags & 32) != 0;
            silent       = (flags & 8192) != 0;
            post         = (flags & 16384) != 0;
            id           = br.ReadInt32();
            if ((flags & 256) != 0)
            {
                from_id = br.ReadInt32();
            }
            else
            {
                from_id = null;
            }

            to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
            if ((flags & 4) != 0)
            {
                fwd_from = (TLAbsMessageFwdHeader)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                fwd_from = null;
            }

            if ((flags & 2048) != 0)
            {
                via_bot_id = br.ReadInt32();
            }
            else
            {
                via_bot_id = null;
            }

            if ((flags & 8) != 0)
            {
                reply_to_msg_id = br.ReadInt32();
            }
            else
            {
                reply_to_msg_id = null;
            }

            date    = br.ReadInt32();
            message = StringUtil.Deserialize(br);
            if ((flags & 512) != 0)
            {
                media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                media = null;
            }

            if ((flags & 64) != 0)
            {
                reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                reply_markup = null;
            }

            if ((flags & 128) != 0)
            {
                entities = (TLVector <TLAbsMessageEntity>)ObjectUtils.DeserializeVector <TLAbsMessageEntity>(br);
            }
            else
            {
                entities = null;
            }

            if ((flags & 1024) != 0)
            {
                views = br.ReadInt32();
            }
            else
            {
                views = null;
            }

            if ((flags & 32768) != 0)
            {
                edit_date = br.ReadInt32();
            }
            else
            {
                edit_date = null;
            }

            Type = TLAbsMessageTypes.TLMessage;
        }
        public override void DeserializeBody(BinaryReader br)
        {
            url = StringUtil.Deserialize(br);
caption = StringUtil.Deserialize(br);
Type = TLAbsInputMediaTypes.TLInputMediaDocumentExternal;
        }
 public override void DeserializeBody(BinaryReader br)
 {
     title   = StringUtil.Deserialize(br);
     chat_id = br.ReadInt32();
     Type    = TLAbsMessageActionTypes.TLMessageActionChannelMigrateFrom;
 }
Esempio n. 9
0
 public override void DeserializeBody(BinaryReader br)
 {
     text = StringUtil.Deserialize(br);
     Type = TLAbsRichTextTypes.TLTextPlain;
 }
Esempio n. 10
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id    = br.ReadInt64();
     Parts = br.ReadInt32();
     Name  = StringUtil.Deserialize(br);
 }
Esempio n. 11
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id          = StringUtil.Deserialize(br);
     ShortName   = StringUtil.Deserialize(br);
     SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
 }
Esempio n. 12
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Id      = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
     this.Caption = StringUtil.Deserialize(br);
 }
Esempio n. 13
0
        public override void DeserializeBody(BinaryReader br)
        {
            Flags = br.ReadInt32();
            Id    = StringUtil.Deserialize(br);
            Type  = StringUtil.Deserialize(br);
            if ((Flags & 2) != 0)
            {
                Title = StringUtil.Deserialize(br);
            }
            else
            {
                Title = null;
            }

            if ((Flags & 4) != 0)
            {
                Description = StringUtil.Deserialize(br);
            }
            else
            {
                Description = null;
            }

            if ((Flags & 8) != 0)
            {
                Url = StringUtil.Deserialize(br);
            }
            else
            {
                Url = null;
            }

            if ((Flags & 16) != 0)
            {
                ThumbUrl = StringUtil.Deserialize(br);
            }
            else
            {
                ThumbUrl = null;
            }

            if ((Flags & 32) != 0)
            {
                ContentUrl = StringUtil.Deserialize(br);
            }
            else
            {
                ContentUrl = null;
            }

            if ((Flags & 32) != 0)
            {
                ContentType = StringUtil.Deserialize(br);
            }
            else
            {
                ContentType = null;
            }

            if ((Flags & 64) != 0)
            {
                W = br.ReadInt32();
            }
            else
            {
                W = null;
            }

            if ((Flags & 64) != 0)
            {
                H = br.ReadInt32();
            }
            else
            {
                H = null;
            }

            if ((Flags & 128) != 0)
            {
                Duration = br.ReadInt32();
            }
            else
            {
                Duration = null;
            }

            SendMessage = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br);
        }
 public override void DeserializeBody(BinaryReader br)
 {
     Text     = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
     Language = StringUtil.Deserialize(br);
 }
Esempio n. 15
0
 public override void DeserializeBody(BinaryReader br)
 {
     Title = StringUtil.Deserialize(br);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     ObjectUtils.SerializeObject(Text, bw);
     StringUtil.Serialize(Language, bw);
 }
 public override void DeserializeBody(BinaryReader br)
 {
     short_name = StringUtil.Deserialize(br);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     StringUtil.Serialize(title, bw);
     bw.Write(chat_id);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     StringUtil.Serialize(short_name, bw);
 }
Esempio n. 20
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     ObjectUtils.SerializeObject(id, bw);
     StringUtil.Serialize(caption, bw);
 }
Esempio n. 21
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id    = br.ReadInt32();
     Title = StringUtil.Deserialize(br);
 }