Exemplo n.º 1
0
        public string Message(ERROR_LANGUAGE language = ERROR_LANGUAGE.eng)
        {
            if (dic_ErrorCode.ContainsKey(language) == false)
            {
                language = ERROR_LANGUAGE.eng;
            }

            return(dic_ErrorCode[language]);
        }
Exemplo n.º 2
0
 public Result(ERROR_CODES code,
               T response,
               bool log = false,
               ERROR_LANGUAGE language = ERROR_LANGUAGE.kor)
 {
     Code     = (int)code;
     Message  = ErrorCode.Message(code, language);
     Log      = log;
     Response = response;
 }
Exemplo n.º 3
0
 public static string Message(ERROR_CODES code, ERROR_LANGUAGE language = ERROR_LANGUAGE.eng)
 {
     return(ErrorCodes[code].Message(language));
 }