public override void Write(TLBinaryWriter to) { to.WriteInt64(ClientId); to.WriteString(Phone ?? string.Empty); to.WriteString(FirstName ?? string.Empty); to.WriteString(LastName ?? string.Empty); }
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); }
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); } }
public override void Write(TLBinaryWriter to) { to.WriteString(Url ?? string.Empty); to.WriteInt32(Size); to.WriteString(MimeType ?? string.Empty); to.WriteObject(Attributes); }
public override void Write(TLBinaryWriter to) { to.WriteDouble(Time); to.WriteString(Type ?? string.Empty); to.WriteInt64(Peer); to.WriteString(Data ?? string.Empty); }
public override void Write(TLBinaryWriter to) { to.WriteInt32(UserId); to.WriteString(FirstName ?? string.Empty); to.WriteString(LastName ?? string.Empty); to.WriteString(Username ?? string.Empty); }
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); }
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); }
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); }
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); }
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); }
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); }
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); } }
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); }
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); } }
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); }
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); } }
public override void Write(TLBinaryWriter to) { to.WriteInt32(Id); to.WriteString(Title ?? string.Empty); to.WriteObject(Sizes); to.WriteInt32(Color); }
public override void Write(TLBinaryWriter to) { to.WriteString(LangCode ?? string.Empty); to.WriteInt32(FromVersion); to.WriteInt32(Version); to.WriteObject(Strings); }
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); } }
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); } }
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); }
public override void Write(TLBinaryWriter to) { to.WriteString(Type ?? string.Empty); to.WriteObject(Location); to.WriteInt32(W); to.WriteInt32(H); to.WriteByteArray(Bytes); }
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); }
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); }