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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports efun.id.api.ServiceModel

Namespace Global

    Namespace efun.id.api.ServiceModel

        Public Partial Class GetReceivedGiftcodeRequest
            Inherits PagingRequest
            Public Overridable Property GameId As Integer
        End Class

        Public Partial Class PageResponse(Of T)
            Implements IResponseRequest
            Public Overridable Property Code As Integer Implements IResponseRequest.Code
            Public Overridable Property Message As String Implements IResponseRequest.Message
            Public Overridable Property Data As List(Of ReceivedGiftcodeResponse) = New List(Of ReceivedGiftcodeResponse)
            Public Overridable Property Pagination As Pagination
        End Class

        Public Partial Class Pagination
            Public Overridable Property Total As Long
            Public Overridable Property Pages As Integer
            Public Overridable Property Offset As Long
            Public Overridable Property Limit As Integer
            Public Overridable Property CurrentPage As Integer
        End Class

        Public Partial Class PagingRequest
            Public Overridable Property Page As Integer
            Public Overridable Property Limit As Integer
            Public Overridable Property OffSet As Integer
        End Class

        Public Partial Class ReceivedGiftcodeResponse
            Public Overridable Property EventId As Integer
            Public Overridable Property EventName As String
            Public Overridable Property EventUrl As String
            Public Overridable Property Description As String
            Public Overridable Property IconUrl As String
            Public Overridable Property Label As String
            Public Overridable Property LabelColor As String
            Public Overridable Property EventType As Integer
            Public Overridable Property Code As String
            Public Overridable Property ServerId As String
            Public Overridable Property CharacterId As String
            Public Overridable Property CharacterName As String
            Public Overridable Property StartDate As Date?
            Public Overridable Property DueDate As Date?
            Public Overridable Property EventStartDate As Date?
            Public Overridable Property EventEndDate As Date?
            Public Overridable Property CreatedDate As Date
            Public Overridable Property IsUsed As Boolean
        End Class
    End Namespace
End Namespace

VB.NET 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}