/// <summary> /// Gets the client info. /// </summary> /// <param name="clientId">The client id.</param> /// <returns></returns> public ClientInfoResponse GetClientInfo(uint clientId) { lock (Container.lockGetClientInfo) { if (!Container.ClientInfoList.ContainsKey(clientId)) { Container.ClientInfoList.Add(clientId, QueryRunner.GetClientInfo(clientId)); } } return(Container.ClientInfoList[clientId]); }
/// <summary> /// Get the filename of the avatar of the client with the provided clientId /// </summary> /// <param name="clientId">the id of the client</param> public string GetAvatarFilename(uint clientId) { return(GetAvatarFilename(QueryRunner.GetClientInfo(clientId))); }