Esempio n. 1
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt64(ClientId);
     to.WriteString(Phone ?? string.Empty);
     to.WriteString(FirstName ?? string.Empty);
     to.WriteString(LastName ?? string.Empty);
 }
Esempio n. 2
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Id ?? string.Empty);
            to.WriteString(Type ?? string.Empty);
            if (HasPhoto)
            {
                to.WriteObject(Photo);
            }
            if (HasDocument)
            {
                to.WriteObject(Document);
            }
            if (HasTitle)
            {
                to.WriteString(Title ?? string.Empty);
            }
            if (HasDescription)
            {
                to.WriteString(Description ?? string.Empty);
            }
            to.WriteObject(SendMessage);
        }
Esempio n. 3
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteInt32(Id);
            if (HasAccessHash)
            {
                to.WriteInt64(AccessHash.Value);
            }
            to.WriteString(Title ?? string.Empty);
            if (HasUsername)
            {
                to.WriteString(Username ?? string.Empty);
            }
            to.WriteObject(Photo);
            to.WriteInt32(Date);
            to.WriteInt32(Version);
            if (HasRestrictionReason)
            {
                to.WriteString(RestrictionReason ?? string.Empty);
            }
            if (HasAdminRights)
            {
                to.WriteObject(AdminRights);
            }
            if (HasBannedRights)
            {
                to.WriteObject(BannedRights);
            }
            if (HasParticipantsCount)
            {
                to.WriteInt32(ParticipantsCount.Value);
            }
        }
Esempio n. 4
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(Url ?? string.Empty);
     to.WriteInt32(Size);
     to.WriteString(MimeType ?? string.Empty);
     to.WriteObject(Attributes);
 }
Esempio n. 5
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteDouble(Time);
     to.WriteString(Type ?? string.Empty);
     to.WriteInt64(Peer);
     to.WriteString(Data ?? string.Empty);
 }
Esempio n. 6
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt32(UserId);
     to.WriteString(FirstName ?? string.Empty);
     to.WriteString(LastName ?? string.Empty);
     to.WriteString(Username ?? string.Empty);
 }
Esempio n. 7
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt64(Id);
     to.WriteInt32(Parts);
     to.WriteString(Name ?? string.Empty);
     to.WriteString(Md5Checksum ?? string.Empty);
 }
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(Id ?? string.Empty);
     to.WriteString(Type ?? string.Empty);
     to.WriteObject(Photo);
     to.WriteObject(SendMessage);
 }
Esempio n. 9
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt64(Id);
     to.WriteString(Ip ?? string.Empty);
     to.WriteString(Ipv6 ?? string.Empty);
     to.WriteInt32(Port);
     to.WriteByteArray(PeerTag);
 }
Esempio n. 10
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(Url ?? string.Empty);
     to.WriteString(ThumbUrl ?? string.Empty);
     to.WriteString(ContentUrl ?? string.Empty);
     to.WriteString(ContentType ?? string.Empty);
     to.WriteInt32(W);
     to.WriteInt32(H);
 }
Esempio n. 11
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteObject(Geo);
     to.WriteString(Title ?? string.Empty);
     to.WriteString(Address ?? string.Empty);
     to.WriteString(Provider ?? string.Empty);
     to.WriteString(VenueId ?? string.Empty);
     to.WriteString(VenueType ?? string.Empty);
 }
Esempio n. 12
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(Url ?? string.Empty);
     to.WriteInt64(WebPageId);
     to.WriteInt64(AuthorPhotoId);
     to.WriteString(Author ?? string.Empty);
     to.WriteInt32(Date);
     to.WriteObject(Blocks);
     to.WriteObject(Caption);
 }
Esempio n. 13
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt32((Int32)Flags);
     to.WriteInt64(Id);
     to.WriteInt64(AccessHash);
     to.WriteString(Title ?? string.Empty);
     to.WriteString(ShortName ?? string.Empty);
     to.WriteInt32(Count);
     to.WriteInt32(Hash);
 }
Esempio n. 14
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteInt32(Id);
            if (HasFromId)
            {
                to.WriteInt32(FromId.Value);
            }
            to.WriteObject(ToId);
            if (HasFwdFrom)
            {
                to.WriteObject(FwdFrom);
            }
            if (HasViaBotId)
            {
                to.WriteInt32(ViaBotId.Value);
            }
            if (HasReplyToMsgId)
            {
                to.WriteInt32(ReplyToMsgId.Value);
            }
            to.WriteInt32(Date);
            to.WriteString(Message ?? string.Empty);
            if (HasMedia)
            {
                to.WriteObject(Media);
            }
            if (HasReplyMarkup)
            {
                to.WriteObject(ReplyMarkup);
            }
            if (HasEntities)
            {
                to.WriteObject(Entities);
            }
            if (HasViews)
            {
                to.WriteInt32(Views.Value);
            }
            if (HasEditDate)
            {
                to.WriteInt32(EditDate.Value);
            }
            if (HasPostAuthor)
            {
                to.WriteString(PostAuthor ?? string.Empty);
            }
            if (HasGroupedId)
            {
                to.WriteInt64(GroupedId.Value);
            }
        }
Esempio n. 15
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt64(Hash);
     to.WriteInt32(BotId);
     to.WriteString(Domain ?? string.Empty);
     to.WriteString(Browser ?? string.Empty);
     to.WriteString(Platform ?? string.Empty);
     to.WriteInt32(DateCreated);
     to.WriteInt32(DateActive);
     to.WriteString(Ip ?? string.Empty);
     to.WriteString(Region ?? string.Empty);
 }
