MyWinMed  4.0
Home
MyWinMed API Documentation
Ehr.Api.Responses.IServerResponse Interface Reference

IServerResponse Properties

ResponseStatus Status [get, set]
 The resulting status of the operation
 
string Message [get, set]
 Any message returned as a result of the operation
 
 

Property Documentation

◆ Message

string Ehr.Api.Responses.IServerResponse.Message
getset

Any message returned as a result of the operation

◆ Status

ResponseStatus  Ehr.Api.Responses.IServerResponse.Status
getset

The resulting status of the operation


Ehr.Api.Responses.ServerResponse Class Reference

Object used for describing a result of an operation made on the server that also returns a result

Public Member Functions

 ServerResponse (T result)
 Initializes a new instance of the ServerResponse<T> class. Status is Success by default.
 
 ServerResponse (T result, ResponseStatus  status)
 Initializes a new instance of the ServerResponse<T> class. Status is Success by default.
 
 ServerResponse (string message, ResponseStatus  status=ResponseStatus.Fail)
 Initializes a new instance of the Responses.ServerResponse<T> class. Status is Fail by default.
 
 ServerResponse (string message, ResponseStatus > status=ResponseStatus.Fail, T result=default(T))
 Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.
 
 ServerResponse (Exception ex)
 Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.
 

Properties

ResponseStatus  Status [get, set]
 Gets or sets resulting status of operation
 
string Message [get, set]
 Gets or sets additional details regarding the status of the operation
 
Result [get, set]
 Gets or sets result returned by the operation
 
 
 Properties inherited from Ehr.Api.Responses.IServerResponse
ResponseStatus  Status [get, set]
 The resulting status of the operation
 
string Message [get, set]
 Any message returned as a result of the operation
 
 

Detailed Description

Object used for describing a result of an operation made on the server that also returns a result

Template Parameters
Tobject type

Constructor & Destructor Documentation

◆ ServerResponse() [1/6]

Initializes a new instance of the ServerResponse<T> class. Status is Success by default.

Parameters
resultThe result returned from the operation

◆ ServerResponse() [2/6]

Initializes a new instance of the ServerResponse<T> class. Status is Success by default.

Parameters
resultThe result returned from the operation
statusThe status of the response

◆ ServerResponse() [3/6]

Ehr.Api.Responses.ServerResponse< T >.ServerResponse ( string  message,
ResponseStatus   status = ResponseStatus.Fail 
)

Initializes a new instance of the Responses.ServerResponse<T> class. Status is Fail by default.

Parameters
messageAdditional information about the reponse
statusThe status of the response

◆ ServerResponse() [4/6]

Ehr.Api.Responses.ServerResponse< T >.ServerResponse ( string  message,
ResponseStatus   status = ResponseStatus.Fail,
result = default(T) 
)

Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.

Parameters
messageAdditional information about the reponse
statusThe status of the response
resultThe result returned from the operation

◆ ServerResponse() [5/6]

Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.

Parameters
messageAdditional information about the reponse

◆ ServerResponse() [6/6]

Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.

Parameters
exexception object

Property Documentation

◆ Message

string Ehr.Api.Responses.ServerResponse< T >.Message
getset

Gets or sets additional details regarding the status of the operation

◆ Result

T Ehr.Api.Responses.ServerResponse< T >.Result
getset

Gets or sets result returned by the operation

◆ Status

Gets or sets resulting status of operation