public static AccountId Deserialize(Stream stream, AccountId instance) { return(AccountId.Deserialize(stream, instance, -1L)); }
public void Serialize(Stream stream) { AccountId.Serialize(stream, this); }
public void Deserialize(Stream stream) { AccountId.Deserialize(stream, this); }
public override bool Equals(object obj) { AccountId accountId = obj as AccountId; return(accountId != null && this.Id.Equals(accountId.Id)); }
public void AddAccount(AccountId val) { this._Account.Add(val); }
public void SetAccount(AccountId val) { this.Account = val; }
public static CreateGameAccountRequest Deserialize(Stream stream, CreateGameAccountRequest instance, long limit) { BinaryReader binaryReader = new BinaryReader(stream); instance.RealmPermissions = 1u; while (limit < 0L || stream.Position < limit) { int num = stream.ReadByte(); if (num == -1) { if (limit >= 0L) { throw new EndOfStreamException(); } return(instance); } else { switch (num) { case 29: instance.Program = binaryReader.ReadUInt32(); break; default: if (num != 10) { if (num != 16) { Key key = ProtocolParser.ReadKey((byte)num, stream); uint field = key.Field; if (field == 0u) { throw new ProtocolBufferException("Invalid field id: 0, something went wrong in the stream"); } ProtocolParser.SkipKey(stream, key); } else { instance.Region = ProtocolParser.ReadUInt32(stream); } } else if (instance.Account == null) { instance.Account = AccountId.DeserializeLengthDelimited(stream); } else { AccountId.DeserializeLengthDelimited(stream, instance.Account); } break; case 32: instance.RealmPermissions = ProtocolParser.ReadUInt32(stream); break; } } } if (stream.Position == limit) { return(instance); } throw new ProtocolBufferException("Read past max limit"); }