Trendsic Platform Service

<back to all web services

GiftCardGameLeaderboardRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/GiftCardGameLeaderboard/{EndDate}/{StartDate}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GiftCardGameLeaderboardRequest
    {
        public Date StartDate = null;
        public Date EndDate = null;
        
        public Date getStartDate() { return StartDate; }
        public GiftCardGameLeaderboardRequest setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public GiftCardGameLeaderboardRequest setEndDate(Date value) { this.EndDate = value; return this; }
    }

    public static class GiftCardGameLeaderboardResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<GiftCardGameLeaderboard> GiftCardGameLeaderboard = new ArrayList<GiftCardGameLeaderboard>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public GiftCardGameLeaderboardResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<GiftCardGameLeaderboard> getGiftCardGameLeaderboard() { return GiftCardGameLeaderboard; }
        public GiftCardGameLeaderboardResponse setGiftCardGameLeaderboard(ArrayList<GiftCardGameLeaderboard> value) { this.GiftCardGameLeaderboard = value; return this; }
    }

    public static class GiftCardGameLeaderboard
    {
        public Integer AgentId = null;
        public String FullName = null;
        public Integer Cards = null;
        public Integer Points = null;
        
        public Integer getAgentId() { return AgentId; }
        public GiftCardGameLeaderboard setAgentId(Integer value) { this.AgentId = value; return this; }
        public String getFullName() { return FullName; }
        public GiftCardGameLeaderboard setFullName(String value) { this.FullName = value; return this; }
        public Integer getCards() { return Cards; }
        public GiftCardGameLeaderboard setCards(Integer value) { this.Cards = value; return this; }
        public Integer getPoints() { return Points; }
        public GiftCardGameLeaderboard setPoints(Integer value) { this.Points = value; return this; }
    }

}

Java GiftCardGameLeaderboardRequest DTOs

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

HTTP + OTHER

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

GET /v1/GiftCardGameLeaderboard/{EndDate}/{StartDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"GiftCardGameLeaderboard":[{"AgentId":0,"FullName":"String","Cards":0,"Points":0}]}