MyWinMed
4.0
|
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 | |
|
getset |
Any message returned as a result of the operation
|
getset |
The resulting status of the operation
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 | |
T | 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 | |
Object used for describing a result of an operation made on the server that also returns a result
T | object type |
Ehr.Api.Responses.ServerResponse< T >.ServerResponse | ( | T | result | ) |
Initializes a new instance of the ServerResponse<T> class. Status is Success by default.
result | The result returned from the operation |
Ehr.Api.Responses.ServerResponse< T >.ServerResponse | ( | T | result, |
ResponseStatus | status | ||
) |
Initializes a new instance of the ServerResponse<T> class. Status is Success by default.
result | The result returned from the operation |
status | The status of the response |
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.
message | Additional information about the reponse |
status | The status of the response |
Ehr.Api.Responses.ServerResponse< T >.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.
message | Additional information about the reponse |
status | The status of the response |
result | The result returned from the operation |
Ehr.Api.Responses.ServerResponse< T >.ServerResponse | ( | string | message, |
) |
Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.
message | Additional information about the reponse |
Ehr.Api.Responses.ServerResponse< T >.ServerResponse | ( | Exception | ex | ) |
Initializes a new instance of the ServerResponse<T> class. Status is Fail by default.
ex | exception object |
|
getset |
Gets or sets additional details regarding the status of the operation
|
getset |
Gets or sets result returned by the operation
|
getset |
Gets or sets resulting status of operation