mirror of
https://github.com/sochix/TLSharp.git
synced 2026-03-06 05:23:51 +01:00
TeleSharp.TL: fix build
Manual edits needed after code autogeneration.
This commit is contained in:
parent
a3ebd07d82
commit
75fb3c1488
|
|
@ -24,7 +24,8 @@ namespace TeleSharp.TL.Auth
|
||||||
public string PhoneCodeHash { get; set; }
|
public string PhoneCodeHash { get; set; }
|
||||||
public string FirstName { get; set; }
|
public string FirstName { get; set; }
|
||||||
public string LastName { get; set; }
|
public string LastName { get; set; }
|
||||||
public Auth.TLAbsAuthorization Response { get; set; }
|
// manual edit: TLAbsAuthorization->TLAuthorization
|
||||||
|
public Auth.TLAuthorization Response { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
|
@ -50,7 +51,8 @@ namespace TeleSharp.TL.Auth
|
||||||
|
|
||||||
public override void DeserializeResponse(BinaryReader br)
|
public override void DeserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (Auth.TLAbsAuthorization)ObjectUtils.DeserializeObject(br);
|
// manual edit: TLAbsAuthorization->TLAuthorization
|
||||||
|
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,8 @@ namespace TeleSharp.TL.Contacts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLVector<SavedContact> Response { get; set; }
|
// manual edit: SavedContact -> TLSavedPhoneContact
|
||||||
|
public TLVector<TLSavedPhoneContact> Response { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
|
@ -40,7 +41,8 @@ namespace TeleSharp.TL.Contacts
|
||||||
|
|
||||||
public override void DeserializeResponse(BinaryReader br)
|
public override void DeserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (TLVector<SavedContact>)ObjectUtils.DeserializeVector<SavedContact>(br);
|
// manual edit: SavedContact -> TLSavedPhoneContact
|
||||||
|
Response = (TLVector<TLSavedPhoneContact>)ObjectUtils.DeserializeVector<TLSavedPhoneContact> (br);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,8 @@ namespace TeleSharp.TL.Payments
|
||||||
public string NativeProvider { get; set; }
|
public string NativeProvider { get; set; }
|
||||||
public TLDataJSON NativeParams { get; set; }
|
public TLDataJSON NativeParams { get; set; }
|
||||||
public TLPaymentRequestedInfo SavedInfo { get; set; }
|
public TLPaymentRequestedInfo SavedInfo { get; set; }
|
||||||
public PaymentSavedCredentials SavedCredentials { get; set; }
|
// manual edit: PaymentSavedCredentials -> TLPaymentSavedCredentialsCard
|
||||||
|
public TLPaymentSavedCredentialsCard SavedCredentials { get; set; }
|
||||||
public TLVector<TLAbsUser> Users { get; set; }
|
public TLVector<TLAbsUser> Users { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -63,7 +64,8 @@ namespace TeleSharp.TL.Payments
|
||||||
SavedInfo = null;
|
SavedInfo = null;
|
||||||
|
|
||||||
if ((Flags & 2) != 0)
|
if ((Flags & 2) != 0)
|
||||||
SavedCredentials = (PaymentSavedCredentials)ObjectUtils.DeserializeObject(br);
|
// manual edit: PaymentSavedCredentials -> TLPaymentSavedCredentialsCard
|
||||||
|
SavedCredentials = (TLPaymentSavedCredentialsCard)ObjectUtils.DeserializeObject(br);
|
||||||
else
|
else
|
||||||
SavedCredentials = null;
|
SavedCredentials = null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,10 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileLocation PhotoSmall { get; set; }
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
public FileLocation PhotoBig { get; set; }
|
public TLFileLocationToBeDeprecated PhotoSmall { get; set; }
|
||||||
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
public TLFileLocationToBeDeprecated PhotoBig { get; set; }
|
||||||
public int DcId { get; set; }
|
public int DcId { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -31,8 +33,10 @@ namespace TeleSharp.TL
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
PhotoSmall = (FileLocation)ObjectUtils.DeserializeObject(br);
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
PhotoBig = (FileLocation)ObjectUtils.DeserializeObject(br);
|
PhotoSmall = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
PhotoBig = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
DcId = br.ReadInt32();
|
DcId = br.ReadInt32();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,8 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLVector<TLJSONObjectValue> Value { get; set; }
|
// manual edit: TLJSONObjectValue->TLJsonObjectValue
|
||||||
|
public TLVector<TLJsonObjectValue> Value { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
|
@ -29,7 +30,8 @@ namespace TeleSharp.TL
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
Value = (TLVector<TLJSONObjectValue>)ObjectUtils.DeserializeVector<TLJSONObjectValue>(br);
|
// manual edit: TLJSONObjectValue->TLJsonObjectValue
|
||||||
|
Value = (TLVector<TLJsonObjectValue>)ObjectUtils.DeserializeVector<TLJsonObjectValue> (br);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
public FileLocation Location { get; set; }
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
public TLFileLocationToBeDeprecated Location { get; set; }
|
||||||
public int W { get; set; }
|
public int W { get; set; }
|
||||||
public int H { get; set; }
|
public int H { get; set; }
|
||||||
public byte[] Bytes { get; set; }
|
public byte[] Bytes { get; set; }
|
||||||
|
|
@ -34,7 +35,8 @@ namespace TeleSharp.TL
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
Type = StringUtil.Deserialize(br);
|
Type = StringUtil.Deserialize(br);
|
||||||
Location = (FileLocation)ObjectUtils.DeserializeObject(br);
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
Location = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
W = br.ReadInt32();
|
W = br.ReadInt32();
|
||||||
H = br.ReadInt32();
|
H = br.ReadInt32();
|
||||||
Bytes = BytesUtil.Deserialize(br);
|
Bytes = BytesUtil.Deserialize(br);
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
public FileLocation Location { get; set; }
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
public TLFileLocationToBeDeprecated Location { get; set; }
|
||||||
public int W { get; set; }
|
public int W { get; set; }
|
||||||
public int H { get; set; }
|
public int H { get; set; }
|
||||||
public int Size { get; set; }
|
public int Size { get; set; }
|
||||||
|
|
@ -34,7 +35,8 @@ namespace TeleSharp.TL
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
Type = StringUtil.Deserialize(br);
|
Type = StringUtil.Deserialize(br);
|
||||||
Location = (FileLocation)ObjectUtils.DeserializeObject(br);
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
Location = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
W = br.ReadInt32();
|
W = br.ReadInt32();
|
||||||
H = br.ReadInt32();
|
H = br.ReadInt32();
|
||||||
Size = br.ReadInt32();
|
Size = br.ReadInt32();
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,10 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
|
|
||||||
public long PhotoId { get; set; }
|
public long PhotoId { get; set; }
|
||||||
public FileLocation PhotoSmall { get; set; }
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
public FileLocation PhotoBig { get; set; }
|
public TLFileLocationToBeDeprecated PhotoSmall { get; set; }
|
||||||
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
public TLFileLocationToBeDeprecated PhotoBig { get; set; }
|
||||||
public int DcId { get; set; }
|
public int DcId { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -33,8 +35,10 @@ namespace TeleSharp.TL
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
PhotoId = br.ReadInt64();
|
PhotoId = br.ReadInt64();
|
||||||
PhotoSmall = (FileLocation)ObjectUtils.DeserializeObject(br);
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
PhotoBig = (FileLocation)ObjectUtils.DeserializeObject(br);
|
PhotoSmall = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
|
// manual edit: FileLocation->TLFileLocationToBeDeprecated
|
||||||
|
PhotoBig = (TLFileLocationToBeDeprecated)ObjectUtils.DeserializeObject(br);
|
||||||
DcId = br.ReadInt32();
|
DcId = br.ReadInt32();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
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(481674261)]
|
|
||||||
public class TLVector : TLObject
|
|
||||||
{
|
|
||||||
public override int Constructor
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return 481674261;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// no fields
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
|
||||||
{
|
|
||||||
bw.Write(Constructor);
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -38,7 +38,8 @@ namespace TeleSharp.TL
|
||||||
public string Author { get; set; }
|
public string Author { get; set; }
|
||||||
public TLAbsDocument Document { get; set; }
|
public TLAbsDocument Document { get; set; }
|
||||||
public TLPage CachedPage { get; set; }
|
public TLPage CachedPage { get; set; }
|
||||||
public TLVector<WebPageAttribute> Attributes { get; set; }
|
// manual edit: WebPageAttribute->TLWebPageAttributeTheme
|
||||||
|
public TLVector<TLWebPageAttributeTheme> Attributes { get; set; }
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
|
@ -118,7 +119,8 @@ namespace TeleSharp.TL
|
||||||
CachedPage = null;
|
CachedPage = null;
|
||||||
|
|
||||||
if ((Flags & 4096) != 0)
|
if ((Flags & 4096) != 0)
|
||||||
Attributes = (TLVector<WebPageAttribute>)ObjectUtils.DeserializeVector<WebPageAttribute>(br);
|
// manual edit: WebPageAttribute->TLWebPageAttributeTheme
|
||||||
|
Attributes = (TLVector<TLWebPageAttributeTheme>)ObjectUtils.DeserializeVector<TLWebPageAttributeTheme> (br);
|
||||||
else
|
else
|
||||||
Attributes = null;
|
Attributes = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue