Click or drag to resize
ServiceResponseTData Class
Generic service response
Inheritance Hierarchy
SystemObject
  CMS.WebServicesServiceResponse
    CMS.WebServicesServiceResponseTData

Namespace: CMS.WebServices
Assembly: CMS.WebServices (in CMS.WebServices.dll) Version: 8.2.23
Syntax
C#
public class ServiceResponse<TData> : ServiceResponse

Type Parameters

TData
Type of payload

The ServiceResponseTData type exposes the following members.

Constructors
  NameDescription
Public methodServiceResponseTData
Default constructor
Public methodServiceResponseTData(TData)
Parametric constructor for OK cases
Public methodServiceResponseTData(ResponseStatusEnum)
Parametric constructor for status response only
Public methodServiceResponseTData(ServiceResponse)
Copy constructor
Public methodServiceResponseTData(ResponseStatusEnum, String)
Parametric constructor for error cases
Public methodServiceResponseTData(ResponseStatusEnum, String, TData)
Parametric constructor for error cases
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyData
Payload
Public propertyScreenLockInterval
ScreenLock interval
(Inherited from ServiceResponse.)
Public propertyStatusCode
Status code
(Inherited from ServiceResponse.)
Public propertyStatusMessage
Status message
(Inherited from ServiceResponse.)
Top
See Also