TicketUserServices

<back to all web services

SharedTicketLinkGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET/SharedTicketLink/{Token}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SharedTicketLinkGetRequest
    {
        public String token = null;
        
        public String getToken() { return token; }
        public SharedTicketLinkGetRequest setToken(String value) { this.token = value; return this; }
    }

    public static class SharedTicketLinkPublicResult
    {
        public Boolean ok = null;
        public String token = null;
        public Integer eventId = null;
        public Integer ticketOwnerTypeId = null;
        public Integer count = null;
        public Integer sectionId = null;
        public ArrayList<SharedTicketLinkSeatInfo> seats = null;
        public String status = null;
        public Date validTo = null;
        public LocalizedMessage statusMessage = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Boolean isOk() { return ok; }
        public SharedTicketLinkPublicResult setOk(Boolean value) { this.ok = value; return this; }
        public String getToken() { return token; }
        public SharedTicketLinkPublicResult setToken(String value) { this.token = value; return this; }
        public Integer getEventId() { return eventId; }
        public SharedTicketLinkPublicResult setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getTicketOwnerTypeId() { return ticketOwnerTypeId; }
        public SharedTicketLinkPublicResult setTicketOwnerTypeId(Integer value) { this.ticketOwnerTypeId = value; return this; }
        public Integer getCount() { return count; }
        public SharedTicketLinkPublicResult setCount(Integer value) { this.count = value; return this; }
        public Integer getSectionId() { return sectionId; }
        public SharedTicketLinkPublicResult setSectionId(Integer value) { this.sectionId = value; return this; }
        public ArrayList<SharedTicketLinkSeatInfo> getSeats() { return seats; }
        public SharedTicketLinkPublicResult setSeats(ArrayList<SharedTicketLinkSeatInfo> value) { this.seats = value; return this; }
        public String getStatus() { return status; }
        public SharedTicketLinkPublicResult setStatus(String value) { this.status = value; return this; }
        public Date getValidTo() { return validTo; }
        public SharedTicketLinkPublicResult setValidTo(Date value) { this.validTo = value; return this; }
        public LocalizedMessage getStatusMessage() { return statusMessage; }
        public SharedTicketLinkPublicResult setStatusMessage(LocalizedMessage value) { this.statusMessage = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public SharedTicketLinkPublicResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public SharedTicketLinkPublicResult setMessage(String value) { this.message = value; return this; }
    }

    public static class SharedTicketLinkSeatInfo
    {
        public Integer seatId = null;
        public String sectionName = null;
        public String rowName = null;
        public String seatName = null;
        
        public Integer getSeatId() { return seatId; }
        public SharedTicketLinkSeatInfo setSeatId(Integer value) { this.seatId = value; return this; }
        public String getSectionName() { return sectionName; }
        public SharedTicketLinkSeatInfo setSectionName(String value) { this.sectionName = value; return this; }
        public String getRowName() { return rowName; }
        public SharedTicketLinkSeatInfo setRowName(String value) { this.rowName = value; return this; }
        public String getSeatName() { return seatName; }
        public SharedTicketLinkSeatInfo setSeatName(String value) { this.seatName = value; return this; }
    }

    public static class LocalizedMessage
    {
        public String is = null;
        public String en = null;
        
        public String getIs() { return is; }
        public LocalizedMessage setIs(String value) { this.is = value; return this; }
        public String getEn() { return en; }
        public LocalizedMessage setEn(String value) { this.en = value; return this; }
    }

}

Java SharedTicketLinkGetRequest DTOs

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

HTTP + JSV

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

GET /SharedTicketLink/{Token} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	token: String,
	eventId: 0,
	ticketOwnerTypeId: 0,
	count: 0,
	sectionId: 0,
	seats: 
	[
		{
			seatId: 0,
			sectionName: String,
			rowName: String,
			seatName: String
		}
	],
	status: String,
	validTo: 0001-01-01,
	statusMessage: 
	{
		is: String,
		en: String
	},
	statusCode: 0,
	message: String
}