Пример #1
0
 public override void Read(TLBinaryReader from)
 {
     Id          = from.ReadInt64();
     Parts       = from.ReadInt32();
     Name        = from.ReadString();
     Md5Checksum = from.ReadString();
 }
Пример #2
0
 public override void Read(TLBinaryReader from)
 {
     Flags      = (Flag)from.ReadInt32();
     BotId      = from.ReadInt32();
     Invoice    = TLFactory.Read <TLInvoice>(from);
     ProviderId = from.ReadInt32();
     Url        = from.ReadString();
     if (HasNativeProvider)
     {
         NativeProvider = from.ReadString();
     }
     if (HasNativeParams)
     {
         NativeParams = TLFactory.Read <TLDataJSON>(from);
     }
     if (HasSavedInfo)
     {
         SavedInfo = TLFactory.Read <TLPaymentRequestedInfo>(from);
     }
     if (HasSavedCredentials)
     {
         SavedCredentials = TLFactory.Read <TLPaymentSavedCredentialsBase>(from);
     }
     Users = TLFactory.Read <TLVector <TLUserBase> >(from);
 }
Пример #3
0
 public override void Read(TLBinaryReader from)
 {
     Flags = (Flag)from.ReadInt32();
     Id    = from.ReadInt32();
     if (HasAccessHash)
     {
         AccessHash = from.ReadInt64();
     }
     Title = from.ReadString();
     if (HasUsername)
     {
         Username = from.ReadString();
     }
     Photo   = TLFactory.Read <TLChatPhotoBase>(from);
     Date    = from.ReadInt32();
     Version = from.ReadInt32();
     if (HasRestrictionReason)
     {
         RestrictionReason = from.ReadString();
     }
     if (HasAdminRights)
     {
         AdminRights = TLFactory.Read <TLChannelAdminRights>(from);
     }
     if (HasBannedRights)
     {
         BannedRights = TLFactory.Read <TLChannelBannedRights>(from);
     }
 }
Пример #4
0
 public override void Read(TLBinaryReader from)
 {
     Id          = from.ReadString();
     Type        = from.ReadString();
     Photo       = TLFactory.Read <TLInputPhotoBase>(from);
     SendMessage = TLFactory.Read <TLInputBotInlineMessageBase>(from);
 }
Пример #5
0
 public override void Read(TLBinaryReader from)
 {
     Id       = from.ReadInt32();
     Critical = from.ReadBoolean();
     Url      = from.ReadString();
     Text     = from.ReadString();
 }
Пример #6
0
 public override void Read(TLBinaryReader from)
 {
     Url        = from.ReadString();
     Size       = from.ReadInt32();
     MimeType   = from.ReadString();
     Attributes = TLFactory.Read <TLVector <TLDocumentAttributeBase> >(from);
 }
Пример #7
0
 public override void Read(TLBinaryReader from)
 {
     ClientId  = from.ReadInt64();
     Phone     = from.ReadString();
     FirstName = from.ReadString();
     LastName  = from.ReadString();
 }
Пример #8
0
 public override void Read(TLBinaryReader from)
 {
     UserId    = from.ReadInt32();
     FirstName = from.ReadString();
     LastName  = from.ReadString();
     Username  = from.ReadString();
 }
Пример #9
0
 public override void Read(TLBinaryReader from)
 {
     Time = from.ReadDouble();
     Type = from.ReadString();
     Peer = from.ReadInt64();
     Data = from.ReadString();
 }
Пример #10
0
 public override void Read(TLBinaryReader from)
 {
     Geo      = TLFactory.Read <TLGeoPointBase>(from);
     Title    = from.ReadString();
     Address  = from.ReadString();
     Provider = from.ReadString();
     VenueId  = from.ReadString();
 }
Пример #11
0
 public override void Read(TLBinaryReader from)
 {
     Id      = from.ReadInt64();
     Ip      = from.ReadString();
     Ipv6    = from.ReadString();
     Port    = from.ReadInt32();
     PeerTag = from.ReadByteArray();
 }
Пример #12
0
 public override void Read(TLBinaryReader from)
 {
     CurrentSalt             = from.ReadByteArray();
     NewSalt                 = from.ReadByteArray();
     Hint                    = from.ReadString();
     HasRecovery             = from.ReadBoolean();
     EmailUnconfirmedPattern = from.ReadString();
 }
Пример #13
0
 public override void Read(TLBinaryReader from)
 {
     Url         = from.ReadString();
     ThumbUrl    = from.ReadString();
     ContentUrl  = from.ReadString();
     ContentType = from.ReadString();
     W           = from.ReadInt32();
     H           = from.ReadInt32();
 }
