C# Class ADPAPIClient.HttpClient

Show file Open project: ministryofjustice/adp_api_client Class Usage Examples

Public Properties

Property Type Description
fullUrl string
responseStatusCode HttpStatusCode

Public Methods

Method Description
HttpClient ( ) : System
createClaim ( string jsonPayload ) : string
getCaseTypes ( ) : string
getCourts ( ) : string

Private Methods

Method Description
extractErrorDetails ( WebException ex ) : string
getEndpointResponse ( string endpointSuffix ) : string
getUrl ( string endpoint ) : string
instantiateClient ( ) : WebClient

Method Details

HttpClient() public method

public HttpClient ( ) : System
return System

createClaim() public method

public createClaim ( string jsonPayload ) : string
jsonPayload string
return string

getCaseTypes() public method

public getCaseTypes ( ) : string
return string

getCourts() public method

public getCourts ( ) : string
return string

Property Details

fullUrl public property

public string fullUrl
return string

responseStatusCode public property

public HttpStatusCode responseStatusCode
return HttpStatusCode