| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| GET | /ownerCardType/popularity/{OwnerId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardTypePopularityRequest
{
public Integer ownerId = null;
public Integer getOwnerId() { return ownerId; }
public OwnerCardTypePopularityRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
}
public static class OwnerCardTypePopularityResult
{
public Integer statusCode = null;
public String message = null;
public ArrayList<OwnerCardTypePopularityItem> items = null;
public Integer getStatusCode() { return statusCode; }
public OwnerCardTypePopularityResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardTypePopularityResult setMessage(String value) { this.message = value; return this; }
public ArrayList<OwnerCardTypePopularityItem> getItems() { return items; }
public OwnerCardTypePopularityResult setItems(ArrayList<OwnerCardTypePopularityItem> value) { this.items = value; return this; }
}
public static class OwnerCardTypePopularityItem
{
public Integer ownerCardTypeId = null;
public String name = null;
public Integer activeHolders = null;
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCardTypePopularityItem setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public String getName() { return name; }
public OwnerCardTypePopularityItem setName(String value) { this.name = value; return this; }
public Integer getActiveHolders() { return activeHolders; }
public OwnerCardTypePopularityItem setActiveHolders(Integer value) { this.activeHolders = value; return this; }
}
}
Java 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>