Esempio n. 1
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags             = StreamingUtils.readInt(stream);
     base.id                = StreamingUtils.readInt(stream);
     this.title             = StreamingUtils.readTLString(stream);
     this.photo             = StreamingUtils.readTLObject(stream, context);
     this.participantsCount = StreamingUtils.readInt(stream);
     this.date              = StreamingUtils.readInt(stream);
     this.version           = StreamingUtils.readInt(stream);
     if ((this.flags & 0x40) != 0)
     {
         this.migratedTo = StreamingUtils.readTLObject(stream, context);
     }
 }
Esempio n. 2
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags = br.ReadInt32();
     AutofillNewBroadcasts     = (Flags & 1) != 0;
     AutofillPublicGroups      = (Flags & 2) != 0;
     AutofillNewCorrespondents = (Flags & 4) != 0;
     Id    = br.ReadInt32();
     Title = StringUtil.Deserialize(br);
     if ((Flags & 8) != 0)
     {
         Photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br);
     }
     else
     {
         Photo = null;
     }
 }
Esempio n. 3
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.flags = StreamingUtils.readInt(stream);
     base.id    = StreamingUtils.readInt(stream);
     if ((this.flags & 0x2000) != 0)
     {
         this.accessHash = StreamingUtils.readLong(stream);
     }
     this.title = StreamingUtils.readTLString(stream);
     if ((this.flags & 0x40) != 0)
     {
         this.username = StreamingUtils.readTLString(stream);
     }
     this.photo   = StreamingUtils.readTLObject(stream, context);
     this.date    = StreamingUtils.readInt(stream);
     this.version = StreamingUtils.readInt(stream);
     if ((this.flags & 0x200) != 0)
     {
         this.restrictionReason = StreamingUtils.readTLString(stream);
     }
 }
Esempio n. 4
0
 public virtual void setPhoto(TLAbsChatPhoto photo)
 {
     this.photo = photo;
 }