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
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(543450958)]
|
||||
[TLObject(543450958)]
|
||||
public class TLChannelDifference : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,54 +18,54 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool final {get;set;}
|
||||
public int pts {get;set;}
|
||||
public int? timeout {get;set;}
|
||||
public TLVector<TLAbsMessage> new_messages {get;set;}
|
||||
public TLVector<TLAbsUpdate> other_updates {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool final { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int? timeout { get; set; }
|
||||
public TLVector<TLAbsMessage> new_messages { get; set; }
|
||||
public TLVector<TLAbsUpdate> other_updates { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
|
||||
new_messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
new_messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
ObjectUtils.SerializeObject(new_messages,bw);
|
||||
ObjectUtils.SerializeObject(other_updates,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
ObjectUtils.SerializeObject(new_messages, bw);
|
||||
ObjectUtils.SerializeObject(other_updates, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(1041346555)]
|
||||
[TLObject(1041346555)]
|
||||
public class TLChannelDifferenceEmpty : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,42 +18,42 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool final {get;set;}
|
||||
public int pts {get;set;}
|
||||
public int? timeout {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool final { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int? timeout { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(1091431943)]
|
||||
[TLObject(1091431943)]
|
||||
public class TLChannelDifferenceTooLong : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,63 +18,63 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool final {get;set;}
|
||||
public int pts {get;set;}
|
||||
public int? timeout {get;set;}
|
||||
public int top_message {get;set;}
|
||||
public int read_inbox_max_id {get;set;}
|
||||
public int read_outbox_max_id {get;set;}
|
||||
public int unread_count {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool final { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int? timeout { get; set; }
|
||||
public int top_message { get; set; }
|
||||
public int read_inbox_max_id { get; set; }
|
||||
public int read_outbox_max_id { get; set; }
|
||||
public int unread_count { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = final ? (flags | 1) : (flags & ~1);
|
||||
flags = timeout != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
|
||||
top_message = br.ReadInt32();
|
||||
read_inbox_max_id = br.ReadInt32();
|
||||
read_outbox_max_id = br.ReadInt32();
|
||||
unread_count = br.ReadInt32();
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
top_message = br.ReadInt32();
|
||||
read_inbox_max_id = br.ReadInt32();
|
||||
read_outbox_max_id = br.ReadInt32();
|
||||
unread_count = br.ReadInt32();
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
bw.Write(top_message);
|
||||
bw.Write(read_inbox_max_id);
|
||||
bw.Write(read_outbox_max_id);
|
||||
bw.Write(unread_count);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
bw.Write(top_message);
|
||||
bw.Write(read_inbox_max_id);
|
||||
bw.Write(read_outbox_max_id);
|
||||
bw.Write(unread_count);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(16030880)]
|
||||
[TLObject(16030880)]
|
||||
public class TLDifference : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,39 +18,39 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsMessage> new_messages {get;set;}
|
||||
public TLVector<TLAbsEncryptedMessage> new_encrypted_messages {get;set;}
|
||||
public TLVector<TLAbsUpdate> other_updates {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public Updates.TLState state {get;set;}
|
||||
public TLVector<TLAbsMessage> new_messages { get; set; }
|
||||
public TLVector<TLAbsEncryptedMessage> new_encrypted_messages { get; set; }
|
||||
public TLVector<TLAbsUpdate> other_updates { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public Updates.TLState state { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
new_messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
new_encrypted_messages = (TLVector<TLAbsEncryptedMessage>)ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
new_encrypted_messages = (TLVector<TLAbsEncryptedMessage>)ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(new_messages,bw);
|
||||
ObjectUtils.SerializeObject(new_encrypted_messages,bw);
|
||||
ObjectUtils.SerializeObject(other_updates,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(state,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(new_messages, bw);
|
||||
ObjectUtils.SerializeObject(new_encrypted_messages, bw);
|
||||
ObjectUtils.SerializeObject(other_updates, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(state, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(1567990072)]
|
||||
[TLObject(1567990072)]
|
||||
public class TLDifferenceEmpty : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public int date {get;set;}
|
||||
public int seq {get;set;}
|
||||
public int date { get; set; }
|
||||
public int seq { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
date = br.ReadInt32();
|
||||
seq = br.ReadInt32();
|
||||
seq = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(date);
|
||||
bw.Write(seq);
|
||||
bw.Write(seq);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(-1459938943)]
|
||||
[TLObject(-1459938943)]
|
||||
public class TLDifferenceSlice : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,39 +18,39 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsMessage> new_messages {get;set;}
|
||||
public TLVector<TLAbsEncryptedMessage> new_encrypted_messages {get;set;}
|
||||
public TLVector<TLAbsUpdate> other_updates {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public Updates.TLState intermediate_state {get;set;}
|
||||
public TLVector<TLAbsMessage> new_messages { get; set; }
|
||||
public TLVector<TLAbsEncryptedMessage> new_encrypted_messages { get; set; }
|
||||
public TLVector<TLAbsUpdate> other_updates { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public Updates.TLState intermediate_state { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
new_messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
new_encrypted_messages = (TLVector<TLAbsEncryptedMessage>)ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
new_encrypted_messages = (TLVector<TLAbsEncryptedMessage>)ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(new_messages,bw);
|
||||
ObjectUtils.SerializeObject(new_encrypted_messages,bw);
|
||||
ObjectUtils.SerializeObject(other_updates,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(intermediate_state,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(new_messages, bw);
|
||||
ObjectUtils.SerializeObject(new_encrypted_messages, bw);
|
||||
ObjectUtils.SerializeObject(other_updates, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(intermediate_state, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
42
TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs
Normal file
42
TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
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.Updates
|
||||
{
|
||||
[TLObject(1258196845)]
|
||||
public class TLDifferenceTooLong : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1258196845;
|
||||
}
|
||||
}
|
||||
|
||||
public int pts { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
pts = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(pts);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,51 +7,60 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(-1154295872)]
|
||||
[TLObject(51854712)]
|
||||
public class TLRequestGetChannelDifference : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1154295872;
|
||||
return 51854712;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsChannelMessagesFilter filter {get;set;}
|
||||
public int pts {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Updates.TLAbsChannelDifference Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool force { get; set; }
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsChannelMessagesFilter filter { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Updates.TLAbsChannelDifference Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = force ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
force = (flags & 1) != 0;
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br);
|
||||
pts = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br);
|
||||
pts = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(filter,bw);
|
||||
bw.Write(pts);
|
||||
bw.Write(limit);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(filter, bw);
|
||||
bw.Write(pts);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,48 +7,62 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(168039573)]
|
||||
[TLObject(630429265)]
|
||||
public class TLRequestGetDifference : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 168039573;
|
||||
return 630429265;
|
||||
}
|
||||
}
|
||||
|
||||
public int pts {get;set;}
|
||||
public int date {get;set;}
|
||||
public int qts {get;set;}
|
||||
public Updates.TLAbsDifference Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int? pts_total_limit { get; set; }
|
||||
public int date { get; set; }
|
||||
public int qts { get; set; }
|
||||
public Updates.TLAbsDifference Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = pts_total_limit != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
pts = br.ReadInt32();
|
||||
date = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
pts_total_limit = br.ReadInt32();
|
||||
else
|
||||
pts_total_limit = null;
|
||||
|
||||
date = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(pts);
|
||||
bw.Write(date);
|
||||
bw.Write(qts);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(pts_total_limit.Value);
|
||||
bw.Write(date);
|
||||
bw.Write(qts);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(-304838614)]
|
||||
[TLObject(-304838614)]
|
||||
public class TLRequestGetState : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public Updates.TLState Response{ get; set;}
|
||||
public Updates.TLState Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
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 = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Updates
|
||||
{
|
||||
[TLObject(-1519637954)]
|
||||
[TLObject(-1519637954)]
|
||||
public class TLState : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,36 +18,36 @@ namespace TeleSharp.TL.Updates
|
|||
}
|
||||
}
|
||||
|
||||
public int pts {get;set;}
|
||||
public int qts {get;set;}
|
||||
public int date {get;set;}
|
||||
public int seq {get;set;}
|
||||
public int unread_count {get;set;}
|
||||
public int pts { get; set; }
|
||||
public int qts { get; set; }
|
||||
public int date { get; set; }
|
||||
public int seq { get; set; }
|
||||
public int unread_count { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
pts = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
date = br.ReadInt32();
|
||||
seq = br.ReadInt32();
|
||||
unread_count = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
date = br.ReadInt32();
|
||||
seq = br.ReadInt32();
|
||||
unread_count = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(pts);
|
||||
bw.Write(qts);
|
||||
bw.Write(date);
|
||||
bw.Write(seq);
|
||||
bw.Write(unread_count);
|
||||
bw.Write(qts);
|
||||
bw.Write(date);
|
||||
bw.Write(seq);
|
||||
bw.Write(unread_count);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue