mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-01 06:19:59 +01:00
38 lines
880 B
C#
38 lines
880 B
C#
using System.IO;
|
|
|
|
namespace TeleSharp.TL.Photos
|
|
{
|
|
[TLObject(539045032)]
|
|
public class TLPhoto : TLObject
|
|
{
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return 539045032;
|
|
}
|
|
}
|
|
|
|
public TLAbsPhoto Photo { get; set; }
|
|
|
|
public TLVector<TLAbsUser> Users { get; set; }
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
Photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
|
|
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
ObjectUtils.SerializeObject(Photo, bw);
|
|
ObjectUtils.SerializeObject(Users, bw);
|
|
}
|
|
}
|
|
}
|