Class BasicResponse<TModel>
A basic API response
Namespace: Seltzr.Responses
Assembly: Seltzr.dll
Syntax
C#
public class BasicResponse<TModel> : Response<TModel> where TModel : class
Type Parameters
TModel
The type of model included in the API response
Properties
Gets or sets a string which, when present, indicates the version of this API
C#
public string ApiVersion { get; set; }
Property Value
StringGets or sets an integer which, when present, indicates the number of elements included in the response
C#
public int Count { get; set; }
Property Value
Int32Gets or sets a string which, when present, indicates that this API version has been deprecated
C#
public string DeprecationNotice { get; set; }
Property Value
StringGets or sets the element to include in the API response
C#
public TModel Element { get; set; }
Property Value
TModelGets or sets the elements to include in the API response
C#
public TModel[] Elements { get; set; }
Property Value
TModel[]Gets or sets an integer which, when present, indicates the current page when using pagination
C#
public int Page { get; set; }
Property Value
Int32Gets or sets an integer which, when present, indicates the total number of pages when using pagination
C#
public int Pages { get; set; }