Ejemplo n.º 1
0
    public override void OnRequestDataSuccess(int code, string message, JSONObject result)
    {
        if (API_Helper.CodeIsSuccess(code))
        {
            Dictionary <string, string> constantsData = null;

            try
            {
                ValidateHasConstantsArray(result);
                constantsData = GetConstantsData(result);
            }
            catch (Exception e)
            {
                code    = API_Code.ERROR_CODE;
                message = e.Message;
            }

            callback(code, message, constantsData);
        }
        else
        {
            callback(code, message);
        }
    }