BeeCloud.BCPay.handleQueryCountResult C# (CSharp) Метод

handleQueryCountResult() публичный статический Метод

public static handleQueryCountResult ( string respString ) : int
respString string
Результат int
        public static int handleQueryCountResult(string respString)
        {
            JsonData responseData = JsonMapper.ToObject(respString);
            if (responseData["result_code"].ToString() == "0")
            {
                if (responseData["count"].IsInt)
                {
                    return int.Parse(responseData["count"].ToString());
                }
                else
                {
                    var ex = new BCException("服务出错啦:-(");
                    throw ex;
                }
            }
            else
            {
                var ex = new BCException(responseData["err_detail"].ToString());
                throw ex;
            }
        }