| Required role: | Admin |
| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<FanSyncFollowsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Chunk>0</Chunk>
<Final>false</Final>
<Rows>
<FanSyncFollowRow>
<FollowedAt>String</FollowedAt>
<Phone>String</Phone>
<TeamNumber>String</TeamNumber>
</FanSyncFollowRow>
</Rows>
<RunId>String</RunId>
</FanSyncFollowsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <FanSyncFollowsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Deduped>0</Deduped> <DroppedNoOwner>0</DroppedNoOwner> <DroppedNotFanPhone>0</DroppedNotFanPhone> <Kept>0</Kept> <LiveRows>0</LiveRows> <Message>String</Message> <Received>0</Received> <RunId>String</RunId> <StatusCode>0</StatusCode> <Swapped>false</Swapped> </FanSyncFollowsResult>