Пример #1
0
 public IReadOnlyDictionary <string, string> GetAllMetadata() => Lobby.GetAllMemberMetadata(Id);
Пример #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);
Пример #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);
Пример #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);
Пример #5
0
 internal LobbyMember(Lobby lobby, AccountHandle userId)
 {
     Id    = userId;
     Lobby = lobby;
     State = ConnectionState.Connected;
 }