mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
apply resharper's code style
This commit is contained in:
parent
1697db9d7f
commit
7fad829dd2
776 changed files with 14393 additions and 24502 deletions
|
|
@ -1,80 +1,66 @@
|
|||
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(2079516406)]
|
||||
[TLObject(2079516406)]
|
||||
public class TLAuthorization : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 2079516406;
|
||||
|
||||
public long hash { get; set; }
|
||||
public int flags { get; set; }
|
||||
public string device_model { get; set; }
|
||||
public string platform { get; set; }
|
||||
public string system_version { get; set; }
|
||||
public int api_id { get; set; }
|
||||
public string app_name { get; set; }
|
||||
public string app_version { get; set; }
|
||||
public int date_created { get; set; }
|
||||
public int date_active { get; set; }
|
||||
public string ip { get; set; }
|
||||
public string country { get; set; }
|
||||
public string region { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 2079516406;
|
||||
}
|
||||
flags = 0;
|
||||
}
|
||||
|
||||
public long hash {get;set;}
|
||||
public int flags {get;set;}
|
||||
public string device_model {get;set;}
|
||||
public string platform {get;set;}
|
||||
public string system_version {get;set;}
|
||||
public int api_id {get;set;}
|
||||
public string app_name {get;set;}
|
||||
public string app_version {get;set;}
|
||||
public int date_created {get;set;}
|
||||
public int date_active {get;set;}
|
||||
public string ip {get;set;}
|
||||
public string country {get;set;}
|
||||
public string region {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
hash = br.ReadInt64();
|
||||
flags = br.ReadInt32();
|
||||
device_model = StringUtil.Deserialize(br);
|
||||
platform = StringUtil.Deserialize(br);
|
||||
system_version = StringUtil.Deserialize(br);
|
||||
api_id = br.ReadInt32();
|
||||
app_name = StringUtil.Deserialize(br);
|
||||
app_version = StringUtil.Deserialize(br);
|
||||
date_created = br.ReadInt32();
|
||||
date_active = br.ReadInt32();
|
||||
ip = StringUtil.Deserialize(br);
|
||||
country = StringUtil.Deserialize(br);
|
||||
region = StringUtil.Deserialize(br);
|
||||
|
||||
flags = br.ReadInt32();
|
||||
device_model = StringUtil.Deserialize(br);
|
||||
platform = StringUtil.Deserialize(br);
|
||||
system_version = StringUtil.Deserialize(br);
|
||||
api_id = br.ReadInt32();
|
||||
app_name = StringUtil.Deserialize(br);
|
||||
app_version = StringUtil.Deserialize(br);
|
||||
date_created = br.ReadInt32();
|
||||
date_active = br.ReadInt32();
|
||||
ip = StringUtil.Deserialize(br);
|
||||
country = StringUtil.Deserialize(br);
|
||||
region = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(hash);
|
||||
StringUtil.Serialize(device_model,bw);
|
||||
StringUtil.Serialize(platform,bw);
|
||||
StringUtil.Serialize(system_version,bw);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(app_name,bw);
|
||||
StringUtil.Serialize(app_version,bw);
|
||||
bw.Write(date_created);
|
||||
bw.Write(date_active);
|
||||
StringUtil.Serialize(ip,bw);
|
||||
StringUtil.Serialize(country,bw);
|
||||
StringUtil.Serialize(region,bw);
|
||||
|
||||
bw.Write(flags);
|
||||
bw.Write(hash);
|
||||
StringUtil.Serialize(device_model, bw);
|
||||
StringUtil.Serialize(platform, bw);
|
||||
StringUtil.Serialize(system_version, bw);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(app_name, bw);
|
||||
StringUtil.Serialize(app_version, bw);
|
||||
bw.Write(date_created);
|
||||
bw.Write(date_active);
|
||||
StringUtil.Serialize(ip, bw);
|
||||
StringUtil.Serialize(country, bw);
|
||||
StringUtil.Serialize(region, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue