Exemple #1
0
        public static string GetCommandName(ushort componentId, ushort commandId)
        {
            string result = "";

            switch ((Component)componentId)
            {
            case Component.AUTHENTICATION:
                result = AuthenticationComponent.GetCommandName(commandId);
                break;

            case Component.GAMEMANAGER:
                result = GameManagerComponent.GetCommandName(commandId);
                break;

            case Component.REDIRECTOR:
                result = RedirectorComponent.GetCommandName(commandId);
                break;

            case Component.STATS:
                result = StatsComponent.GetCommandName(commandId);
                break;

            case Component.UTIL:
                result = UtilComponent.GetCommandName(commandId);
                break;

            case Component.CLUBS:
                result = ClubsComponent.GetCommandName(commandId);
                break;

            case Component.RSP:
                result = RSPComponent.GetCommandName(commandId);
                break;

            case Component.USERSESSIONS:
                result = UserSessionsComponent.GetCommandName(commandId);
                break;

            case Component.GAMEREPORTING:
                result = GameReportingComponent.GetCommandName(commandId);
                break;

            default:
                result = string.Format("0x" + commandId.ToString("X4"));
                break;
            }

            return(result);
        }