TicketUserServices

<back to all web services

OwnerCardTypePopularityRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:ReadData
The following routes are available for this service:
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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"statusCode":0,"message":"String","items":[{"ownerCardTypeId":0,"name":"String","activeHolders":0}]}