Exemplo n.º 1
0
 public IReadOnlyDictionary <string, string> GetAllMetadata() => Lobby.GetAllMemberMetadata(Id);
Exemplo n.º 2
0
 /// <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);
Exemplo n.º 3
0
 /// <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);
Exemplo n.º 4
0
 /// <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);
Exemplo n.º 5
0
 internal LobbyMember(Lobby lobby, AccountHandle userId)
 {
     Id    = userId;
     Lobby = lobby;
     State = ConnectionState.Connected;
 }