public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Ipv6 = (Flags & 1) != 0; MediaOnly = (Flags & 2) != 0; TcpoOnly = (Flags & 4) != 0; Cdn = (Flags & 8) != 0; Static = (Flags & 16) != 0; Id = br.ReadInt32(); IpAddress = StringUtil.Deserialize(br); Port = br.ReadInt32(); if ((Flags & 1024) != 0) { Secret = BytesUtil.Deserialize(br); } else { Secret = null; } }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Title = StringUtil.Deserialize(br); Description = StringUtil.Deserialize(br); if ((Flags & 1) != 0) { Photo = (TLInputWebDocument)ObjectUtils.DeserializeObject(br); } else { Photo = null; } Invoice = (TLInvoice)ObjectUtils.DeserializeObject(br); Payload = BytesUtil.Deserialize(br); Provider = StringUtil.Deserialize(br); ProviderData = (TLDataJSON)ObjectUtils.DeserializeObject(br); StartParam = StringUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Id = br.ReadInt64(); AccessHash = br.ReadInt64(); FileReference = BytesUtil.Deserialize(br); Date = br.ReadInt32(); MimeType = StringUtil.Deserialize(br); Size = br.ReadInt32(); if ((Flags & 1) != 0) { Thumbs = (TLVector <TLAbsPhotoSize>)ObjectUtils.DeserializeVector <TLAbsPhotoSize>(br); } else { Thumbs = null; } DcId = br.ReadInt32(); Attributes = (TLVector <TLAbsDocumentAttribute>)ObjectUtils.DeserializeVector <TLAbsDocumentAttribute>(br); }
public override void DeserializeBody(BinaryReader br) { Salt = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { SrpId = br.ReadInt64(); A = BytesUtil.Deserialize(br); M1 = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Type = (TLAbsSecureValueType)ObjectUtils.DeserializeObject(br); Hash = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Type = (TLAbsSecureValueType)ObjectUtils.DeserializeObject(br); if ((Flags & 1) != 0) { Data = (TLSecureData)ObjectUtils.DeserializeObject(br); } else { Data = null; } if ((Flags & 2) != 0) { FrontSide = (TLAbsSecureFile)ObjectUtils.DeserializeObject(br); } else { FrontSide = null; } if ((Flags & 4) != 0) { ReverseSide = (TLAbsSecureFile)ObjectUtils.DeserializeObject(br); } else { ReverseSide = null; } if ((Flags & 8) != 0) { Selfie = (TLAbsSecureFile)ObjectUtils.DeserializeObject(br); } else { Selfie = null; } if ((Flags & 64) != 0) { Translation = (TLVector <TLAbsSecureFile>)ObjectUtils.DeserializeVector <TLAbsSecureFile>(br); } else { Translation = null; } if ((Flags & 16) != 0) { Files = (TLVector <TLAbsSecureFile>)ObjectUtils.DeserializeVector <TLAbsSecureFile>(br); } else { Files = null; } if ((Flags & 32) != 0) { PlainData = (TLAbsSecurePlainData)ObjectUtils.DeserializeObject(br); } else { PlainData = null; } Hash = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Id = StringUtil.Deserialize(br); TmpPassword = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Text = StringUtil.Deserialize(br); Data = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Id = br.ReadInt64(); AccessHash = br.ReadInt64(); FileReference = BytesUtil.Deserialize(br); }
public static string Deserialize(BinaryReader reader) { byte[] data = BytesUtil.Deserialize(reader); return(Encoding.UTF8.GetString(data, 0, data.Length)); }
public override void DeserializeBody(BinaryReader br) { Type = StringUtil.Deserialize(br); Bytes = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { SecureAlgo = (TLAbsSecurePasswordKdfAlgo)ObjectUtils.DeserializeObject(br); SecureSecret = BytesUtil.Deserialize(br); SecureSecretId = br.ReadInt64(); }
public override void DeserializeBody(BinaryReader br) { Data = BytesUtil.Deserialize(br); Hash = BytesUtil.Deserialize(br); Secret = BytesUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Offset = br.ReadInt32(); Limit = br.ReadInt32(); Hash = BytesUtil.Deserialize(br); }