mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
45 lines
959 B
C#
45 lines
959 B
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.Account
|
|
{
|
|
[TLObject(-2128640689)]
|
|
public class TLSentEmailCode : TLObject
|
|
{
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return -2128640689;
|
|
}
|
|
}
|
|
|
|
public string EmailPattern { get; set; }
|
|
public int Length { get; set; }
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
EmailPattern = StringUtil.Deserialize(br);
|
|
Length = br.ReadInt32();
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
StringUtil.Serialize(EmailPattern, bw);
|
|
bw.Write(Length);
|
|
}
|
|
}
|
|
}
|