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,66 +1,52 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
using TeleSharp.TL.Auth;
namespace TeleSharp.TL.Account
{
[TLObject(353818557)]
[TLObject(353818557)]
public class TLRequestSendConfirmPhoneCode : TLMethod
{
public override int Constructor
public override int Constructor => 353818557;
public int flags { get; set; }
public bool allow_flashcall { get; set; }
public string hash { get; set; }
public bool? current_number { get; set; }
public TLSentCode Response { get; set; }
public void ComputeFlags()
{
get
{
return 353818557;
}
flags = 0;
flags = allow_flashcall ? flags | 1 : flags & ~1;
flags = current_number != null ? flags | 1 : flags & ~1;
}
public int flags {get;set;}
public bool allow_flashcall {get;set;}
public string hash {get;set;}
public bool? current_number {get;set;}
public Auth.TLSentCode Response{ get; set;}
public void ComputeFlags()
{
flags = 0;
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
flags = current_number != null ? (flags | 1) : (flags & ~1);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
allow_flashcall = (flags & 1) != 0;
hash = StringUtil.Deserialize(br);
if ((flags & 1) != 0)
current_number = BoolUtil.Deserialize(br);
else
current_number = null;
allow_flashcall = (flags & 1) != 0;
hash = StringUtil.Deserialize(br);
if ((flags & 1) != 0)
current_number = BoolUtil.Deserialize(br);
else
current_number = null;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
StringUtil.Serialize(hash,bw);
if ((flags & 1) != 0)
BoolUtil.Serialize(current_number.Value,bw);
bw.Write(flags);
StringUtil.Serialize(hash, bw);
if ((flags & 1) != 0)
BoolUtil.Serialize(current_number.Value, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLSentCode) ObjectUtils.DeserializeObject(br);
}
}
}
}