TicketUserServices

<back to all web services

EventEmailMessagesSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/EventEmailMessage/Search
import Foundation
import ServiceStack

public class EventEmailMessagesSearchRequest : Codable
{
    public var eventId:Int?
    public var ownerId:Int?

    required public init(){}
}

public class EventEmailMessagesResult : Codable
{
    public var items:[EventEmailMessage] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class EventEmailMessage : Codable
{
    public var id:Int?
    public var eventId:Int?
    public var ownerId:Int?
    public var ticketTypeId:Int?
    public var messageIs:String?
    public var messageEn:String?
    public var isActive:Bool?
    public var createdAt:Date?
    public var updatedAt:Date?

    required public init(){}
}


Swift EventEmailMessagesSearchRequest 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.

POST /EventEmailMessage/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	ownerId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			eventId: 0,
			ownerId: 0,
			ticketTypeId: 0,
			messageIs: String,
			messageEn: String,
			isActive: False,
			createdAt: 0001-01-01,
			updatedAt: 0001-01-01
		}
	],
	statusCode: 0,
	message: String
}