apply resharper's code style

This commit is contained in:
Viktor Borisov 2017-04-13 13:38:01 +07:00
parent 1697db9d7f
commit 7fad829dd2
776 changed files with 14393 additions and 24502 deletions

View file

@ -1,54 +1,40 @@
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(2009052699)]
[TLObject(2009052699)]
public class TLPhotoSize : TLAbsPhotoSize
{
public override int Constructor
public override int Constructor => 2009052699;
public string type { get; set; }
public TLAbsFileLocation location { get; set; }
public int w { get; set; }
public int h { get; set; }
public int size { get; set; }
public void ComputeFlags()
{
get
{
return 2009052699;
}
}
public string type {get;set;}
public TLAbsFileLocation location {get;set;}
public int w {get;set;}
public int h {get;set;}
public int size {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
type = StringUtil.Deserialize(br);
location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br);
w = br.ReadInt32();
h = br.ReadInt32();
size = br.ReadInt32();
location = (TLAbsFileLocation) ObjectUtils.DeserializeObject(br);
w = br.ReadInt32();
h = br.ReadInt32();
size = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(type,bw);
ObjectUtils.SerializeObject(location,bw);
bw.Write(w);
bw.Write(h);
bw.Write(size);
bw.Write(Constructor);
StringUtil.Serialize(type, bw);
ObjectUtils.SerializeObject(location, bw);
bw.Write(w);
bw.Write(h);
bw.Write(size);
}
}
}
}