コード例 #1
0
ファイル: TLDcOption.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeInt(this.id, stream);
     StreamingUtils.writeTLString(this.ipAddress, stream);
     StreamingUtils.writeInt(this.port, stream);
 }
コード例 #2
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeInt(this.apiId, stream);
     StreamingUtils.writeTLString(this.apiHash, stream);
     StreamingUtils.writeTLString(this.botAuthToken, stream);
 }
コード例 #3
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(base.id, stream);
     StreamingUtils.writeTLBool(base.critical, stream);
     StreamingUtils.writeTLString(base.url, stream);
     StreamingUtils.writeTLString(base.text, stream);
 }
コード例 #4
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeInt(base.id, stream);
     StreamingUtils.writeTLString(this.about, stream);
     if ((this.flags & 1) != 0)
     {
         StreamingUtils.writeInt(this.participantsCount, stream);
     }
     if ((this.flags & 2) != 0)
     {
         StreamingUtils.writeInt(this.adminCount, stream);
     }
     if ((this.flags & 4) != 0)
     {
         StreamingUtils.writeInt(this.kickedCount, stream);
     }
     StreamingUtils.writeInt(this.readInboxMaxId, stream);
     StreamingUtils.writeInt(this.readOutboxMaxId, stream);
     StreamingUtils.writeInt(this.unreadCount, stream);
     StreamingUtils.writeTLObject(base.photo, stream);
     StreamingUtils.writeTLObject(base.notifySettings, stream);
     StreamingUtils.writeTLObject(base.exportedInvite, stream);
     StreamingUtils.writeTLVector(this.botInfo, stream);
     if ((this.flags & 0x10) != 0)
     {
         StreamingUtils.writeInt(this.migratedFromChatId, stream);
         StreamingUtils.writeInt(this.migratedFromMaxId, stream);
     }
     if ((this.flags & 0x20) != 0)
     {
         StreamingUtils.writeInt(this.pinnedMessageId, stream);
     }
 }
コード例 #5
0
ファイル: TLChannelForbidden.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeInt(base.id, stream);
     StreamingUtils.writeLong(this.accessHash, stream);
     StreamingUtils.writeTLString(this.title, stream);
 }
コード例 #6
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeDouble(this.time, stream);
     StreamingUtils.writeTLString(this.type, stream);
     StreamingUtils.writeLong(this.peer, stream);
     StreamingUtils.writeTLString(this.data, stream);
 }
コード例 #7
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(base.id, stream);
     StreamingUtils.writeTLString(base.title, stream);
     StreamingUtils.writeInt(this.bgColor, stream);
     StreamingUtils.writeInt(base.color, stream);
 }
コード例 #8
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLString(this.id, stream);
     StreamingUtils.writeTLString(this.type, stream);
     StreamingUtils.writeTLObject(this.photo, stream);
     StreamingUtils.writeTLObject(this.sendMessage, stream);
 }
コード例 #9
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeLong(base.id, stream);
     StreamingUtils.writeInt(base.parts, stream);
     StreamingUtils.writeTLString(base.md5Checksum, stream);
     StreamingUtils.writeInt(base.keyFingerprint, stream);
 }
コード例 #10
0
ファイル: TLMessageMediaContact.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLString(this.phoneNumber, stream);
     StreamingUtils.writeTLString(this.firstName, stream);
     StreamingUtils.writeTLString(this.lastName, stream);
     StreamingUtils.writeInt(this.userId, stream);
 }
コード例 #11
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeInt(this.id, stream);
     StreamingUtils.writeInt(this.fromId, stream);
     StreamingUtils.writeInt(this.chatId, stream);
     StreamingUtils.writeTLString(this.message, stream);
     StreamingUtils.writeInt(this.pts, stream);
     StreamingUtils.writeInt(this.ptsCount, stream);
     StreamingUtils.writeInt(this.date, stream);
     if ((this.flags & 4) != 0)
     {
         StreamingUtils.writeTLObject(this.fwdFrom, stream);
     }
     if ((this.flags & 0x800) != 0)
     {
         StreamingUtils.writeInt(this.viaBotId, stream);
     }
     if ((this.flags & 8) != 0)
     {
         StreamingUtils.writeInt(this.replyToMsgId, stream);
     }
     if ((this.flags & 0x80) != 0)
     {
         StreamingUtils.writeTLVector(this.entities, stream);
     }
 }
コード例 #12
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeLong(base.randomId, stream);
     StreamingUtils.writeInt(this.ttl, stream);
     StreamingUtils.writeTLString(this.message, stream);
     StreamingUtils.writeTLObject(this.media, stream);
 }
コード例 #13
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeLong(this.clientId, stream);
     StreamingUtils.writeTLString(this.phone, stream);
     StreamingUtils.writeTLString(this.firstName, stream);
     StreamingUtils.writeTLString(this.lastName, stream);
 }
コード例 #14
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.duration, stream);
     StreamingUtils.writeTLString(this.mimeType, stream);
     StreamingUtils.writeInt(this.size, stream);
     StreamingUtils.writeTLBytes(this.key, stream);
     StreamingUtils.writeTLBytes(this.iv, stream);
 }
コード例 #15
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLObject(this.geo, stream);
     StreamingUtils.writeTLString(this.title, stream);
     StreamingUtils.writeTLString(this.address, stream);
     StreamingUtils.writeTLString(this.provider, stream);
     StreamingUtils.writeTLString(this.venue_id, stream);
 }
コード例 #16
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLBytes(this.currentSalt, stream);
     StreamingUtils.writeTLBytes(base.newSalt, stream);
     StreamingUtils.writeTLString(this.hint, stream);
     StreamingUtils.writeTLBool(this.hasRecovery, stream);
     StreamingUtils.writeTLString(base.emailUnconfirmedPattern, stream);
 }
