예제 #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     Flags   = br.ReadInt32();
     Default = (Flags & 2) != 0;
     Dark    = (Flags & 16) != 0;
     if ((Flags & 4) != 0)
     {
         Settings = (TLWallPaperSettings)ObjectUtils.DeserializeObject(br);
     }
     else
     {
         Settings = null;
     }
 }
예제 #2
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id         = br.ReadInt64();
     Flags      = br.ReadInt32();
     Creator    = (Flags & 1) != 0;
     Default    = (Flags & 2) != 0;
     Pattern    = (Flags & 8) != 0;
     Dark       = (Flags & 16) != 0;
     AccessHash = br.ReadInt64();
     Slug       = StringUtil.Deserialize(br);
     Document   = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
     if ((Flags & 4) != 0)
     {
         Settings = (TLWallPaperSettings)ObjectUtils.DeserializeObject(br);
     }
     else
     {
         Settings = null;
     }
 }
예제 #3
0
        public override void DeserializeBody(BinaryReader br)
        {
            Flags       = br.ReadInt32();
            BaseTheme   = (TLAbsBaseTheme)ObjectUtils.DeserializeObject(br);
            AccentColor = br.ReadInt32();
            if ((Flags & 1) != 0)
            {
                MessageTopColor = br.ReadInt32();
            }
            else
            {
                MessageTopColor = null;
            }

            if ((Flags & 1) != 0)
            {
                MessageBottomColor = br.ReadInt32();
            }
            else
            {
                MessageBottomColor = null;
            }

            if ((Flags & 2) != 0)
            {
                Wallpaper = (TLAbsInputWallPaper)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                Wallpaper = null;
            }

            if ((Flags & 2) != 0)
            {
                WallpaperSettings = (TLWallPaperSettings)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                WallpaperSettings = null;
            }
        }