Redesign Everything

This commit is contained in:
Afshin Arani 2016-09-24 17:08:26 +03:30
parent b5472c6cd7
commit 6af7c66a81
710 changed files with 32932 additions and 302 deletions

View file

@ -0,0 +1,13 @@
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
{
}
}

View file

@ -0,0 +1,13 @@
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
{
}
}

View file

@ -0,0 +1,72 @@
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)]
public class TLChannelDifference : TLAbsChannelDifference
{
public override int Constructor
{
get
{
return 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()
{
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);
}
public override void SerializeBody(BinaryWriter bw)
{
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);
}
}
}

View file

@ -0,0 +1,60 @@
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)]
public class TLChannelDifferenceEmpty : TLAbsChannelDifference
{
public override int Constructor
{
get
{
return 1041346555;
}
}
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;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(pts);
if ((flags & 2) != 0)
bw.Write(timeout.Value);
}
}
}

View file

@ -0,0 +1,81 @@
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)]
public class TLChannelDifferenceTooLong : TLAbsChannelDifference
{
public override int Constructor
{
get
{
return 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()
{
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);
}
public override void SerializeBody(BinaryWriter bw)
{
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);
}
}
}

View 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.Updates
{
[TLObject(16030880)]
public class TLDifference : TLAbsDifference
{
public override int Constructor
{
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);
}
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);
}
}
}

View 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.Updates
{
[TLObject(1567990072)]
public class TLDifferenceEmpty : TLAbsDifference
{
public override int Constructor
{
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();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(date);
bw.Write(seq);
}
}
}

View 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.Updates
{
[TLObject(-1459938943)]
public class TLDifferenceSlice : TLAbsDifference
{
public override int Constructor
{
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);
}
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);
}
}
}

View 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.Updates
{
[TLObject(-1154295872)]
public class TLRequestGetChannelDifference : TLMethod
{
public override int Constructor
{
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();
}
public override void SerializeBody(BinaryWriter bw)
{
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);
}
}
}

View 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.Updates
{
[TLObject(168039573)]
public class TLRequestGetDifference : TLMethod
{
public override int Constructor
{
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();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(pts);
bw.Write(date);
bw.Write(qts);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br);
}
}
}

View 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.Updates
{
[TLObject(-304838614)]
public class TLRequestGetState : TLMethod
{
public override int Constructor
{
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);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Updates.TLState)ObjectUtils.DeserializeObject(br);
}
}
}

View 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.Updates
{
[TLObject(-1519637954)]
public class TLState : TLObject
{
public override int Constructor
{
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();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(pts);
bw.Write(qts);
bw.Write(date);
bw.Write(seq);
bw.Write(unread_count);
}
}
}