efun.id.api

<back to all web services

GetReceivedGiftcodeRequest

Requires Authentication
The following routes are available for this service:
GET/api/v1/games/{GameId}/giftcode/received
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class GetReceivedGiftcodeRequest extends PagingRequest
    {
        public Integer gameId = null;
        
        public Integer getGameId() { return gameId; }
        public GetReceivedGiftcodeRequest setGameId(Integer value) { this.gameId = value; return this; }
    }

    public static class PagingRequest
    {
        public Integer page = null;
        public Integer limit = null;
        public Integer offSet = null;
        
        public Integer getPage() { return page; }
        public PagingRequest setPage(Integer value) { this.page = value; return this; }
        public Integer getLimit() { return limit; }
        public PagingRequest setLimit(Integer value) { this.limit = value; return this; }
        public Integer getOffSet() { return offSet; }
        public PagingRequest setOffSet(Integer value) { this.offSet = value; return this; }
    }

    public static class PageResponse<T> implements IResponseRequest
    {
        public Integer code = null;
        public String message = null;
        public ArrayList<ReceivedGiftcodeResponse> data = new ArrayList<ReceivedGiftcodeResponse>();
        public Pagination pagination = null;
        
        public Integer getCode() { return code; }
        public PageResponse<T> setCode(Integer value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public PageResponse<T> setMessage(String value) { this.message = value; return this; }
        public ArrayList<ReceivedGiftcodeResponse> getData() { return data; }
        public PageResponse<T> setData(ArrayList<ReceivedGiftcodeResponse> value) { this.data = value; return this; }
        public Pagination getPagination() { return pagination; }
        public PageResponse<T> setPagination(Pagination value) { this.pagination = value; return this; }
    }

    public static class ReceivedGiftcodeResponse
    {
        public Integer eventId = null;
        public String eventName = null;
        public String eventUrl = null;
        public String description = null;
        public String iconUrl = null;
        public String label = null;
        public String labelColor = null;
        public Integer eventType = null;
        public String code = null;
        public String serverId = null;
        public String characterId = null;
        public String characterName = null;
        public Date startDate = null;
        public Date dueDate = null;
        public Date eventStartDate = null;
        public Date eventEndDate = null;
        public Date createdDate = null;
        public Boolean isUsed = null;
        
        public Integer getEventId() { return eventId; }
        public ReceivedGiftcodeResponse setEventId(Integer value) { this.eventId = value; return this; }
        public String getEventName() { return eventName; }
        public ReceivedGiftcodeResponse setEventName(String value) { this.eventName = value; return this; }
        public String getEventUrl() { return eventUrl; }
        public ReceivedGiftcodeResponse setEventUrl(String value) { this.eventUrl = value; return this; }
        public String getDescription() { return description; }
        public ReceivedGiftcodeResponse setDescription(String value) { this.description = value; return this; }
        public String getIconUrl() { return iconUrl; }
        public ReceivedGiftcodeResponse setIconUrl(String value) { this.iconUrl = value; return this; }
        public String getLabel() { return label; }
        public ReceivedGiftcodeResponse setLabel(String value) { this.label = value; return this; }
        public String getLabelColor() { return labelColor; }
        public ReceivedGiftcodeResponse setLabelColor(String value) { this.labelColor = value; return this; }
        public Integer getEventType() { return eventType; }
        public ReceivedGiftcodeResponse setEventType(Integer value) { this.eventType = value; return this; }
        public String getCode() { return code; }
        public ReceivedGiftcodeResponse setCode(String value) { this.code = value; return this; }
        public String getServerId() { return serverId; }
        public ReceivedGiftcodeResponse setServerId(String value) { this.serverId = value; return this; }
        public String getCharacterId() { return characterId; }
        public ReceivedGiftcodeResponse setCharacterId(String value) { this.characterId = value; return this; }
        public String getCharacterName() { return characterName; }
        public ReceivedGiftcodeResponse setCharacterName(String value) { this.characterName = value; return this; }
        public Date getStartDate() { return startDate; }
        public ReceivedGiftcodeResponse setStartDate(Date value) { this.startDate = value; return this; }
        public Date getDueDate() { return dueDate; }
        public ReceivedGiftcodeResponse setDueDate(Date value) { this.dueDate = value; return this; }
        public Date getEventStartDate() { return eventStartDate; }
        public ReceivedGiftcodeResponse setEventStartDate(Date value) { this.eventStartDate = value; return this; }
        public Date getEventEndDate() { return eventEndDate; }
        public ReceivedGiftcodeResponse setEventEndDate(Date value) { this.eventEndDate = value; return this; }
        public Date getCreatedDate() { return createdDate; }
        public ReceivedGiftcodeResponse setCreatedDate(Date value) { this.createdDate = value; return this; }
        public Boolean getIsUsed() { return isUsed; }
        public ReceivedGiftcodeResponse setIsUsed(Boolean value) { this.isUsed = value; return this; }
    }

    public static class Pagination
    {
        public Long total = null;
        public Integer pages = null;
        public Long offset = null;
        public Integer limit = null;
        public Integer currentPage = null;
        
        public Long getTotal() { return total; }
        public Pagination setTotal(Long value) { this.total = value; return this; }
        public Integer getPages() { return pages; }
        public Pagination setPages(Integer value) { this.pages = value; return this; }
        public Long getOffset() { return offset; }
        public Pagination setOffset(Long value) { this.offset = value; return this; }
        public Integer getLimit() { return limit; }
        public Pagination setLimit(Integer value) { this.limit = value; return this; }
        public Integer getCurrentPage() { return currentPage; }
        public Pagination setCurrentPage(Integer value) { this.currentPage = value; return this; }
    }

}

Java GetReceivedGiftcodeRequest DTOs

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

HTTP + CSV

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

GET /api/v1/games/{GameId}/giftcode/received HTTP/1.1 
Host: efun-id-api-sandbox.efun.vn 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"code":0,"message":"String","data":[{"eventId":0,"eventName":"String","eventUrl":"String","description":"String","iconUrl":"String","label":"String","labelColor":"String","eventType":0,"code":"String","serverId":"String","characterId":"String","characterName":"String","startDate":"0001-01-01T00:00:00.0000000+07:06","dueDate":"0001-01-01T00:00:00.0000000+07:06","eventStartDate":"0001-01-01T00:00:00.0000000+07:06","eventEndDate":"0001-01-01T00:00:00.0000000+07:06","createdDate":"0001-01-01T00:00:00.0000000+07:06","isUsed":false}],"pagination":null}