mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
Layer-57
This commit is contained in:
parent
0752c60082
commit
23e647e81c
81 changed files with 2631 additions and 213 deletions
|
|
@ -20,8 +20,9 @@ namespace TeleSharp.TL
|
|||
|
||||
public int flags {get;set;}
|
||||
public bool installed {get;set;}
|
||||
public bool disabled {get;set;}
|
||||
public bool archived {get;set;}
|
||||
public bool official {get;set;}
|
||||
public bool masks {get;set;}
|
||||
public long id {get;set;}
|
||||
public long access_hash {get;set;}
|
||||
public string title {get;set;}
|
||||
|
|
@ -34,8 +35,9 @@ namespace TeleSharp.TL
|
|||
{
|
||||
flags = 0;
|
||||
flags = installed ? (flags | 1) : (flags & ~1);
|
||||
flags = disabled ? (flags | 2) : (flags & ~2);
|
||||
flags = archived ? (flags | 2) : (flags & ~2);
|
||||
flags = official ? (flags | 4) : (flags & ~4);
|
||||
flags = masks ? (flags | 8) : (flags & ~8);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -43,8 +45,9 @@ flags = official ? (flags | 4) : (flags & ~4);
|
|||
{
|
||||
flags = br.ReadInt32();
|
||||
installed = (flags & 1) != 0;
|
||||
disabled = (flags & 2) != 0;
|
||||
archived = (flags & 2) != 0;
|
||||
official = (flags & 4) != 0;
|
||||
masks = (flags & 8) != 0;
|
||||
id = br.ReadInt64();
|
||||
access_hash = br.ReadInt64();
|
||||
title = StringUtil.Deserialize(br);
|
||||
|
|
@ -62,6 +65,7 @@ bw.Write(flags);
|
|||
|
||||
|
||||
|
||||
|
||||
bw.Write(id);
|
||||
bw.Write(access_hash);
|
||||
StringUtil.Serialize(title,bw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue