mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
|
|
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
|
||
|
|
{
|
||
|
|
[TLObject(2027164582)]
|
||
|
|
public class TLRequestDiscardCall : TLMethod
|
||
|
|
{
|
||
|
|
public override int Constructor
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return 2027164582;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
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;}
|
||
|
|
|
||
|
|
|
||
|
|
public void ComputeFlags()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void DeserializeBody(BinaryReader br)
|
||
|
|
{
|
||
|
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||
|
|
duration = br.ReadInt32();
|
||
|
|
reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
|
||
|
|
connection_id = br.ReadInt64();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void SerializeBody(BinaryWriter bw)
|
||
|
|
{
|
||
|
|
bw.Write(Constructor);
|
||
|
|
ObjectUtils.SerializeObject(peer,bw);
|
||
|
|
bw.Write(duration);
|
||
|
|
ObjectUtils.SerializeObject(reason,bw);
|
||
|
|
bw.Write(connection_id);
|
||
|
|
|
||
|
|
}
|
||
|
|
public override void deserializeResponse(BinaryReader br)
|
||
|
|
{
|
||
|
|
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|