2020-04-03 09:23:02 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2020-04-15 12:50:52 +02:00
|
|
|
|
2020-04-03 09:23:02 +02:00
|
|
|
using TeleSharp.TL;
|
2020-04-15 12:50:52 +02:00
|
|
|
|
2020-04-03 09:23:02 +02:00
|
|
|
namespace TeleSharp.TL.Account
|
|
|
|
|
{
|
|
|
|
|
[TLObject(-578472351)]
|
|
|
|
|
public class TLRequestUploadWallPaper : TLMethod
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return -578472351;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TLAbsInputFile File { get; set; }
|
|
|
|
|
public string MimeType { get; set; }
|
|
|
|
|
public TLWallPaperSettings Settings { get; set; }
|
|
|
|
|
public TLAbsWallPaper Response { get; set; }
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
2020-04-15 12:50:52 +02:00
|
|
|
// do nothing
|
2020-04-03 09:23:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
File = (TLAbsInputFile)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
MimeType = StringUtil.Deserialize(br);
|
|
|
|
|
Settings = (TLWallPaperSettings)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
|
|
|
|
ObjectUtils.SerializeObject(File, bw);
|
|
|
|
|
StringUtil.Serialize(MimeType, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Settings, bw);
|
|
|
|
|
}
|
2020-04-15 12:50:52 +02:00
|
|
|
|
2020-04-03 09:23:02 +02:00
|
|
|
public override void DeserializeResponse(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Response = (TLAbsWallPaper)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|