2016-09-24 15:38:26 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using TeleSharp.TL;
|
|
|
|
|
namespace TeleSharp.TL.Messages
|
|
|
|
|
{
|
2017-07-20 04:07:24 +02:00
|
|
|
[TLObject(1888354709)]
|
2016-09-24 15:38:26 +02:00
|
|
|
public class TLRequestForwardMessages : TLMethod
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 1888354709;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
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; }
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
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);
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
}
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
flags = br.ReadInt32();
|
2017-07-20 04:07:24 +02:00
|
|
|
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);
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
2017-07-20 04:07:24 +02:00
|
|
|
bw.Write(Constructor);
|
2016-09-24 15:38:26 +02:00
|
|
|
ComputeFlags();
|
2017-07-20 04:07:24 +02:00
|
|
|
bw.Write(flags);
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
|
2016-10-13 19:33:16 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
ObjectUtils.SerializeObject(from_peer, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(id, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(random_id, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(to_peer, bw);
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
}
|
2017-07-20 04:07:24 +02:00
|
|
|
public override void deserializeResponse(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
}
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
}
|