public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Pinned = (Flags & 4) != 0; Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); TopMessage = br.ReadInt32(); ReadInboxMaxId = br.ReadInt32(); ReadOutboxMaxId = br.ReadInt32(); UnreadCount = br.ReadInt32(); NotifySettings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); if ((Flags & 1) != 0) { Pts = br.ReadInt32(); } else { Pts = null; } if ((Flags & 2) != 0) { Draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); } else { Draft = null; } }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.peer = StreamingUtils.readTLObject(stream, context); this.topMessage = StreamingUtils.readInt(stream); this.readInboxMaxId = StreamingUtils.readInt(stream); this.readOutboxMaxId = StreamingUtils.readInt(stream); this.unreadCount = StreamingUtils.readInt(stream); this.notifySettings = StreamingUtils.readTLObject(stream, context); if ((this.flags & 1) != 0) { this.pts = StreamingUtils.readInt(stream); } if ((this.flags & 2) != 0) { this.draft = StreamingUtils.readTLObject(stream, context); } }
public override void DeserializeBody(BinaryReader br) { Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); Draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); }
public override void deserializeBody(InputStream stream, TLContext context) { this.peer = StreamingUtils.readTLObject(stream, context); this.draft = StreamingUtils.readTLObject(stream, context); }