mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-12 03:39:57 +01:00
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
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.Auth
|
|
{
|
|
[TLObject(1148485274)]
|
|
public class TLAuthorizationSignUpRequired : TLAbsAuthorization
|
|
{
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return 1148485274;
|
|
}
|
|
}
|
|
|
|
public int Flags { get; set; }
|
|
public Help.TLTermsOfService TermsOfService { get; set; }
|
|
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
Flags = br.ReadInt32();
|
|
if ((Flags & 1) != 0)
|
|
TermsOfService = (Help.TLTermsOfService)ObjectUtils.DeserializeObject(br);
|
|
else
|
|
TermsOfService = null;
|
|
|
|
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
bw.Write(Flags);
|
|
if ((Flags & 1) != 0)
|
|
ObjectUtils.SerializeObject(TermsOfService, bw);
|
|
|
|
}
|
|
}
|
|
}
|