Пример #14
0
 public override void Read(TLBinaryReader from)
 {
     Flags      = (Flag)from.ReadInt32();
     Id         = from.ReadInt64();
     AccessHash = from.ReadInt64();
     Title      = from.ReadString();
     ShortName  = from.ReadString();
     Count      = from.ReadInt32();
     Hash       = from.ReadInt32();
 }
Пример #15
0
 public override void Read(TLBinaryReader from)
 {
     Flags   = (Flag)from.ReadInt32();
     Url     = from.ReadString();
     Caption = from.ReadString();
     if (HasTTLSeconds)
     {
         TTLSeconds = from.ReadInt32();
     }
 }
Пример #16
0
 public override void Read(TLBinaryReader from)
 {
     Url           = from.ReadString();
     WebPageId     = from.ReadInt64();
     AuthorPhotoId = from.ReadInt64();
     Author        = from.ReadString();
     Date          = from.ReadInt32();
     Blocks        = TLFactory.Read <TLVector <TLPageBlockBase> >(from);
     Caption       = TLFactory.Read <TLRichTextBase>(from);
 }
Пример #17
0
 public override void Read(TLBinaryReader from)
 {
     Flags      = (Flag)from.ReadInt32();
     Id         = from.ReadInt64();
     Url        = from.ReadString();
     DisplayUrl = from.ReadString();
     Hash       = from.ReadInt32();
     if (HasType)
     {
         Type = from.ReadString();
     }
     if (HasSiteName)
     {
         SiteName = from.ReadString();
     }
     if (HasTitle)
     {
         Title = from.ReadString();
     }
     if (HasDescription)
     {
         Description = from.ReadString();
     }
     if (HasPhoto)
     {
         Photo = TLFactory.Read <TLPhotoBase>(from);
     }
     if (HasEmbedUrl)
     {
         EmbedUrl = from.ReadString();
     }
     if (HasEmbedType)
     {
         EmbedType = from.ReadString();
     }
     if (HasEmbedWidth)
     {
         EmbedWidth = from.ReadInt32();
     }
     if (HasEmbedHeight)
     {
         EmbedHeight = from.ReadInt32();
     }
     if (HasDuration)
     {
         Duration = from.ReadInt32();
     }
     if (HasAuthor)
     {
         Author = from.ReadString();
     }
     if (HasDocument)
     {
         Document = TLFactory.Read <TLDocumentBase>(from);
     }
     if (HasCachedPage)
     {
         CachedPage = TLFactory.Read <TLPageBase>(from);
     }
 }
 public override void Read(TLBinaryReader from)
 {
     Flags       = (Flag)from.ReadInt32();
     PhoneNumber = from.ReadString();
     FirstName   = from.ReadString();
     LastName    = from.ReadString();
     if (HasReplyMarkup)
     {
         ReplyMarkup = TLFactory.Read <TLReplyMarkupBase>(from);
     }
 }
Пример #19
0
 public override void Read(TLBinaryReader from)
 {
     Flags   = (Flag)from.ReadInt32();
     QueryId = from.ReadInt64();
     UserId  = from.ReadInt32();
     Query   = from.ReadString();
     if (HasGeo)
     {
         Geo = TLFactory.Read <TLGeoPointBase>(from);
     }
     Offset = from.ReadString();
 }
Пример #20
0
 public override void Read(TLBinaryReader from)
 {
     Flags = (Flag)from.ReadInt32();
     if (HasInboxDate)
     {
         InboxDate = from.ReadInt32();
     }
     Type     = from.ReadString();
     Message  = from.ReadString();
     Media    = TLFactory.Read <TLMessageMediaBase>(from);
     Entities = TLFactory.Read <TLVector <TLMessageEntityBase> >(from);
 }
Пример #21
0
 public override void Read(TLBinaryReader from)
 {
     Hash        = from.ReadInt64();
     BotId       = from.ReadInt32();
     Domain      = from.ReadString();
     Browser     = from.ReadString();
     Platform    = from.ReadString();
     DateCreated = from.ReadInt32();
     DateActive  = from.ReadInt32();
     Ip          = from.ReadString();
     Region      = from.ReadString();
 }
 public override void Read(TLBinaryReader from)
 {
     Flags      = (Flag)from.ReadInt32();
     File       = TLFactory.Read <TLInputFileBase>(from);
     MimeType   = from.ReadString();
     Attributes = TLFactory.Read <TLVector <TLDocumentAttributeBase> >(from);
     Caption    = from.ReadString();
     if (HasStickers)
     {
         Stickers = TLFactory.Read <TLVector <TLInputDocumentBase> >(from);
     }
 }
