예제 #1
0
파일: TLDcOption.cs 프로젝트: hnjm/tgsharp
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags     = StreamingUtils.readInt(stream);
     this.id        = StreamingUtils.readInt(stream);
     this.ipAddress = StreamingUtils.readTLString(stream);
     this.port      = StreamingUtils.readInt(stream);
 }
예제 #2
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags        = StreamingUtils.readInt(stream);
     this.apiId        = StreamingUtils.readInt(stream);
     this.apiHash      = StreamingUtils.readTLString(stream);
     this.botAuthToken = StreamingUtils.readTLString(stream);
 }
예제 #3
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id       = StreamingUtils.readInt(stream);
     base.critical = StreamingUtils.readTLBool(stream);
     base.url      = StreamingUtils.readTLString(stream);
     base.text     = StreamingUtils.readTLString(stream);
 }
예제 #4
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     base.id    = StreamingUtils.readInt(stream);
     this.about = StreamingUtils.readTLString(stream);
     if ((this.flags & 1) != 0)
     {
         this.participantsCount = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 2) != 0)
     {
         this.adminCount = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 4) != 0)
     {
         this.kickedCount = StreamingUtils.readInt(stream);
     }
     this.readInboxMaxId  = StreamingUtils.readInt(stream);
     this.readOutboxMaxId = StreamingUtils.readInt(stream);
     this.unreadCount     = StreamingUtils.readInt(stream);
     base.photo           = StreamingUtils.readTLObject(stream, context);
     base.notifySettings  = StreamingUtils.readTLObject(stream, context);
     base.exportedInvite  = StreamingUtils.readTLObject(stream, context);
     this.botInfo         = StreamingUtils.readTLVector(stream, context);
     if ((this.flags & 0x10) != 0)
     {
         this.migratedFromChatId = StreamingUtils.readInt(stream);
         this.migratedFromMaxId  = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 0x20) != 0)
     {
         this.pinnedMessageId = StreamingUtils.readInt(stream);
     }
 }
예제 #5
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags      = StreamingUtils.readInt(stream);
     base.id         = StreamingUtils.readInt(stream);
     this.accessHash = StreamingUtils.readLong(stream);
     this.title      = StreamingUtils.readTLString(stream);
 }
예제 #6
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.time = StreamingUtils.readDouble(stream);
     this.type = StreamingUtils.readTLString(stream);
     this.peer = StreamingUtils.readLong(stream);
     this.data = StreamingUtils.readTLString(stream);
 }
예제 #7
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id      = StreamingUtils.readInt(stream);
     base.title   = StreamingUtils.readTLString(stream);
     this.bgColor = StreamingUtils.readInt(stream);
     base.color   = StreamingUtils.readInt(stream);
 }
예제 #8
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id          = StreamingUtils.readTLString(stream);
     this.type        = StreamingUtils.readTLString(stream);
     this.photo       = StreamingUtils.readTLObject(stream, context);
     this.sendMessage = StreamingUtils.readTLObject(stream, context);
 }
예제 #9
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.clientId  = StreamingUtils.readLong(stream);
     this.phone     = StreamingUtils.readTLString(stream);
     this.firstName = StreamingUtils.readTLString(stream);
     this.lastName  = StreamingUtils.readTLString(stream);
 }
예제 #10
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.id             = StreamingUtils.readLong(stream);
     base.parts          = StreamingUtils.readInt(stream);
     base.md5Checksum    = StreamingUtils.readTLString(stream);
     base.keyFingerprint = StreamingUtils.readInt(stream);
 }
예제 #11
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags    = StreamingUtils.readInt(stream);
     this.id       = StreamingUtils.readInt(stream);
     this.fromId   = StreamingUtils.readInt(stream);
     this.chatId   = StreamingUtils.readInt(stream);
     this.message  = StreamingUtils.readTLString(stream);
     this.pts      = StreamingUtils.readInt(stream);
     this.ptsCount = StreamingUtils.readInt(stream);
     this.date     = StreamingUtils.readInt(stream);
     if ((this.flags & 4) != 0)
     {
         this.fwdFrom = StreamingUtils.readTLObject(stream, context);
     }
     if ((this.flags & 0x800) != 0)
     {
         this.viaBotId = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 8) != 0)
     {
         this.replyToMsgId = StreamingUtils.readInt(stream);
     }
     if ((this.flags & 0x80) != 0)
     {
         this.entities = StreamingUtils.readTLVector(stream, context);
     }
 }
예제 #12
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.randomId = StreamingUtils.readLong(stream);
     this.ttl      = StreamingUtils.readInt(stream);
     this.message  = StreamingUtils.readTLString(stream);
     this.media    = StreamingUtils.readTLObject(stream, context);
 }
예제 #13
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.phoneNumber = StreamingUtils.readTLString(stream);
     this.firstName   = StreamingUtils.readTLString(stream);
     this.lastName    = StreamingUtils.readTLString(stream);
     this.userId      = StreamingUtils.readInt(stream);
 }
예제 #14
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.duration = StreamingUtils.readInt(stream);
     this.mimeType = StreamingUtils.readTLString(stream);
     this.size     = StreamingUtils.readInt(stream);
     this.key      = StreamingUtils.readTLBytes(stream, context);
     this.iv       = StreamingUtils.readTLBytes(stream, context);
 }
예제 #15
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.type     = StreamingUtils.readTLString(stream);
     this.location = StreamingUtils.readTLObject(stream, context);
     this.w        = StreamingUtils.readInt(stream);
     this.h        = StreamingUtils.readInt(stream);
     this.bytes    = StreamingUtils.readTLBytes(stream, context);
 }
