public TLInputPhoneContact(long? clientID = null, string phone = null, string firstName = null, string lastName = null) { if (clientID != null) this.ClientID = new TLLong(clientID.Value); if (phone != null) this.Phone = new TLString(phone); if (firstName != null) this.FirstName = new TLString(firstName); if (lastName != null) this.LastName = new TLString(lastName); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowIfIncorrectSignature(ref position, SIGNATURE); ClientID = new TLLong(bytes, ref position); Phone = new TLString(bytes, ref position); FirstName = new TLString(bytes, ref position); LastName = new TLString(bytes, ref position); return this; }
public override TLObject FromStream(Stream input, ref int position) { input.ThrowIfIncorrectSignature(ref position, SIGNATURE); ClientID = new TLLong(input, ref position); Phone = new TLString(input, ref position); FirstName = new TLString(input, ref position); LastName = new TLString(input, ref position); return this; }