TicketUserServices

<back to all web services

FanSyncFollowsRequest

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/FanSync/Follows
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 FanSyncFollowsRequest
    {
        public String runId = null;
        public Integer chunk = null;
        @SerializedName("final") public Boolean Final = null;
        public ArrayList<FanSyncFollowRow> rows = null;
        
        public String getRunId() { return runId; }
        public FanSyncFollowsRequest setRunId(String value) { this.runId = value; return this; }
        public Integer getChunk() { return chunk; }
        public FanSyncFollowsRequest setChunk(Integer value) { this.chunk = value; return this; }
        public Boolean isFinal() { return Final; }
        public FanSyncFollowsRequest setFinal(Boolean value) { this.Final = value; return this; }
        public ArrayList<FanSyncFollowRow> getRows() { return rows; }
        public FanSyncFollowsRequest setRows(ArrayList<FanSyncFollowRow> value) { this.rows = value; return this; }
    }

    public static class FanSyncFollowRow
    {
        public String phone = null;
        public String teamNumber = null;
        public String followedAt = null;
        
        public String getPhone() { return phone; }
        public FanSyncFollowRow setPhone(String value) { this.phone = value; return this; }
        public String getTeamNumber() { return teamNumber; }
        public FanSyncFollowRow setTeamNumber(String value) { this.teamNumber = value; return this; }
        public String getFollowedAt() { return followedAt; }
        public FanSyncFollowRow setFollowedAt(String value) { this.followedAt = value; return this; }
    }

    public static class FanSyncFollowsResult
    {
        public String runId = null;
        public Integer received = null;
        public Integer kept = null;
        public Integer droppedNoOwner = null;
        public Integer droppedNotFanPhone = null;
        public Integer deduped = null;
        public Boolean swapped = null;
        public Long liveRows = null;
        public Integer statusCode = null;
        public String message = null;
        
        public String getRunId() { return runId; }
        public FanSyncFollowsResult setRunId(String value) { this.runId = value; return this; }
        public Integer getReceived() { return received; }
        public FanSyncFollowsResult setReceived(Integer value) { this.received = value; return this; }
        public Integer getKept() { return kept; }
        public FanSyncFollowsResult setKept(Integer value) { this.kept = value; return this; }
        public Integer getDroppedNoOwner() { return droppedNoOwner; }
        public FanSyncFollowsResult setDroppedNoOwner(Integer value) { this.droppedNoOwner = value; return this; }
        public Integer getDroppedNotFanPhone() { return droppedNotFanPhone; }
        public FanSyncFollowsResult setDroppedNotFanPhone(Integer value) { this.droppedNotFanPhone = value; return this; }
        public Integer getDeduped() { return deduped; }
        public FanSyncFollowsResult setDeduped(Integer value) { this.deduped = value; return this; }
        public Boolean isSwapped() { return swapped; }
        public FanSyncFollowsResult setSwapped(Boolean value) { this.swapped = value; return this; }
        public Long getLiveRows() { return liveRows; }
        public FanSyncFollowsResult setLiveRows(Long value) { this.liveRows = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public FanSyncFollowsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public FanSyncFollowsResult setMessage(String value) { this.message = value; return this; }
    }

}

Java FanSyncFollowsRequest 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 /FanSync/Follows HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"runId":"String","chunk":0,"final":false,"rows":[{"phone":"String","teamNumber":"String","followedAt":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"runId":"String","received":0,"kept":0,"droppedNoOwner":0,"droppedNotFanPhone":0,"deduped":0,"swapped":false,"liveRows":0,"statusCode":0,"message":"String"}