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,13 +1,6 @@
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.Photos
{
public abstract class TLAbsPhotos : TLObject
{
}
}
}

View file

@ -1,45 +1,31 @@
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.Photos
{
[TLObject(539045032)]
[TLObject(539045032)]
public class TLPhoto : TLObject
{
public override int Constructor
public override int Constructor => 539045032;
public TLAbsPhoto photo { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 539045032;
}
}
public TLAbsPhoto photo {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
photo = (TLAbsPhoto) ObjectUtils.DeserializeObject(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(photo,bw);
ObjectUtils.SerializeObject(users,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(photo, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,45 +1,31 @@
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.Photos
{
[TLObject(-1916114267)]
[TLObject(-1916114267)]
public class TLPhotos : TLAbsPhotos
{
public override int Constructor
public override int Constructor => -1916114267;
public TLVector<TLAbsPhoto> photos { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return -1916114267;
}
}
public TLVector<TLAbsPhoto> photos {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
photos = ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(photos,bw);
ObjectUtils.SerializeObject(users,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(photos, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Photos
{
[TLObject(352657236)]
[TLObject(352657236)]
public class TLPhotosSlice : TLAbsPhotos
{
public override int Constructor
public override int Constructor => 352657236;
public int count { get; set; }
public TLVector<TLAbsPhoto> photos { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
get
{
return 352657236;
}
}
public int count {get;set;}
public TLVector<TLAbsPhoto> photos {get;set;}
public TLVector<TLAbsUser> users {get;set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
count = br.ReadInt32();
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
photos = ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Constructor);
bw.Write(count);
ObjectUtils.SerializeObject(photos,bw);
ObjectUtils.SerializeObject(users,bw);
ObjectUtils.SerializeObject(photos, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Photos
{
[TLObject(-2016444625)]
[TLObject(-2016444625)]
public class TLRequestDeletePhotos : TLMethod
{
public override int Constructor
public override int Constructor => -2016444625;
public TLVector<TLAbsInputPhoto> id { get; set; }
public TLVector<long> Response { get; set; }
public void ComputeFlags()
{
get
{
return -2016444625;
}
}
public TLVector<TLAbsInputPhoto> id {get;set;}
public TLVector<long> Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
id = (TLVector<TLAbsInputPhoto>)ObjectUtils.DeserializeVector<TLAbsInputPhoto>(br);
id = ObjectUtils.DeserializeVector<TLAbsInputPhoto>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(id,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = ObjectUtils.DeserializeVector<long>(br);
}
}
}
}

View file

@ -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.Photos
{
[TLObject(-1848823128)]
[TLObject(-1848823128)]
public class TLRequestGetUserPhotos : TLMethod
{
public override int Constructor
public override int Constructor => -1848823128;
public TLAbsInputUser user_id { get; set; }
public int offset { get; set; }
public long max_id { get; set; }
public int limit { get; set; }
public TLAbsPhotos Response { get; set; }
public void ComputeFlags()
{
get
{
return -1848823128;
}
}
public TLAbsInputUser user_id {get;set;}
public int offset {get;set;}
public long max_id {get;set;}
public int limit {get;set;}
public Photos.TLAbsPhotos Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
offset = br.ReadInt32();
max_id = br.ReadInt64();
limit = br.ReadInt32();
user_id = (TLAbsInputUser) ObjectUtils.DeserializeObject(br);
offset = br.ReadInt32();
max_id = br.ReadInt64();
limit = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(user_id,bw);
bw.Write(offset);
bw.Write(max_id);
bw.Write(limit);
bw.Write(Constructor);
ObjectUtils.SerializeObject(user_id, bw);
bw.Write(offset);
bw.Write(max_id);
bw.Write(limit);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsPhotos) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Photos
{
[TLObject(-256159406)]
[TLObject(-256159406)]
public class TLRequestUpdateProfilePhoto : TLMethod
{
public override int Constructor
public override int Constructor => -256159406;
public TLAbsInputPhoto id { get; set; }
public TLAbsUserProfilePhoto Response { get; set; }
public void ComputeFlags()
{
get
{
return -256159406;
}
}
public TLAbsInputPhoto id {get;set;}
public TLAbsUserProfilePhoto Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
id = (TLAbsInputPhoto) ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(id,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLAbsUserProfilePhoto) ObjectUtils.DeserializeObject(br);
}
}
}
}

View file

@ -1,48 +1,34 @@
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.Photos
{
[TLObject(1328726168)]
[TLObject(1328726168)]
public class TLRequestUploadProfilePhoto : TLMethod
{
public override int Constructor
public override int Constructor => 1328726168;
public TLAbsInputFile file { get; set; }
public TLPhoto Response { get; set; }
public void ComputeFlags()
{
get
{
return 1328726168;
}
}
public TLAbsInputFile file {get;set;}
public Photos.TLPhoto Response{ get; set;}
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br);
file = (TLAbsInputFile) ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(file,bw);
bw.Write(Constructor);
ObjectUtils.SerializeObject(file, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (TLPhoto) ObjectUtils.DeserializeObject(br);
}
}
}
}