コード例 #17
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeLong(this.id, stream);
     StreamingUtils.writeTLString(this.ip, stream);
     StreamingUtils.writeTLString(this.ipv6, stream);
     StreamingUtils.writeInt(this.port, stream);
     StreamingUtils.writeTLBytes(this.peerTag, stream);
 }
コード例 #18
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLString(this.type, stream);
     StreamingUtils.writeTLObject(this.location, stream);
     StreamingUtils.writeInt(this.w, stream);
     StreamingUtils.writeInt(this.h, stream);
     StreamingUtils.writeTLBytes(this.bytes, stream);
 }
コード例 #19
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.apiId, stream);
     StreamingUtils.writeTLString(this.deviceModel, stream);
     StreamingUtils.writeTLString(this.systemVersion, stream);
     StreamingUtils.writeTLString(this.appVersion, stream);
     StreamingUtils.writeTLString(this.langCode, stream);
     StreamingUtils.writeTLMethod(this.query, stream);
 }
コード例 #20
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLString(this.url, stream);
     StreamingUtils.writeTLString(this.thumbUrl, stream);
     StreamingUtils.writeTLString(this.contentUrl, stream);
     StreamingUtils.writeTLString(this.contentType, stream);
     StreamingUtils.writeInt(this.w, stream);
     StreamingUtils.writeInt(this.h, stream);
 }
コード例 #21
0
ファイル: TLPostAddress.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLString(this.streetLine1, stream);
     StreamingUtils.writeTLString(this.streetLine2, stream);
     StreamingUtils.writeTLString(this.city, stream);
     StreamingUtils.writeTLString(this.state, stream);
     StreamingUtils.writeTLString(this.countryIso2, stream);
     StreamingUtils.writeTLString(this.postCode, stream);
 }
コード例 #22
0
ファイル: TLInputMediaVenue.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     base.serializeBody(stream);
     StreamingUtils.writeTLObject(this.inputGeoPoint, stream);
     StreamingUtils.writeTLString(this.title, stream);
     StreamingUtils.writeTLString(this.address, stream);
     StreamingUtils.writeTLString(this.provider, stream);
     StreamingUtils.writeTLString(this.venueId, stream);
 }
コード例 #23
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeTLString(this.caption, stream);
     if ((this.flags & 4) != 0)
     {
         StreamingUtils.writeTLObject(this.replyMarkup, stream);
     }
 }
コード例 #24
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeTLString(this.phoneNumber, stream);
     StreamingUtils.writeTLString(this.firstName, stream);
     StreamingUtils.writeTLString(this.lastName, stream);
     if ((this.flags & 4) != 0)
     {
         StreamingUtils.writeTLObject(this.replyMarkup, stream);
     }
 }
コード例 #25
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeLong(this.id, stream);
     StreamingUtils.writeLong(this.accessHash, stream);
     StreamingUtils.writeInt(this.date, stream);
     StreamingUtils.writeTLString(this.mimetype, stream);
     StreamingUtils.writeInt(this.size, stream);
     StreamingUtils.writeTLObject(this.thumb, stream);
     StreamingUtils.writeInt(this.dcId, stream);
     StreamingUtils.writeTLVector(this.attributes, stream);
 }
コード例 #26
0
ファイル: TLRequestAuthSendCode.cs プロジェクト: hnjm/tgsharp
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeTLString(this.phoneNumber, stream);
     if ((this.flags & 1) != 0)
     {
         StreamingUtils.writeTLBool(this.currentPhoneNumber.booleanValue(), stream);
     }
     StreamingUtils.writeInt(this.apiId, stream);
     StreamingUtils.writeTLString(this.apiHash, stream);
 }
コード例 #27
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeTLBytes(this.thumb, stream);
     StreamingUtils.writeInt(this.thumbW, stream);
     StreamingUtils.writeInt(this.thumbH, stream);
     StreamingUtils.writeTLString(this.fileName, stream);
     StreamingUtils.writeTLString(this.mimeType, stream);
     StreamingUtils.writeInt(this.size, stream);
     StreamingUtils.writeTLBytes(this.key, stream);
     StreamingUtils.writeTLBytes(this.iv, stream);
 }
コード例 #28
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeTLObject(this.peer, stream);
     StreamingUtils.writeTLString(this.q, stream);
     StreamingUtils.writeTLObject(this.filter, stream);
     StreamingUtils.writeInt(this.minDate, stream);
     StreamingUtils.writeInt(this.maxDate, stream);
     StreamingUtils.writeInt(this.offset, stream);
     StreamingUtils.writeInt(this.maxId, stream);
     StreamingUtils.writeInt(this.limit, stream);
 }
コード例 #29
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     StreamingUtils.writeLong(this.queryId, stream);
     StreamingUtils.writeInt(this.userId, stream);
     StreamingUtils.writeTLString(this.query, stream);
     if ((this.flags & 1) != 0)
     {
         StreamingUtils.writeTLObject(this.geo, stream);
     }
     StreamingUtils.writeTLString(this.offset, stream);
 }
コード例 #30
0
 public override void serializeBody(OutputStream stream)
 {
     StreamingUtils.writeInt(this.flags, stream);
     if ((this.flags & 1) != 0)
     {
         StreamingUtils.writeTLString(this.message, stream);
     }
     if ((this.flags & 4) != 0)
     {
         StreamingUtils.writeTLString(this.url, stream);
     }
     StreamingUtils.writeInt(this.cacheTime, stream);
 }