| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| GET | /ownerCardType/popularity/{OwnerId} |
|---|
import 'package:servicestack/servicestack.dart';
class OwnerCardTypePopularityItem implements IConvertible
{
int? ownerCardTypeId;
String? name;
int? activeHolders;
OwnerCardTypePopularityItem({this.ownerCardTypeId,this.name,this.activeHolders});
OwnerCardTypePopularityItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ownerCardTypeId = json['ownerCardTypeId'];
name = json['name'];
activeHolders = json['activeHolders'];
return this;
}
Map<String, dynamic> toJson() => {
'ownerCardTypeId': ownerCardTypeId,
'name': name,
'activeHolders': activeHolders
};
getTypeName() => "OwnerCardTypePopularityItem";
TypeContext? context = _ctx;
}
class OwnerCardTypePopularityResult implements IConvertible
{
int? statusCode;
String? message;
List<OwnerCardTypePopularityItem>? items;
OwnerCardTypePopularityResult({this.statusCode,this.message,this.items});
OwnerCardTypePopularityResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
items = JsonConverters.fromJson(json['items'],'List<OwnerCardTypePopularityItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'message': message,
'items': JsonConverters.toJson(items,'List<OwnerCardTypePopularityItem>',context!)
};
getTypeName() => "OwnerCardTypePopularityResult";
TypeContext? context = _ctx;
}
class OwnerCardTypePopularityRequest implements IConvertible
{
int? ownerId;
OwnerCardTypePopularityRequest({this.ownerId});
OwnerCardTypePopularityRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ownerId = json['ownerId'];
return this;
}
Map<String, dynamic> toJson() => {
'ownerId': ownerId
};
getTypeName() => "OwnerCardTypePopularityRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'OwnerCardTypePopularityItem': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityItem()),
'OwnerCardTypePopularityResult': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityResult()),
'List<OwnerCardTypePopularityItem>': TypeInfo(TypeOf.Class, create:() => <OwnerCardTypePopularityItem>[]),
'OwnerCardTypePopularityRequest': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityRequest()),
});
Dart OwnerCardTypePopularityRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ownerCardType/popularity/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardTypePopularityResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Items>
<OwnerCardTypePopularityItem>
<ActiveHolders>0</ActiveHolders>
<Name>String</Name>
<OwnerCardTypeId>0</OwnerCardTypeId>
</OwnerCardTypePopularityItem>
</Items>
<Message>String</Message>
<StatusCode>0</StatusCode>
</OwnerCardTypePopularityResult>