예제 #16
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.geo      = StreamingUtils.readTLObject(stream, context);
     this.title    = StreamingUtils.readTLString(stream);
     this.address  = StreamingUtils.readTLString(stream);
     this.provider = StreamingUtils.readTLString(stream);
     this.venue_id = StreamingUtils.readTLString(stream);
 }
예제 #17
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id      = StreamingUtils.readLong(stream);
     this.ip      = StreamingUtils.readTLString(stream);
     this.ipv6    = StreamingUtils.readTLString(stream);
     this.port    = StreamingUtils.readInt(stream);
     this.peerTag = StreamingUtils.readTLBytes(stream, context);
 }
예제 #18
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.currentSalt             = StreamingUtils.readTLBytes(stream, context);
     base.newSalt                 = StreamingUtils.readTLBytes(stream, context);
     this.hint                    = StreamingUtils.readTLString(stream);
     this.hasRecovery             = StreamingUtils.readTLBool(stream);
     base.emailUnconfirmedPattern = StreamingUtils.readTLString(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags   = StreamingUtils.readInt(stream);
     this.caption = StreamingUtils.readTLString(stream);
     if ((this.flags & 4) != 0)
     {
         this.replyMarkup = StreamingUtils.readTLObject(stream, context);
     }
 }
예제 #20
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     base.deserializeBody(stream, context);
     this.inputGeoPoint = StreamingUtils.readTLObject(stream, context);
     this.title         = StreamingUtils.readTLString(stream);
     this.address       = StreamingUtils.readTLString(stream);
     this.provider      = StreamingUtils.readTLString(stream);
     this.venueId       = StreamingUtils.readTLString(stream);
 }
예제 #21
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.apiId         = StreamingUtils.readInt(stream);
     this.deviceModel   = StreamingUtils.readTLString(stream);
     this.systemVersion = StreamingUtils.readTLString(stream);
     this.appVersion    = StreamingUtils.readTLString(stream);
     this.langCode      = StreamingUtils.readTLString(stream);
     this.query         = StreamingUtils.readTLMethod(stream, context);
 }
예제 #22
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.url         = StreamingUtils.readTLString(stream);
     this.thumbUrl    = StreamingUtils.readTLString(stream);
     this.contentUrl  = StreamingUtils.readTLString(stream);
     this.contentType = StreamingUtils.readTLString(stream);
     this.w           = StreamingUtils.readInt(stream);
     this.h           = StreamingUtils.readInt(stream);
 }
예제 #23
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.streetLine1 = StreamingUtils.readTLString(stream);
     this.streetLine2 = StreamingUtils.readTLString(stream);
     this.city        = StreamingUtils.readTLString(stream);
     this.state       = StreamingUtils.readTLString(stream);
     this.countryIso2 = StreamingUtils.readTLString(stream);
     this.postCode    = StreamingUtils.readTLString(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.id         = StreamingUtils.readInt(stream);
     this.accessHash = StreamingUtils.readLong(stream);
     this.date       = StreamingUtils.readInt(stream);
     this.mimetype   = StreamingUtils.readTLString(stream);
     this.size       = StreamingUtils.readInt(stream);
     this.thumb      = StreamingUtils.readTLObject(stream, context);
     this.dcId       = StreamingUtils.readInt(stream);
     this.attributes = StreamingUtils.readTLVector(stream, context);
 }
예제 #25
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags       = StreamingUtils.readInt(stream);
     this.phoneNumber = StreamingUtils.readTLString(stream);
     if ((this.flags & 1) != 0)
     {
         this.currentPhoneNumber = Boolean.valueOf(StreamingUtils.readTLBool(stream));
     }
     this.apiId   = StreamingUtils.readInt(stream);
     this.apiHash = StreamingUtils.readTLString(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags       = StreamingUtils.readInt(stream);
     this.phoneNumber = StreamingUtils.readTLString(stream);
     this.firstName   = StreamingUtils.readTLString(stream);
     this.lastName    = StreamingUtils.readTLString(stream);
     if ((this.flags & 4) != 0)
     {
         this.replyMarkup = StreamingUtils.readTLObject(stream, context);
     }
 }
예제 #27
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags   = StreamingUtils.readInt(stream);
     this.peer    = StreamingUtils.readTLObject(stream, context);
     this.q       = StreamingUtils.readTLString(stream);
     this.filter  = StreamingUtils.readTLObject(stream, context);
     this.minDate = StreamingUtils.readInt(stream);
     this.maxDate = StreamingUtils.readInt(stream);
     this.offset  = StreamingUtils.readInt(stream);
     this.maxId   = StreamingUtils.readInt(stream);
     this.limit   = StreamingUtils.readInt(stream);
 }
예제 #28
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags   = StreamingUtils.readInt(stream);
     this.queryId = StreamingUtils.readLong(stream);
     this.userId  = StreamingUtils.readInt(stream);
     this.query   = StreamingUtils.readTLString(stream);
     if ((this.flags & 1) != 0)
     {
         this.geo = StreamingUtils.readTLObject(stream, context);
     }
     this.offset = StreamingUtils.readTLString(stream);
 }
예제 #29
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags   = StreamingUtils.readInt(stream);
     this.message = StreamingUtils.readTLString(stream);
     if ((this.flags & 2) != 0)
     {
         this.entites = StreamingUtils.readTLVector(stream, context);
     }
     if ((this.flags & 4) != 0)
     {
         this.replyMarkup = StreamingUtils.readTLObject(stream, context);
     }
 }
예제 #30
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     if ((this.flags & 1) != 0)
     {
         this.message = StreamingUtils.readTLString(stream);
     }
     if ((this.flags & 4) != 0)
     {
         this.url = StreamingUtils.readTLString(stream);
     }
     this.cacheTime = StreamingUtils.readInt(stream);
 }