TLSharp/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs

58 lines
1.5 KiB
C#
Raw Normal View History

2017-07-10 15:52:00 +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.Phone
{
2017-07-20 00:36:50 +02:00
[TLObject(2027164582)]
2017-07-10 15:52:00 +02:00
public class TLRequestDiscardCall : TLMethod
{
public override int Constructor
{
get
{
return 2027164582;
}
}
2017-07-20 00:36:50 +02:00
public TLInputPhoneCall peer { get; set; }
public int duration { get; set; }
public TLAbsPhoneCallDiscardReason reason { get; set; }
public long connection_id { get; set; }
public TLAbsUpdates Response { get; set; }
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
public void ComputeFlags()
{
}
2017-07-10 15:52:00 +02:00
public override void DeserializeBody(BinaryReader br)
{
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
2017-07-20 00:36:50 +02:00
duration = br.ReadInt32();
reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
connection_id = br.ReadInt64();
2017-07-10 15:52:00 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
2017-07-20 00:36:50 +02:00
bw.Write(Constructor);
ObjectUtils.SerializeObject(peer, bw);
bw.Write(duration);
ObjectUtils.SerializeObject(reason, bw);
bw.Write(connection_id);
2017-07-10 15:52:00 +02:00
}
2017-07-20 00:36:50 +02:00
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
}
2017-07-10 15:52:00 +02:00
}
}