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,48 +1,35 @@
|
|||
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.Storage;
|
||||
|
||||
namespace TeleSharp.TL.Upload
|
||||
{
|
||||
[TLObject(157948117)]
|
||||
[TLObject(157948117)]
|
||||
public class TLFile : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 157948117;
|
||||
|
||||
public TLAbsFileType type { get; set; }
|
||||
public int mtime { get; set; }
|
||||
public byte[] bytes { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 157948117;
|
||||
}
|
||||
}
|
||||
|
||||
public Storage.TLAbsFileType type {get;set;}
|
||||
public int mtime {get;set;}
|
||||
public byte[] bytes {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br);
|
||||
mtime = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
type = (TLAbsFileType) ObjectUtils.DeserializeObject(br);
|
||||
mtime = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(type,bw);
|
||||
bw.Write(mtime);
|
||||
BytesUtil.Serialize(bytes,bw);
|
||||
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(type, bw);
|
||||
bw.Write(mtime);
|
||||
BytesUtil.Serialize(bytes, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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.Upload
|
||||
{
|
||||
[TLObject(-475607115)]
|
||||
[TLObject(-475607115)]
|
||||
public class TLRequestGetFile : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -475607115;
|
||||
|
||||
public TLAbsInputFileLocation location { get; set; }
|
||||
public int offset { get; set; }
|
||||
public int limit { get; set; }
|
||||
public TLFile Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -475607115;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputFileLocation location {get;set;}
|
||||
public int offset {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Upload.TLFile Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
location = (TLAbsInputFileLocation)ObjectUtils.DeserializeObject(br);
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
location = (TLAbsInputFileLocation) ObjectUtils.DeserializeObject(br);
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(location,bw);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(location, bw);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Upload.TLFile)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLFile) ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,57 +1,43 @@
|
|||
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.Upload
|
||||
{
|
||||
[TLObject(-562337987)]
|
||||
[TLObject(-562337987)]
|
||||
public class TLRequestSaveBigFilePart : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -562337987;
|
||||
|
||||
public long file_id { get; set; }
|
||||
public int file_part { get; set; }
|
||||
public int file_total_parts { get; set; }
|
||||
public byte[] bytes { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -562337987;
|
||||
}
|
||||
}
|
||||
|
||||
public long file_id {get;set;}
|
||||
public int file_part {get;set;}
|
||||
public int file_total_parts {get;set;}
|
||||
public byte[] bytes {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
file_id = br.ReadInt64();
|
||||
file_part = br.ReadInt32();
|
||||
file_total_parts = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
file_part = br.ReadInt32();
|
||||
file_total_parts = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(file_id);
|
||||
bw.Write(file_part);
|
||||
bw.Write(file_total_parts);
|
||||
BytesUtil.Serialize(bytes,bw);
|
||||
|
||||
bw.Write(file_part);
|
||||
bw.Write(file_total_parts);
|
||||
BytesUtil.Serialize(bytes, bw);
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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.Upload
|
||||
{
|
||||
[TLObject(-1291540959)]
|
||||
[TLObject(-1291540959)]
|
||||
public class TLRequestSaveFilePart : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => -1291540959;
|
||||
|
||||
public long file_id { get; set; }
|
||||
public int file_part { get; set; }
|
||||
public byte[] bytes { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1291540959;
|
||||
}
|
||||
}
|
||||
|
||||
public long file_id {get;set;}
|
||||
public int file_part {get;set;}
|
||||
public byte[] bytes {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
file_id = br.ReadInt64();
|
||||
file_part = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
file_part = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(file_id);
|
||||
bw.Write(file_part);
|
||||
BytesUtil.Serialize(bytes,bw);
|
||||
|
||||
bw.Write(file_part);
|
||||
BytesUtil.Serialize(bytes, bw);
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue