public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Out = (Flags & 2) != 0; Mentioned = (Flags & 16) != 0; MediaUnread = (Flags & 32) != 0; Silent = (Flags & 8192) != 0; Post = (Flags & 16384) != 0; Legacy = (Flags & 524288) != 0; Id = br.ReadInt32(); if ((Flags & 256) != 0) { FromId = br.ReadInt32(); } else { FromId = null; } ToId = (TLAbsPeer)ObjectUtils.DeserializeObject(br); if ((Flags & 8) != 0) { ReplyToMsgId = br.ReadInt32(); } else { ReplyToMsgId = null; } Date = br.ReadInt32(); Action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br); }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.id = StreamingUtils.readInt(stream); if ((this.flags & 0x100) != 0) { this.fromId = StreamingUtils.readInt(stream); } this.toId = StreamingUtils.readTLObject(stream, context); if ((this.flags & 8) != 0) { this.replyToMessageId = StreamingUtils.readInt(stream); } this.date = StreamingUtils.readInt(stream); this.action = StreamingUtils.readTLObject(stream, context); }
public virtual void setAction(TLAbsMessageAction action) { this.action = action; }