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 java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class FanSnapshotOwnerRequest
    {
        public Integer eventOwnerId = null;
        public Integer days = null;
        public Integer definitionVersion = null;
        
        public Integer getEventOwnerId() { return eventOwnerId; }
        public FanSnapshotOwnerRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Integer getDays() { return days; }
        public FanSnapshotOwnerRequest setDays(Integer value) { this.days = value; return this; }
        public Integer getDefinitionVersion() { return definitionVersion; }
        public FanSnapshotOwnerRequest setDefinitionVersion(Integer value) { this.definitionVersion = value; return this; }
    }

    public static class FanSnapshotOwnerResult
    {
        public Integer eventOwnerId = null;
        public Integer clubEventOwnerId = null;
        public Integer definitionVersion = null;
        public String asOf = null;
        public ArrayList<FanSegmentFigure> current = null;
        public ArrayList<FanSegmentFigure> extras = null;
        public String compareDate = null;
        public ArrayList<FanSegmentFigure> compare = null;
        public ArrayList<FanSegmentFigure> compareExtras = null;
        public ArrayList<FanSnapshotPoint> series = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Integer getEventOwnerId() { return eventOwnerId; }
        public FanSnapshotOwnerResult setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Integer getClubEventOwnerId() { return clubEventOwnerId; }
        public FanSnapshotOwnerResult setClubEventOwnerId(Integer value) { this.clubEventOwnerId = value; return this; }
        public Integer getDefinitionVersion() { return definitionVersion; }
        public FanSnapshotOwnerResult setDefinitionVersion(Integer value) { this.definitionVersion = value; return this; }
        public String getAsOf() { return asOf; }
        public FanSnapshotOwnerResult setAsOf(String value) { this.asOf = value; return this; }
        public ArrayList<FanSegmentFigure> getCurrent() { return current; }
        public FanSnapshotOwnerResult setCurrent(ArrayList<FanSegmentFigure> value) { this.current = value; return this; }
        public ArrayList<FanSegmentFigure> getExtras() { return extras; }
        public FanSnapshotOwnerResult setExtras(ArrayList<FanSegmentFigure> value) { this.extras = value; return this; }
        public String getCompareDate() { return compareDate; }
        public FanSnapshotOwnerResult setCompareDate(String value) { this.compareDate = value; return this; }
        public ArrayList<FanSegmentFigure> getCompare() { return compare; }
        public FanSnapshotOwnerResult setCompare(ArrayList<FanSegmentFigure> value) { this.compare = value; return this; }
        public ArrayList<FanSegmentFigure> getCompareExtras() { return compareExtras; }
        public FanSnapshotOwnerResult setCompareExtras(ArrayList<FanSegmentFigure> value) { this.compareExtras = value; return this; }
        public ArrayList<FanSnapshotPoint> getSeries() { return series; }
        public FanSnapshotOwnerResult setSeries(ArrayList<FanSnapshotPoint> value) { this.series = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public FanSnapshotOwnerResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public FanSnapshotOwnerResult setMessage(String value) { this.message = value; return this; }
    }

    public static class FanSegmentFigure
    {
        public String segment = null;
        public Integer fans = null;
        public Integer orders = null;
        public Long spendIsk = null;
        
        public String getSegment() { return segment; }
        public FanSegmentFigure setSegment(String value) { this.segment = value; return this; }
        public Integer getFans() { return fans; }
        public FanSegmentFigure setFans(Integer value) { this.fans = value; return this; }
        public Integer getOrders() { return orders; }
        public FanSegmentFigure setOrders(Integer value) { this.orders = value; return this; }
        public Long getSpendIsk() { return spendIsk; }
        public FanSegmentFigure setSpendIsk(Long value) { this.spendIsk = value; return this; }
    }

    public static class FanSnapshotPoint
    {
        public String date = null;
        @SerializedName("new") public Integer New = null;
        public Integer active = null;
        public Integer atRisk = null;
        public Integer dropoff = null;
        public Integer lost = null;
        public Integer neverBought = null;
        public Integer all = null;
        
        public String getDate() { return date; }
        public FanSnapshotPoint setDate(String value) { this.date = value; return this; }
        public Integer getNew() { return New; }
        public FanSnapshotPoint setNew(Integer value) { this.New = value; return this; }
        public Integer getActive() { return active; }
        public FanSnapshotPoint setActive(Integer value) { this.active = value; return this; }
        public Integer getAtRisk() { return atRisk; }
        public FanSnapshotPoint setAtRisk(Integer value) { this.atRisk = value; return this; }
        public Integer getDropoff() { return dropoff; }
        public FanSnapshotPoint setDropoff(Integer value) { this.dropoff = value; return this; }
        public Integer getLost() { return lost; }
        public FanSnapshotPoint setLost(Integer value) { this.lost = value; return this; }
        public Integer getNeverBought() { return neverBought; }
        public FanSnapshotPoint setNeverBought(Integer value) { this.neverBought = value; return this; }
        public Integer getAll() { return all; }
        public FanSnapshotPoint setAll(Integer value) { this.all = value; return this; }
    }

}

Java FanSnapshotOwnerRequest 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.

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

{"eventOwnerId":0,"days":0,"definitionVersion":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"eventOwnerId":0,"clubEventOwnerId":0,"definitionVersion":0,"asOf":"String","current":[{"segment":"String","fans":0,"orders":0,"spendIsk":0}],"extras":[{"segment":"String","fans":0,"orders":0,"spendIsk":0}],"compareDate":"String","compare":[{"segment":"String","fans":0,"orders":0,"spendIsk":0}],"compareExtras":[{"segment":"String","fans":0,"orders":0,"spendIsk":0}],"series":[{"date":"String","new":0,"active":0,"atRisk":0,"dropoff":0,"lost":0,"neverBought":0,"all":0}],"statusCode":0,"message":"String"}