コード例 #1
0
        public override string TryToExecute(CommandReceivedEventArgs eventArgs)
        {
            JoinGameResult joinGameResult = _game.AttemptToJoin(eventArgs.ChatUser);

            return(joinGameResult.Message);
        }
コード例 #2
0
 protected bool Equals(JoinGameResult other)
 {
     return(Success == other.Success && string.Equals(Message, other.Message));
 }