Пример #1
0
        /// <summary>
        /// Gets the persona name of a friend.
        /// </summary>
        /// <param name="steamId">The steam id.</param>
        /// <returns>The name.</returns>
        public string GetFriendPersonaName(SteamID steamId)
        {
            if (steamId == null)
            {
                throw new ArgumentNullException(nameof(steamId));
            }

            return(cache.GetUser(steamId).Name);
        }
Пример #2
0
 /// <summary>
 /// Gets the persona name of a friend.
 /// </summary>
 /// <param name="steamId">The steam id.</param>
 /// <returns>The name.</returns>
 public string GetFriendPersonaName(SteamID steamId)
 {
     return(cache.GetUser(steamId).Name);
 }