mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-04 14:08:35 +00:00
parent
0d55940c12
commit
133b9fdf6c
784 changed files with 17201 additions and 10048 deletions
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1888354709)]
|
||||
[TLObject(1888354709)]
|
||||
public class TLRequestForwardMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,57 +18,57 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public bool background {get;set;}
|
||||
public bool with_my_score {get;set;}
|
||||
public TLAbsInputPeer from_peer {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public TLVector<long> random_id {get;set;}
|
||||
public TLAbsInputPeer to_peer {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public bool background { get; set; }
|
||||
public bool with_my_score { get; set; }
|
||||
public TLAbsInputPeer from_peer { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public TLVector<long> random_id { get; set; }
|
||||
public TLAbsInputPeer to_peer { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = with_my_score ? (flags | 256) : (flags & ~256);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = with_my_score ? (flags | 256) : (flags & ~256);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
with_my_score = (flags & 256) != 0;
|
||||
from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
random_id = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
with_my_score = (flags & 256) != 0;
|
||||
from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
random_id = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
ObjectUtils.SerializeObject(from_peer,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
ObjectUtils.SerializeObject(random_id,bw);
|
||||
ObjectUtils.SerializeObject(to_peer,bw);
|
||||
ObjectUtils.SerializeObject(from_peer, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(random_id, bw);
|
||||
ObjectUtils.SerializeObject(to_peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue