Exemplo n.º 1
0
 public override string ToString()
 {
     return(CommandType switch
     {
         ECommandType.IRC => string.Format("IRC User \"{0}\" in \"{1}\"", SenderIdentity, Recipient),
         ECommandType.SteamIndividual => string.Format("Steam User \"{0}\"", SenderID.Render(true)),
         _ => base.ToString(),
     });
Exemplo n.º 2
0
 public override string ToString()
 {
     return(CommandType switch
     {
         ECommandType.IRC => $"IRC User \"{SenderIdentity}\" in \"{Recipient}\"",
         ECommandType.SteamIndividual => $"Steam User \"{SenderID.Render()}\"",
         _ => base.ToString(),
     });
Exemplo n.º 3
0
        public override string ToString()
        {
            switch (CommandType)
            {
            case ECommandType.IRC:
                return(string.Format("IRC User \"{0}\" in \"{1}\"", SenderIdentity, Recipient));

            case ECommandType.SteamIndividual:
                return(string.Format("Steam User \"{0}\"", SenderID.Render(true)));
            }

            return(base.ToString());
        }