Esempio n. 16
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Url ?? string.Empty);
            to.WriteString(Caption ?? string.Empty);
            if (HasTTLSeconds)
            {
                to.WriteInt32(TTLSeconds.Value);
            }
        }
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(PhoneNumber ?? string.Empty);
            to.WriteString(FirstName ?? string.Empty);
            to.WriteString(LastName ?? string.Empty);
            if (HasReplyMarkup)
            {
                to.WriteObject(ReplyMarkup);
            }
        }
Esempio n. 18
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteInt64(QueryId);
            to.WriteInt32(UserId);
            to.WriteString(Query ?? string.Empty);
            if (HasGeo)
            {
                to.WriteObject(Geo);
            }
            to.WriteString(Offset ?? string.Empty);
        }
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            if (HasInboxDate)
            {
                to.WriteInt32(InboxDate.Value);
            }
            to.WriteString(Type ?? string.Empty);
            to.WriteString(Message ?? string.Empty);
            to.WriteObject(Media);
            to.WriteObject(Entities);
        }
Esempio n. 20
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteObject(GeoPoint);
            to.WriteString(Title ?? string.Empty);
            to.WriteString(Address ?? string.Empty);
            to.WriteString(Provider ?? string.Empty);
            to.WriteString(VenueId ?? string.Empty);
            if (HasReplyMarkup)
            {
                to.WriteObject(ReplyMarkup);
            }
        }
Esempio n. 21
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteInt32(Id);
     to.WriteString(Title ?? string.Empty);
     to.WriteObject(Sizes);
     to.WriteInt32(Color);
 }
Esempio n. 22
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(LangCode ?? string.Empty);
     to.WriteInt32(FromVersion);
     to.WriteInt32(Version);
     to.WriteObject(Strings);
 }
Esempio n. 23
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            if (HasFromId)
            {
                to.WriteInt32(FromId.Value);
            }
            to.WriteInt32(Date);
            if (HasChannelId)
            {
                to.WriteInt32(ChannelId.Value);
            }
            if (HasChannelPost)
            {
                to.WriteInt32(ChannelPost.Value);
            }
            if (HasPostAuthor)
            {
                to.WriteString(PostAuthor ?? string.Empty);
            }
            if (HasSavedFromPeer)
            {
                to.WriteObject(SavedFromPeer);
            }
            if (HasSavedFromMsgId)
            {
                to.WriteInt32(SavedFromMsgId.Value);
            }
        }
Esempio n. 24
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteInt64(Id);
            to.WriteInt64(AccessHash);
            to.WriteString(ShortName ?? string.Empty);
            to.WriteString(Title ?? string.Empty);
            to.WriteString(Description ?? string.Empty);
            to.WriteObject(Photo);
            if (HasDocument)
            {
                to.WriteObject(Document);
            }
        }
Esempio n. 25
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteInt32(Id);
            to.WriteInt32(FromId);
            to.WriteInt32(ChatId);
            to.WriteString(Message ?? string.Empty);
            to.WriteInt32(Pts);
            to.WriteInt32(PtsCount);
            to.WriteInt32(Date);
            if (HasFwdFrom)
            {
                to.WriteObject(FwdFrom);
            }
            if (HasViaBotId)
            {
                to.WriteInt32(ViaBotId.Value);
            }
            if (HasReplyToMsgId)
            {
                to.WriteInt32(ReplyToMsgId.Value);
            }
            if (HasEntities)
            {
                to.WriteObject(Entities);
            }
        }
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Caption ?? string.Empty);
            if (HasReplyMarkup) to.WriteObject(ReplyMarkup);
        }
Esempio n. 27
0
 public override void Write(TLBinaryWriter to)
 {
     to.WriteString(Type ?? string.Empty);
     to.WriteObject(Location);
     to.WriteInt32(W);
     to.WriteInt32(H);
     to.WriteByteArray(Bytes);
 }
Esempio n. 28
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Title ?? string.Empty);
            to.WriteString(Description ?? string.Empty);
            if (HasPhoto)
            {
                to.WriteObject(Photo);
            }
            to.WriteObject(Invoice);
            to.WriteByteArray(Payload);
            to.WriteString(Provider ?? string.Empty);
            to.WriteObject(ProviderData);
            to.WriteString(StartParam ?? string.Empty);
        }
Esempio n. 29
0
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Key ?? string.Empty);
            if (HasZeroValue)
            {
                to.WriteString(ZeroValue ?? string.Empty);
            }
            if (HasOneValue)
            {
                to.WriteString(OneValue ?? string.Empty);
            }
            if (HasTwoValue)
            {
                to.WriteString(TwoValue ?? string.Empty);
            }
            if (HasFewValue)
            {
                to.WriteString(FewValue ?? string.Empty);
            }
            if (HasManyValue)
            {
                to.WriteString(ManyValue ?? string.Empty);
            }
            to.WriteString(OtherValue ?? string.Empty);
        }
        public override void Write(TLBinaryWriter to)
        {
            UpdateFlags();

            to.WriteInt32((Int32)Flags);
            to.WriteString(Currency ?? string.Empty);
            to.WriteInt64(TotalAmount);
            to.WriteByteArray(Payload);
            if (HasInfo)
            {
                to.WriteObject(Info);
            }
            if (HasShippingOptionId)
            {
                to.WriteString(ShippingOptionId ?? string.Empty);
            }
            to.WriteObject(Charge);
        }