public override void DeserializeBody(BinaryReader br)
 {
     Flags        = br.ReadInt32();
     Left         = (Flags & 1) != 0;
     UserId       = br.ReadInt32();
     KickedBy     = br.ReadInt32();
     Date         = br.ReadInt32();
     BannedRights = (TLChatBannedRights)ObjectUtils.DeserializeObject(br);
 }
Пример #2
0
        public override void DeserializeBody(BinaryReader br)
        {
            Flags             = br.ReadInt32();
            Creator           = (Flags & 1) != 0;
            Kicked            = (Flags & 2) != 0;
            Left              = (Flags & 4) != 0;
            Deactivated       = (Flags & 32) != 0;
            Id                = br.ReadInt32();
            Title             = StringUtil.Deserialize(br);
            Photo             = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br);
            ParticipantsCount = br.ReadInt32();
            Date              = br.ReadInt32();
            Version           = br.ReadInt32();
            if ((Flags & 64) != 0)
            {
                MigratedTo = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                MigratedTo = null;
            }

            if ((Flags & 16384) != 0)
            {
                AdminRights = (TLChatAdminRights)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                AdminRights = null;
            }

            if ((Flags & 262144) != 0)
            {
                DefaultBannedRights = (TLChatBannedRights)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                DefaultBannedRights = null;
            }
        }
 public override void DeserializeBody(BinaryReader br)
 {
     PrevBannedRights = (TLChatBannedRights)ObjectUtils.DeserializeObject(br);
     NewBannedRights  = (TLChatBannedRights)ObjectUtils.DeserializeObject(br);
 }