Пример #23
0
 public override void Read(TLBinaryReader from)
 {
     Flags = (Flag)from.ReadInt32();
     Id    = from.ReadInt32();
     if (HasFromId)
     {
         FromId = from.ReadInt32();
     }
     ToId = TLFactory.Read <TLPeerBase>(from);
     if (HasFwdFrom)
     {
         FwdFrom = TLFactory.Read <TLMessageFwdHeader>(from);
     }
     if (HasViaBotId)
     {
         ViaBotId = from.ReadInt32();
     }
     if (HasReplyToMsgId)
     {
         ReplyToMsgId = from.ReadInt32();
     }
     Date    = from.ReadInt32();
     Message = from.ReadString();
     if (HasMedia)
     {
         Media = TLFactory.Read <TLMessageMediaBase>(from);
     }
     if (HasReplyMarkup)
     {
         ReplyMarkup = TLFactory.Read <TLReplyMarkupBase>(from);
     }
     if (HasEntities)
     {
         Entities = TLFactory.Read <TLVector <TLMessageEntityBase> >(from);
     }
     if (HasViews)
     {
         Views = from.ReadInt32();
     }
     if (HasEditDate)
     {
         EditDate = from.ReadInt32();
     }
     if (HasPostAuthor)
     {
         PostAuthor = from.ReadString();
     }
     if (HasGroupedId)
     {
         GroupedId = from.ReadInt64();
     }
 }
Пример #24
0
 public override void Read(TLBinaryReader from)
 {
     Flags    = (Flag)from.ReadInt32();
     Geo      = TLFactory.Read <TLGeoPointBase>(from);
     Title    = from.ReadString();
     Address  = from.ReadString();
     Provider = from.ReadString();
     VenueId  = from.ReadString();
     if (HasReplyMarkup)
     {
         ReplyMarkup = TLFactory.Read <TLReplyMarkupBase>(from);
     }
 }
Пример #25
0
 public override void Read(TLBinaryReader from)
 {
     Flags = (Flag)from.ReadInt32();
     if (HasMessage)
     {
         Message = from.ReadString();
     }
     if (HasUrl)
     {
         Url = from.ReadString();
     }
     CacheTime = from.ReadInt32();
 }
Пример #26
0
 public override void Read(TLBinaryReader from)
 {
     Flags       = (Flag)from.ReadInt32();
     Id          = from.ReadInt64();
     AccessHash  = from.ReadInt64();
     ShortName   = from.ReadString();
     Title       = from.ReadString();
     Description = from.ReadString();
     Photo       = TLFactory.Read <TLPhotoBase>(from);
     if (HasDocument)
     {
         Document = TLFactory.Read <TLDocumentBase>(from);
     }
 }
Пример #27
0
 public override void Read(TLBinaryReader from)
 {
     Flags       = (Flag)from.ReadInt32();
     Title       = from.ReadString();
     Description = from.ReadString();
     if (HasPhoto)
     {
         Photo = TLFactory.Read <TLInputWebDocument>(from);
     }
     Invoice    = TLFactory.Read <TLInvoice>(from);
     Payload    = from.ReadByteArray();
     Provider   = from.ReadString();
     StartParam = from.ReadString();
 }
Пример #28
0
 public override void Read(TLBinaryReader from)
 {
     Flags  = (Flag)from.ReadInt32();
     UserId = from.ReadInt32();
     Query  = from.ReadString();
     if (HasGeo)
     {
         Geo = TLFactory.Read <TLGeoPointBase>(from);
     }
     Id = from.ReadString();
     if (HasMsgId)
     {
         MsgId = TLFactory.Read <TLInputBotInlineMessageID>(from);
     }
 }
Пример #29
0
 public override void Read(TLBinaryReader from)
 {
     Flags     = (Flag)from.ReadInt32();
     Id        = from.ReadInt32();
     IpAddress = from.ReadString();
     Port      = from.ReadInt32();
 }
 public override void Read(TLBinaryReader from)
 {
     Flags       = (Flag)from.ReadInt32();
     Currency    = from.ReadString();
     TotalAmount = from.ReadInt64();
     Payload     = from.ReadByteArray();
     if (HasInfo)
     {
         Info = TLFactory.Read <TLPaymentRequestedInfo>(from);
     }
     if (HasShippingOptionId)
     {
         ShippingOptionId = from.ReadString();
     }
     Charge = TLFactory.Read <TLPaymentCharge>(from);
 }