2017-07-20 04:07:24 +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
|
|
|
|
|
{
|
|
|
|
|
[TLObject(512535275)]
|
|
|
|
|
public class TLPostAddress : TLObject
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 512535275;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public string StreetLine1 { get; set; }
|
|
|
|
|
public string StreetLine2 { get; set; }
|
|
|
|
|
public string City { get; set; }
|
|
|
|
|
public string State { get; set; }
|
|
|
|
|
public string CountryIso2 { get; set; }
|
|
|
|
|
public string PostCode { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
StreetLine1 = StringUtil.Deserialize(br);
|
|
|
|
|
StreetLine2 = StringUtil.Deserialize(br);
|
|
|
|
|
City = StringUtil.Deserialize(br);
|
|
|
|
|
State = StringUtil.Deserialize(br);
|
|
|
|
|
CountryIso2 = StringUtil.Deserialize(br);
|
|
|
|
|
PostCode = StringUtil.Deserialize(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
2017-11-09 11:35:15 +01:00
|
|
|
StringUtil.Serialize(StreetLine1, bw);
|
|
|
|
|
StringUtil.Serialize(StreetLine2, bw);
|
|
|
|
|
StringUtil.Serialize(City, bw);
|
|
|
|
|
StringUtil.Serialize(State, bw);
|
|
|
|
|
StringUtil.Serialize(CountryIso2, bw);
|
|
|
|
|
StringUtil.Serialize(PostCode, bw);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|