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,61 +1,47 @@
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(-2059962289)]
[TLObject(-2059962289)]
public class TLChannelForbidden : TLAbsChat
{
public override int Constructor
public override int Constructor => -2059962289;
public int flags { get; set; }
public bool broadcast { get; set; }
public bool megagroup { get; set; }
public int id { get; set; }
public long access_hash { get; set; }
public string title { get; set; }
public void ComputeFlags()
{
get
{
return -2059962289;
}
flags = 0;
flags = broadcast ? flags | 32 : flags & ~32;
flags = megagroup ? flags | 256 : flags & ~256;
}
public int flags {get;set;}
public bool broadcast {get;set;}
public bool megagroup {get;set;}
public int id {get;set;}
public long access_hash {get;set;}
public string title {get;set;}
public void ComputeFlags()
{
flags = 0;
flags = broadcast ? (flags | 32) : (flags & ~32);
flags = megagroup ? (flags | 256) : (flags & ~256);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
broadcast = (flags & 32) != 0;
megagroup = (flags & 256) != 0;
id = br.ReadInt32();
access_hash = br.ReadInt64();
title = StringUtil.Deserialize(br);
broadcast = (flags & 32) != 0;
megagroup = (flags & 256) != 0;
id = br.ReadInt32();
access_hash = br.ReadInt64();
title = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(flags);
bw.Write(id);
bw.Write(access_hash);
StringUtil.Serialize(title,bw);
bw.Write(id);
bw.Write(access_hash);
StringUtil.Serialize(title, bw);
}
}
}
}