示例#1
0
文件: TLInputFile.cs 项目: Fart03/lau
 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
文件: TLChannel.cs 项目: Fart03/lau
 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();
 }
 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();
 }
 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
文件: TLWebPage.cs 项目: Fart03/lau
 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
文件: TLGame.cs 项目: Fart03/lau
 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
文件: TLDCOption.cs 项目: Fart03/lau
 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);
 }