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.*


open class GetReceivedGiftcodeRequest : PagingRequest()
{
    open var gameId:Int? = null
}

open class PagingRequest
{
    open var page:Int? = null
    open var limit:Int? = null
    open var offSet:Int? = null
}

open class PageResponse<T> : IResponseRequest
{
    override var code:Int? = null
    override var message:String? = null
    @SerializedName("data") open var Data:ArrayList<ReceivedGiftcodeResponse> = ArrayList<ReceivedGiftcodeResponse>()
    open var pagination:Pagination? = null
}

open class ReceivedGiftcodeResponse
{
    open var eventId:Int? = null
    open var eventName:String? = null
    open var eventUrl:String? = null
    open var description:String? = null
    open var iconUrl:String? = null
    open var label:String? = null
    open var labelColor:String? = null
    open var eventType:Int? = null
    open var code:String? = null
    open var serverId:String? = null
    open var characterId:String? = null
    open var characterName:String? = null
    open var startDate:Date? = null
    open var dueDate:Date? = null
    open var eventStartDate:Date? = null
    open var eventEndDate:Date? = null
    open var createdDate:Date? = null
    open var isUsed:Boolean? = null
}

open class Pagination
{
    open var total:Long? = null
    open var pages:Int? = null
    open var offset:Long? = null
    open var limit:Int? = null
    open var currentPage:Int? = null
}

Kotlin 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}