Esempio n. 1
0
 private void CheckHash(string currentId, string hash)
 {
     if (TotalPlayers?.ContainsKey(hash) == true)
     {
         PlayersFound.Add(new Tuple <string, string>(hash, currentId));
     }
 }
Esempio n. 2
0
        public string GetRolesAsString()
        {
            string s = "";

            foreach (var kvp in RoleIdDict)
            {
                s += $"\n<b>{WebUtility.HtmlEncode(TotalPlayers.Find(x => x.Id == kvp.Key).Name)}</b>: " +
                     $"<i>{WebUtility.HtmlEncode(kvp.Value)}</i>";
            }
            return(s);
        }