using System.IO; namespace TeleSharp.TL { [TLObject(1816636575)] public class TLLangPackStringPluralized : TLAbsLangPackString { public override int Constructor { get { return 1816636575; } } public string FewValue { get; set; } public int Flags { get; set; } public string Key { get; set; } public string ManyValue { get; set; } public string OneValue { get; set; } public string OtherValue { get; set; } public string TwoValue { get; set; } public string ZeroValue { get; set; } public void ComputeFlags() { } public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Key = StringUtil.Deserialize(br); if ((Flags & 1) != 0) ZeroValue = StringUtil.Deserialize(br); else ZeroValue = null; if ((Flags & 2) != 0) OneValue = StringUtil.Deserialize(br); else OneValue = null; if ((Flags & 4) != 0) TwoValue = StringUtil.Deserialize(br); else TwoValue = null; if ((Flags & 8) != 0) FewValue = StringUtil.Deserialize(br); else FewValue = null; if ((Flags & 16) != 0) ManyValue = StringUtil.Deserialize(br); else ManyValue = null; OtherValue = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); bw.Write(Flags); StringUtil.Serialize(Key, bw); if ((Flags & 1) != 0) StringUtil.Serialize(ZeroValue, bw); if ((Flags & 2) != 0) StringUtil.Serialize(OneValue, bw); if ((Flags & 4) != 0) StringUtil.Serialize(TwoValue, bw); if ((Flags & 8) != 0) StringUtil.Serialize(FewValue, bw); if ((Flags & 16) != 0) StringUtil.Serialize(ManyValue, bw); StringUtil.Serialize(OtherValue, bw); } } }