TLSharp/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs

49 lines
1.1 KiB
C#
Raw Normal View History

2016-09-24 17:08:26 +03:30
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.Photos
{
2017-07-20 03:06:50 +04:30
[TLObject(352657236)]
2016-09-24 17:08:26 +03:30
public class TLPhotosSlice : TLAbsPhotos
{
public override int Constructor
{
get
{
return 352657236;
}
}
2017-07-20 03:06:50 +04:30
public int count { get; set; }
public TLVector<TLAbsPhoto> photos { get; set; }
public TLVector<TLAbsUser> users { get; set; }
2016-09-24 17:08:26 +03:30
2017-07-20 03:06:50 +04:30
public void ComputeFlags()
{
}
2016-09-24 17:08:26 +03:30
public override void DeserializeBody(BinaryReader br)
{
count = br.ReadInt32();
2017-07-20 03:06:50 +04:30
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
2016-09-24 17:08:26 +03:30
}
public override void SerializeBody(BinaryWriter bw)
{
2017-07-20 03:06:50 +04:30
bw.Write(Constructor);
2016-09-24 17:08:26 +03:30
bw.Write(count);
2017-07-20 03:06:50 +04:30
ObjectUtils.SerializeObject(photos, bw);
ObjectUtils.SerializeObject(users, bw);
2016-09-24 17:08:26 +03:30
}
}
}