TLSharp/TeleSharp.TL/TL/TLUpdates.cs

55 lines
1.3 KiB
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
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
{
[TLObject(1957577280)]
public class TLUpdates : TLAbsUpdates
{
public override int Constructor
{
get
{
return 1957577280;
}
}
public TLVector<TLAbsUpdate> updates {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public TLVector<TLAbsChat> chats {get;set;}
public int date {get;set;}
public int seq {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
updates = (TLVector<TLAbsUpdate>)ObjectUtils.DeserializeVector<TLAbsUpdate>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
date = br.ReadInt32();
seq = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(updates,bw);
ObjectUtils.SerializeObject(users,bw);
ObjectUtils.SerializeObject(chats,bw);
bw.Write(date);
bw.Write(seq);
}
}
}