mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 22:47:00 +00:00
apply resharper's code style
This commit is contained in:
parent
1697db9d7f
commit
7fad829dd2
776 changed files with 14393 additions and 24502 deletions
|
|
@ -1,13 +1,6 @@
|
|||
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
|
||||
{
|
||||
public abstract class TLAbsChannelDifference : TLObject
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,13 +1,6 @@
|
|||
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
|
||||
{
|
||||
public abstract class TLAbsDifference : TLObject
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,72 +1,58 @@
|
|||
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(543450958)]
|
||||
[TLObject(543450958)]
|
||||
public class TLChannelDifference : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 543450958;
|
||||
|
||||
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()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 543450958;
|
||||
}
|
||||
flags = 0;
|
||||
flags = final ? flags | 1 : flags & ~1;
|
||||
flags = timeout != null ? flags | 2 : flags & ~2;
|
||||
}
|
||||
|
||||
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 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;
|
||||
|
||||
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);
|
||||
final = (flags & 1) != 0;
|
||||
pts = br.ReadInt32();
|
||||
if ((flags & 2) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
|
||||
new_messages = ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
other_updates = ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
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(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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,60 +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.Updates
|
||||
{
|
||||
[TLObject(1041346555)]
|
||||
[TLObject(1041346555)]
|
||||
public class TLChannelDifferenceEmpty : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 1041346555;
|
||||
|
||||
public int flags { get; set; }
|
||||
public bool final { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int? timeout { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1041346555;
|
||||
}
|
||||
flags = 0;
|
||||
flags = final ? flags | 1 : flags & ~1;
|
||||
flags = timeout != null ? flags | 2 : flags & ~2;
|
||||
}
|
||||
|
||||
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 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(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(pts);
|
||||
if ((flags & 2) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,81 +1,67 @@
|
|||
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(1091431943)]
|
||||
[TLObject(1091431943)]
|
||||
public class TLChannelDifferenceTooLong : TLAbsChannelDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 1091431943;
|
||||
|
||||
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()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1091431943;
|
||||
}
|
||||
flags = 0;
|
||||
flags = final ? flags | 1 : flags & ~1;
|
||||
flags = timeout != null ? flags | 2 : flags & ~2;
|
||||
}
|
||||
|
||||
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 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;
|
||||
|
||||
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);
|
||||
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 = ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
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(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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,57 +1,43 @@
|
|||
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(16030880)]
|
||||
[TLObject(16030880)]
|
||||
public class TLDifference : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 16030880;
|
||||
|
||||
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 TLState state { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 16030880;
|
||||
}
|
||||
}
|
||||
|
||||
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 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_messages = ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
new_encrypted_messages = ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
state = (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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +1,31 @@
|
|||
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(1567990072)]
|
||||
[TLObject(1567990072)]
|
||||
public class TLDifferenceEmpty : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 1567990072;
|
||||
|
||||
public int date { get; set; }
|
||||
public int seq { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1567990072;
|
||||
}
|
||||
}
|
||||
|
||||
public int date {get;set;}
|
||||
public int seq {get;set;}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,57 +1,43 @@
|
|||
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(-1459938943)]
|
||||
[TLObject(-1459938943)]
|
||||
public class TLDifferenceSlice : TLAbsDifference
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -1459938943;
|
||||
|
||||
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 TLState intermediate_state { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1459938943;
|
||||
}
|
||||
}
|
||||
|
||||
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 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_messages = ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
new_encrypted_messages = ObjectUtils.DeserializeVector<TLAbsEncryptedMessage>(br);
|
||||
other_updates = ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
|
||||
chats = ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
intermediate_state = (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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,57 +1,43 @@
|
|||
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(-1154295872)]
|
||||
[TLObject(-1154295872)]
|
||||
public class TLRequestGetChannelDifference : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -1154295872;
|
||||
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsChannelMessagesFilter filter { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int limit { get; set; }
|
||||
public TLAbsChannelDifference Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1154295872;
|
||||
}
|
||||
}
|
||||
|
||||
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 override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br);
|
||||
pts = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
channel = (TLAbsInputChannel) ObjectUtils.DeserializeObject(br);
|
||||
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);
|
||||
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 = (TLAbsChannelDifference) ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +1,40 @@
|
|||
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(168039573)]
|
||||
[TLObject(168039573)]
|
||||
public class TLRequestGetDifference : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 168039573;
|
||||
|
||||
public int pts { get; set; }
|
||||
public int date { get; set; }
|
||||
public int qts { get; set; }
|
||||
public TLAbsDifference Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 168039573;
|
||||
}
|
||||
}
|
||||
|
||||
public int pts {get;set;}
|
||||
public int date {get;set;}
|
||||
public int qts {get;set;}
|
||||
public Updates.TLAbsDifference Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
pts = br.ReadInt32();
|
||||
date = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
|
||||
date = br.ReadInt32();
|
||||
qts = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(pts);
|
||||
bw.Write(date);
|
||||
bw.Write(qts);
|
||||
|
||||
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 = (TLAbsDifference) ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +1,31 @@
|
|||
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(-304838614)]
|
||||
[TLObject(-304838614)]
|
||||
public class TLRequestGetState : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -304838614;
|
||||
|
||||
public TLState Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -304838614;
|
||||
}
|
||||
}
|
||||
|
||||
public Updates.TLState Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLState) ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,54 +1,40 @@
|
|||
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(-1519637954)]
|
||||
[TLObject(-1519637954)]
|
||||
public class TLState : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -1519637954;
|
||||
|
||||
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()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1519637954;
|
||||
}
|
||||
}
|
||||
|
||||
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 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