mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
Redesign Everything
This commit is contained in:
parent
b5472c6cd7
commit
6af7c66a81
710 changed files with 32932 additions and 302 deletions
80
TeleSharp.TL/TL/TLAuthorization.cs
Normal file
80
TeleSharp.TL/TL/TLAuthorization.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
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)]
|
||||
public class TLAuthorization : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 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()
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue