TLSharp/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs
2017-11-09 19:37:09 +08:00

52 lines
1.2 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
{
[TLObject(-523384512)]
public class TLUpdateBotShippingQuery : TLAbsUpdate
{
public override int Constructor
{
get
{
return -523384512;
}
}
public long QueryId { get; set; }
public int UserId { get; set; }
public byte[] Payload { get; set; }
public TLPostAddress ShippingAddress { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
QueryId = br.ReadInt64();
UserId = br.ReadInt32();
Payload = BytesUtil.Deserialize(br);
ShippingAddress = (TLPostAddress)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(QueryId);
bw.Write(UserId);
BytesUtil.Serialize(Payload, bw);
ObjectUtils.SerializeObject(ShippingAddress, bw);
}
}
}