Trendsic Platform Service

<back to all web services

TicketTypeSubscriptionRequestByAgent

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET/v1/TicketTypeSubscription/Agent/{AgentId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketTypeSubscriptionRequestByAgent
    {
        public Integer AgentId = null;
        
        public Integer getAgentId() { return AgentId; }
        public TicketTypeSubscriptionRequestByAgent setAgentId(Integer value) { this.AgentId = value; return this; }
    }

    public static class TicketTypeSubscriptionResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<TicketTypeSubscriptionExtended> TicketTypeSubscription = new ArrayList<TicketTypeSubscriptionExtended>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public TicketTypeSubscriptionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<TicketTypeSubscriptionExtended> getTicketTypeSubscription() { return TicketTypeSubscription; }
        public TicketTypeSubscriptionResponse setTicketTypeSubscription(ArrayList<TicketTypeSubscriptionExtended> value) { this.TicketTypeSubscription = value; return this; }
    }

    public static class TicketTypeSubscriptionExtended extends TicketTypeSubscription
    {
        public String AgentName = null;
        public String TicketType = null;
        
        public String getAgentName() { return AgentName; }
        public TicketTypeSubscriptionExtended setAgentName(String value) { this.AgentName = value; return this; }
        public String getTicketType() { return TicketType; }
        public TicketTypeSubscriptionExtended setTicketType(String value) { this.TicketType = value; return this; }
    }

    public static class TicketTypeSubscription
    {
        public Integer TicketTypeSubscriptionId = null;
        public Integer TicketTypeId = null;
        public Integer AgentId = null;
        
        public Integer getTicketTypeSubscriptionId() { return TicketTypeSubscriptionId; }
        public TicketTypeSubscription setTicketTypeSubscriptionId(Integer value) { this.TicketTypeSubscriptionId = value; return this; }
        public Integer getTicketTypeId() { return TicketTypeId; }
        public TicketTypeSubscription setTicketTypeId(Integer value) { this.TicketTypeId = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public TicketTypeSubscription setAgentId(Integer value) { this.AgentId = value; return this; }
    }

}

Java TicketTypeSubscriptionRequestByAgent DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/TicketTypeSubscription/Agent/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TicketTypeSubscription":[{"AgentName":"String","TicketType":"String","TicketTypeSubscriptionId":0,"TicketTypeId":0,"AgentId":0}]}