TLSharp/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs

49 lines
1.2 KiB
C#
Raw Permalink 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.Channels
{
[TLObject(-177282392)]
2016-09-24 15:38:26 +02:00
public class TLChannelParticipants : TLObject
{
public override int Constructor
{
get
{
return -177282392;
}
}
public int Count { get; set; }
public TLVector<TLAbsChannelParticipant> Participants { get; set; }
public TLVector<TLAbsUser> Users { get; set; }
2016-09-24 15:38:26 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
Count = br.ReadInt32();
Participants = (TLVector<TLAbsChannelParticipant>)ObjectUtils.DeserializeVector<TLAbsChannelParticipant>(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Count);
ObjectUtils.SerializeObject(Participants, bw);
ObjectUtils.SerializeObject(Users, bw);
2016-09-24 15:38:26 +02:00
}
}
}