TicketUserServices

<back to all web services

FanSnapshotOwnerRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin
The following routes are available for this service:
POST/FanSnapshot/Owner
import Foundation
import ServiceStack

public class FanSnapshotOwnerRequest : Codable
{
    public var eventOwnerId:Int?
    public var days:Int?
    public var definitionVersion:Int?

    required public init(){}
}

public class FanSnapshotOwnerResult : Codable
{
    public var eventOwnerId:Int?
    public var clubEventOwnerId:Int?
    public var definitionVersion:Int?
    public var asOf:String?
    public var current:[FanSegmentFigure] = []
    public var extras:[FanSegmentFigure] = []
    public var compareDate:String?
    public var compare:[FanSegmentFigure] = []
    public var compareExtras:[FanSegmentFigure] = []
    public var series:[FanSnapshotPoint] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class FanSegmentFigure : Codable
{
    public var segment:String?
    public var fans:Int?
    public var orders:Int?
    public var spendIsk:Int?

    required public init(){}
}

public class FanSnapshotPoint : Codable
{
    public var date:String?
    public var `new`:Int?
    public var active:Int?
    public var atRisk:Int?
    public var dropoff:Int?
    public var lost:Int?
    public var neverBought:Int?
    public var all:Int?

    required public init(){}
}


Swift FanSnapshotOwnerRequest DTOs

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

HTTP + XML

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

POST /FanSnapshot/Owner HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FanSnapshotOwnerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Days>0</Days>
  <DefinitionVersion>0</DefinitionVersion>
  <EventOwnerId>0</EventOwnerId>
</FanSnapshotOwnerRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FanSnapshotOwnerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AsOf>String</AsOf>
  <ClubEventOwnerId>0</ClubEventOwnerId>
  <Compare>
    <FanSegmentFigure>
      <Fans>0</Fans>
      <Orders>0</Orders>
      <Segment>String</Segment>
      <SpendIsk>0</SpendIsk>
    </FanSegmentFigure>
  </Compare>
  <CompareDate>String</CompareDate>
  <CompareExtras>
    <FanSegmentFigure>
      <Fans>0</Fans>
      <Orders>0</Orders>
      <Segment>String</Segment>
      <SpendIsk>0</SpendIsk>
    </FanSegmentFigure>
  </CompareExtras>
  <Current>
    <FanSegmentFigure>
      <Fans>0</Fans>
      <Orders>0</Orders>
      <Segment>String</Segment>
      <SpendIsk>0</SpendIsk>
    </FanSegmentFigure>
  </Current>
  <DefinitionVersion>0</DefinitionVersion>
  <EventOwnerId>0</EventOwnerId>
  <Extras>
    <FanSegmentFigure>
      <Fans>0</Fans>
      <Orders>0</Orders>
      <Segment>String</Segment>
      <SpendIsk>0</SpendIsk>
    </FanSegmentFigure>
  </Extras>
  <Message>String</Message>
  <Series>
    <FanSnapshotPoint>
      <Active>0</Active>
      <All>0</All>
      <AtRisk>0</AtRisk>
      <Date>String</Date>
      <Dropoff>0</Dropoff>
      <Lost>0</Lost>
      <NeverBought>0</NeverBought>
      <New>0</New>
    </FanSnapshotPoint>
  </Series>
  <StatusCode>0</StatusCode>
</FanSnapshotOwnerResult>