Documentation
¶
Index ¶
- func IsAPIError(err error) bool
- type APIErrorResponse
- type APIErrorWrapper
- type APIResponse
- type CancelAllMatchmakingTicketsForPlayerRequest
- type Client
- func (c *Client) CancelAllMatchmakingTicketsForPlayer(ctx context.Context, entityToken EntityToken, ...) error
- func (c *Client) CreateMatchMakingTicket(ctx context.Context, entityToken EntityToken, ...) (*CreateMatchMakingTicketResponse, error)
- func (c *Client) GetMatch(ctx context.Context, entityToken EntityToken, request *GetMatchRequest) (*GetMatchResponse, error)
- func (c *Client) GetMatchmakingTicket(ctx context.Context, entityToken EntityToken, ...) (*GetMatchMakingTicketResponse, error)
- func (c *Client) GetTitleEntityToken(ctx context.Context) (*EntityToken, error)
- func (c *Client) ListMatchmakingTicketsForPlayer(ctx context.Context, entityToken EntityToken, ...) (*ListMatchmakingTicketsForPlayerResponse, error)
- func (c *Client) LoginWithCustomID(ctx context.Context, request *ServerLoginWithCustomIDRequest) (*ServerLoginResponse, error)
- func (c *Client) UpdateUserData(ctx context.Context, playfabID string, request *ServerUpdateUserDataRequest) (*UpdateUserDataResponse, error)
- type CreateMatchMakingTicketRequest
- type CreateMatchMakingTicketResponse
- type EntityKey
- type EntityToken
- type GetEntityTokenRequest
- type GetMatchMakingTicketRequest
- type GetMatchMakingTicketResponse
- type GetMatchRequest
- type GetMatchResponse
- type ItemInstanceResponse
- type ListMatchmakingTicketsForPlayerRequest
- type ListMatchmakingTicketsForPlayerResponse
- type MatchmakingPlayer
- type MatchmakingPlayerAttributes
- type MatchmakingPlayerWithTeamAssignment
- type PlayerCombinedInfoRequestParams
- type PlayerCombinedInfoResponse
- type PlayerProfileViewConstraintsRequest
- type PlayerStatisticValueResponse
- type ServerDetails
- type ServerLoginResponse
- type ServerLoginWithCustomIDRequest
- type ServerPort
- type ServerUpdateUserDataRequest
- type TreatmentAssignmentResponse
- type UpdateUserDataResponse
- type UserDataRecordResponse
- type UserSettingsResponse
- type Variable
- type VirtualCurrencyRechargeTimeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAPIError ¶
Types ¶
type APIErrorResponse ¶
type APIErrorResponse struct {
APIResponse `json:"-"`
AError string `json:"error"`
ErrorCode int `json:"errorCode"`
ErrorDetails map[string]interface{} `json:"errorDetails"`
ErrorMessage string `json:"errorMessage"`
}
func (*APIErrorResponse) Error ¶
func (e *APIErrorResponse) Error() string
func (*APIErrorResponse) GetErrorCode ¶
func (e *APIErrorResponse) GetErrorCode() int
type APIErrorWrapper ¶
type APIErrorWrapper interface {
GetErrorCode() int
}
type APIResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewPlayFabClient ¶
func NewPlayFabClient() *Client
func (*Client) CancelAllMatchmakingTicketsForPlayer ¶
func (c *Client) CancelAllMatchmakingTicketsForPlayer(ctx context.Context, entityToken EntityToken, request *CancelAllMatchmakingTicketsForPlayerRequest) error
func (*Client) CreateMatchMakingTicket ¶
func (c *Client) CreateMatchMakingTicket(ctx context.Context, entityToken EntityToken, request *CreateMatchMakingTicketRequest) (*CreateMatchMakingTicketResponse, error)
func (*Client) GetMatch ¶
func (c *Client) GetMatch(ctx context.Context, entityToken EntityToken, request *GetMatchRequest) (*GetMatchResponse, error)
func (*Client) GetMatchmakingTicket ¶
func (c *Client) GetMatchmakingTicket(ctx context.Context, entityToken EntityToken, request *GetMatchMakingTicketRequest) (*GetMatchMakingTicketResponse, error)
func (*Client) GetTitleEntityToken ¶
func (c *Client) GetTitleEntityToken(ctx context.Context) (*EntityToken, error)
func (*Client) ListMatchmakingTicketsForPlayer ¶
func (c *Client) ListMatchmakingTicketsForPlayer(ctx context.Context, entityToken EntityToken, request *ListMatchmakingTicketsForPlayerRequest) (*ListMatchmakingTicketsForPlayerResponse, error)
func (*Client) LoginWithCustomID ¶
func (c *Client) LoginWithCustomID(ctx context.Context, request *ServerLoginWithCustomIDRequest) (*ServerLoginResponse, error)
func (*Client) UpdateUserData ¶
func (c *Client) UpdateUserData(ctx context.Context, playfabID string, request *ServerUpdateUserDataRequest) (*UpdateUserDataResponse, error)
type CreateMatchMakingTicketResponse ¶
type CreateMatchMakingTicketResponse struct {
TicketId string `json:"TicketId"`
}
type EntityToken ¶
type GetEntityTokenRequest ¶
type GetMatchMakingTicketResponse ¶
type GetMatchMakingTicketResponse struct {
CancellationReasonString string `json:"CancellationReasonString"`
ChangeNumber int `json:"ChangeNumber"`
Created time.Time `json:"Created"`
Creator MatchmakingPlayer `json:"Creator"`
GiveUpAfterSeconds int64 `json:"GiveUpAfterSeconds"`
MatchId *string `json:"MatchId"`
Members []MatchmakingPlayer `json:"Members"`
MembersToMatchWith []EntityKey `json:"MembersToMatchWith"`
QueueName string `json:"QueueName"`
Status string `json:"Status"`
TicketId string `json:"TicketId"`
}
type GetMatchRequest ¶
type GetMatchResponse ¶
type GetMatchResponse struct {
ArrangementString string `json:"ArrangementString"`
MatchId string `json:"MatchId"`
Members []MatchmakingPlayerWithTeamAssignment `json:"Members"`
RegionPreferences []string `json:"RegionPreferences"`
ServerDetails *ServerDetails `json:"ServerDetails"`
}
type ItemInstanceResponse ¶
type ItemInstanceResponse struct {
Annotation string `json:"Annotation"`
BundleContents []string `json:"BundleContents"`
BundleParent string `json:"BundleParent"`
CatalogVersion string `json:"CatalogVersion"`
CustomData map[string]string `json:"CustomData"`
DisplayName string `json:"DisplayName"`
Expiration time.Time `json:"Expiration"`
ItemClass string `json:"ItemClass"`
ItemId string `json:"ItemId"`
ItemInstanceId string `json:"ItemInstanceId"`
PurchaseDate time.Time `json:"PurchaseDate"`
RemainingUses int `json:"RemainingUses"`
UnitCurrency string `json:"UnitCurrency"`
UnitPrice int `json:"UnitPrice"`
UsesIncrementedBy int `json:"UsesIncrementedBy"`
}
type ListMatchmakingTicketsForPlayerResponse ¶
type ListMatchmakingTicketsForPlayerResponse struct {
TicketIds []string `json:"TicketIds"`
}
type MatchmakingPlayer ¶
type MatchmakingPlayer struct {
Attributes MatchmakingPlayerAttributes `json:"Attributes"`
Entity EntityKey `json:"Entity"`
}
type MatchmakingPlayerWithTeamAssignment ¶
type MatchmakingPlayerWithTeamAssignment struct {
Attributes MatchmakingPlayerAttributes `json:"Attributes"`
Entity EntityKey `json:"Entity"`
TeamId *string `json:"TeamId"`
}
type PlayerCombinedInfoRequestParams ¶
type PlayerCombinedInfoRequestParams struct {
GetCharacterInventories *bool `json:"GetCharacterInventories,omitempty"`
GetCharacterList *bool `json:"GetCharacterList,omitempty"`
GetPlayerProfile *bool `json:"GetPlayerProfile,omitempty"`
GetPlayerStatistics *bool `json:"GetPlayerStatistics,omitempty"`
GetTitleData *bool `json:"GetTitleData,omitempty"`
GetUserAccountInfo *bool `json:"GetUserAccountInfo,omitempty"`
GetUserData *bool `json:"GetUserData,omitempty"`
GetUserInventory *bool `json:"GetUserInventory,omitempty"`
GetUserReadOnlyData *bool `json:"GetUserReadOnlyData,omitempty"`
GetUserVirtualCurrency *bool `json:"GetUserVirtualCurrency,omitempty"`
PlayerStatisticNames []string `json:"PlayerStatisticNames,omitempty"`
ProfileConstraints *PlayerProfileViewConstraintsRequest `json:"ProfileConstraints,omitempty"`
TitleDataKeys []string `json:"TitleDataKeys,omitempty"`
UserDataKeys []string `json:"UserDataKeys,omitempty"`
UserReadOnlyDataKeys []string `json:"UserReadOnlyDataKeys,omitempty"`
}
type PlayerCombinedInfoResponse ¶
type PlayerCombinedInfoResponse struct {
AccountInfo interface{} `json:"AccountInfo"`
CharacterInventories []interface{} `json:"CharacterInventories"`
CharacterList []interface{} `json:"CharacterList"`
PlayerProfile interface{} `json:"PlayerProfile"`
PlayerStatistics []PlayerStatisticValueResponse `json:"PlayerStatistics"`
TitleData map[string]string `json:"TitleData"`
UserData map[string]UserDataRecordResponse `json:"UserData"`
UserDataVersion int `json:"UserDataVersion"`
UserInventory []ItemInstanceResponse `json:"UserInventory"`
UserReadOnlyData map[string]UserDataRecordResponse `json:"UserReadOnlyData"`
UserReadOnlyDataVersion int `json:"UserReadOnlyDataVersion"`
UserVirtualCurrency map[string]int `json:"UserVirtualCurrency"`
UserVirtualCurrencyRechargeTimes VirtualCurrencyRechargeTimeResponse `json:"UserVirtualCurrencyRechargeTimes"`
}
type PlayerProfileViewConstraintsRequest ¶
type PlayerProfileViewConstraintsRequest struct {
ShowAvatarUrl *bool `json:"ShowAvatarUrl,omitempty"`
ShowBannedUntil *bool `json:"ShowBannedUntil,omitempty"`
ShowCampaignAttributions *bool `json:"ShowCampaignAttributions,omitempty"`
ShowContactEmailAddresses *bool `json:"ShowContactEmailAddresses,omitempty"`
ShowCreated *bool `json:"ShowCreated,omitempty"`
ShowDisplayName *bool `json:"ShowDisplayName,omitempty"`
ShowExperimentVariants *bool `json:"ShowExperimentVariants,omitempty"`
ShowLastLogin *bool `json:"ShowLastLogin,omitempty"`
ShowLinkedAccounts *bool `json:"ShowLinkedAccounts,omitempty"`
ShowLocations *bool `json:"ShowLocations,omitempty"`
ShowMemberships *bool `json:"ShowMemberships,omitempty"`
ShowOrigination *bool `json:"ShowOrigination,omitempty"`
ShowPushNotificationRegistrations *bool `json:"ShowPushNotificationRegistrations,omitempty"`
ShowStatistics *bool `json:"ShowStatistics,omitempty"`
ShowTags *bool `json:"ShowTags,omitempty"`
ShowTotalValueToDateInUsd *bool `json:"ShowTotalValueToDateInUsd,omitempty"`
ShowValuesToDate *bool `json:"ShowValuesToDate,omitempty"`
}
type ServerDetails ¶
type ServerDetails struct {
FQDN string `json:"Fqdn"`
IPV4Address string `json:"IPV4Address"`
Ports []ServerPort `json:"Ports"`
Region string `json:"Region"`
}
type ServerLoginResponse ¶
type ServerLoginResponse struct {
EntityToken EntityToken `json:"EntityToken"`
InfoResultPayload PlayerCombinedInfoResponse `json:"InfoResultPayload"`
LastLoginTime time.Time `json:"LastLoginTime"`
NewlyCreated bool `json:"NewlyCreated"`
PlayFabId string `json:"PlayFabId"`
SessionTicket string `json:"SessionTicket"`
SettingsForUser UserSettingsResponse `json:"SettingsForUser"`
TreatmentAssignment TreatmentAssignmentResponse `json:"TreatmentAssignment"`
}
type ServerLoginWithCustomIDRequest ¶
type ServerLoginWithCustomIDRequest struct {
CreateAccount *bool `json:"CreateAccount,omitempty"`
CustomTags map[string]string `json:"CustomTags,omitempty"`
InfoRequestParameters *PlayerCombinedInfoRequestParams `json:"InfoRequestParameters,omitempty"`
PlayerSecret *string `json:"PlayerSecret,omitempty"`
ServerCustomId string `json:"ServerCustomId"`
}
type ServerPort ¶
type UpdateUserDataResponse ¶
type UpdateUserDataResponse struct {
DataVersion int `json:"DataVersion"`
}
type UserDataRecordResponse ¶
type UserSettingsResponse ¶
Click to show internal directories.
Click to hide internal directories.