Batch.Internal.Response.Response C# (CSharp) Метод

Response() публичный Метод

public Response ( string response ) : System
response string
Результат System
        public Response(string response)
        {
            if( response == null )
            {
                throw new ArgumentNullException("The JSON string is null.");
            }
            if( response.Length == 0 )
            {
                throw new FormatException("The JSON string is empty.");
            }

            Logger.Log(true, "Response", "BAResponse JSON : " + response);

            responseString = response;
            responseData = JsonMapper.ToObject(responseString);
            if( responseData == null )
            {
                throw new FormatException("Error while parsing response JSON.");
            }
        }