public IReadOnlyDictionary <string, string> GetAllMetadata() => Lobby.GetAllMemberMetadata(Id);
/// <summary> /// Deletes a metadata entry from the member. /// </summary> /// <param name="key">the key of the metadata to delete from</param> public void DeleteMetadata(string key) => Lobby.DeleteMemberMetadata(Id, key);
/// <summary> /// Gets the member metadata value. /// </summary> /// <param name="key">the metadata key</param> /// <returns>the metadata value, may return null or empty strings if not set</returns> public string GetMetadata(string key) => Lobby.GetMemberMetadata(Id, key);
/// <summary> /// Sets the metadata for the member. /// Generally requires being that user. /// </summary> /// <param name="key">the key of the metadata</param> /// <param name="value">the value of the metadata</param> public void SetMetadata(string key, string value) => Lobby.SetMemberMetadata(Id, key, value);
internal LobbyMember(Lobby lobby, AccountHandle userId) { Id = userId; Lobby = lobby; State = ConnectionState.Connected; }