mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
parent
0d55940c12
commit
133b9fdf6c
784 changed files with 17201 additions and 10048 deletions
45
TeleSharp.TL/TL/Phone/TLPhoneCall.cs
Normal file
45
TeleSharp.TL/TL/Phone/TLPhoneCall.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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(-326966976)]
|
||||
public class TLPhoneCall : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -326966976;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsPhoneCall phone_call { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_call = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(phone_call, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
54
TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs
Normal file
54
TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
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(1003664544)]
|
||||
public class TLRequestAcceptCall : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1003664544;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public byte[] g_b { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
g_b = BytesUtil.Deserialize(br);
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
BytesUtil.Serialize(g_b, bw);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
57
TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
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(788404002)]
|
||||
public class TLRequestConfirmCall : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 788404002;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public byte[] g_a { get; set; }
|
||||
public long key_fingerprint { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
g_a = BytesUtil.Deserialize(br);
|
||||
key_fingerprint = br.ReadInt64();
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
BytesUtil.Serialize(g_a, bw);
|
||||
bw.Write(key_fingerprint);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
57
TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
45
TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs
Normal file
45
TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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(1430593449)]
|
||||
public class TLRequestGetCallConfig : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1430593449;
|
||||
}
|
||||
}
|
||||
|
||||
public TLDataJSON Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
48
TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs
Normal file
48
TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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(399855457)]
|
||||
public class TLRequestReceivedCall : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 399855457;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
57
TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
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(1536537556)]
|
||||
public class TLRequestRequestCall : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1536537556;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public int random_id { get; set; }
|
||||
public byte[] g_a_hash { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt32();
|
||||
g_a_hash = BytesUtil.Deserialize(br);
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(g_a_hash, bw);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs
Normal file
51
TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
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(662363518)]
|
||||
public class TLRequestSaveCallDebug : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 662363518;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public TLDataJSON debug { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
debug = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(debug, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
54
TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs
Normal file
54
TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
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(475228724)]
|
||||
public class TLRequestSetCallRating : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 475228724;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public int rating { get; set; }
|
||||
public string comment { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
rating = br.ReadInt32();
|
||||
comment = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(rating);
|
||||
StringUtil.Serialize(comment, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue