Пример #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Id          = StringUtil.Deserialize(br);
     this.Type        = StringUtil.Deserialize(br);
     this.Photo       = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
     this.SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
 }
Пример #2
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;
            }

            document     = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
            send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
            Type         = TLAbsInputBotInlineResultTypes.TLInputBotInlineResultDocument;
        }
Пример #3
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;
            }

            Document    = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
            SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
        }
Пример #4
0
 public override void DeserializeBody(BinaryReader br)
 {
     id           = StringUtil.Deserialize(br);
     type         = StringUtil.Deserialize(br);
     photo        = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
     send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
 }
Пример #5
0
 public override void DeserializeBody(BinaryReader br)
 {
     id           = StringUtil.Deserialize(br);
     short_name   = StringUtil.Deserialize(br);
     send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
     Type         = TLAbsInputBotInlineResultTypes.TLInputBotInlineResultGame;
 }
Пример #6
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 = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
        }
Пример #7
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;
        }
 public override void DeserializeBody(BinaryReader br)
 {
     Id          = StringUtil.Deserialize(br);
     ShortName   = StringUtil.Deserialize(br);
     SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
 }
Пример #9
0
        public override void DeserializeBody(BinaryReader br)
        {
            this.Flags = br.ReadInt32();
            this.Id    = StringUtil.Deserialize(br);
            this.Type  = StringUtil.Deserialize(br);
            if ((this.Flags & 2) != 0)
            {
                this.Title = StringUtil.Deserialize(br);
            }
            else
            {
                this.Title = null;
            }

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

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

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

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

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

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

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

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

            this.SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br);
        }