GWebCache 1.0.0-alpha
C# library and nuget package to interact with a Gnutella Webcache
Loading...
Searching...
No Matches
GWebCache.ReponseProcessing.Result< T > Class Template Reference

A wrapper object to gracefully handle errors. More...

Properties

bool WasSuccessful [get, set]
 The request completed succefully.
 
bool IsV2Response [get, set]
 The response is in a V2 format.
 
string? ErrorMessage [get, set]
 Possible error message returned from the webcache.
 
T? ResultObject [get, set]
 Parsed resulting object will be null in case of error.
 

Detailed Description

A wrapper object to gracefully handle errors.

Template Parameters
TThe response type that you want to wrap

Result<PongResponse>

Type Constraints
T :GWebCacheResponse 

Property Documentation

◆ IsV2Response

bool GWebCache.ReponseProcessing.Result< T >.IsV2Response
getset

The response is in a V2 format.

mainly used internally for parsing the http respons into the response object

GWebCacheResponse.IsValidV2Response(HttpResponseMessage?)

◆ WasSuccessful

bool GWebCache.ReponseProcessing.Result< T >.WasSuccessful
getset

The request completed succefully.

Succesfull completion is defined by every response individually.

GWebCacheResponse.IsValidResponse(HttpResponseMessage?)


The documentation for this class was generated from the following file: