openapi

package
v0.0.0-...-9f2144d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

README

Go API client for openapi

Introduction

Welcome to the reference for the Lichess API! Lichess is free/libre, open-source chess server powered by volunteers and donations.

Endpoint

All requests go to https://lichess.org (unless otherwise specified).

Clients

Rate limiting

All requests are rate limited using various strategies, to ensure the API remains responsive for everyone. Only make one request at a time. If you receive an HTTP response with a 429 status, please wait a full minute before resuming API usage.

Streaming with ND-JSON

Some API endpoints stream their responses as Newline Delimited JSON a.k.a. nd-json, with one JSON object per line.

Here's a JavaScript utility function to help reading NDJSON streamed responses.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://lichess.org/api

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/mikeb26/lichess-go-sdk"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://lichess.org

Class Method HTTP request Description
AccountApi Account Get /api/account/preferences Get my preferences
AccountApi AccountEmail Get /api/account/email Get my email address
AccountApi AccountKid Get /api/account/kid Get my kid mode status
AccountApi AccountKidPost Post /api/account/kid Set my kid mode status
AccountApi AccountMe Get /api/account Get my profile
AnalysisApi ApiCloudEval Get /api/cloud-eval Get cloud evaluation of a position.
ArenaTournamentsApi ApiTeamArena Get /api/team/{teamId}/arena Get team Arena tournaments
ArenaTournamentsApi ApiTournament Get /api/tournament Get current tournaments
ArenaTournamentsApi ApiTournamentJoin Post /api/tournament/{id}/join Join an Arena tournament
ArenaTournamentsApi ApiTournamentPost Post /api/tournament Create a new Arena tournament
ArenaTournamentsApi ApiTournamentTeamBattlePost Post /api/tournament/team-battle/{id} Update a team battle
ArenaTournamentsApi ApiTournamentTerminate Post /api/tournament/{id}/terminate Terminate an Arena tournament
ArenaTournamentsApi ApiTournamentUpdate Post /api/tournament/{id} Update an Arena tournament
ArenaTournamentsApi ApiTournamentWithdraw Post /api/tournament/{id}/withdraw Pause or leave an Arena tournament
ArenaTournamentsApi ApiUserNameTournamentCreated Get /api/user/{username}/tournament/created Get tournaments created by a user
ArenaTournamentsApi GamesByTournament Get /api/tournament/{id}/games Export games of an Arena tournament
ArenaTournamentsApi ResultsByTournament Get /api/tournament/{id}/results Get results of an Arena tournament
ArenaTournamentsApi TeamsByTournament Get /api/tournament/{id}/teams Get team standing of a team battle
ArenaTournamentsApi Tournament Get /api/tournament/{id} Get info about an Arena tournament
BoardApi ApiBoardSeek Post /api/board/seek Create a seek
BoardApi ApiStreamEvent Get /api/stream/event Stream incoming events
BoardApi BoardGameAbort Post /api/board/game/{gameId}/abort Abort a game
BoardApi BoardGameBerserk Post /api/board/game/{gameId}/berserk Berserk a tournament game
BoardApi BoardGameChatGet Get /api/board/game/{gameId}/chat Fetch the game chat
BoardApi BoardGameChatPost Post /api/board/game/{gameId}/chat Write in the chat
BoardApi BoardGameClaimVictory Post /api/board/game/{gameId}/claim-victory Claim victory of a game
BoardApi BoardGameDraw Post /api/board/game/{gameId}/draw/{accept} Handle draw offers
BoardApi BoardGameMove Post /api/board/game/{gameId}/move/{move} Make a Board move
BoardApi BoardGameResign Post /api/board/game/{gameId}/resign Resign a game
BoardApi BoardGameStream Get /api/board/game/stream/{gameId} Stream Board game state
BoardApi BoardGameTakeback Post /api/board/game/{gameId}/takeback/{accept} Handle takeback offers
BotApi ApiBotOnline Get /api/bot/online Get online bots
BotApi ApiStreamEvent Get /api/stream/event Stream incoming events
BotApi BotAccountUpgrade Post /api/bot/account/upgrade Upgrade to Bot account
BotApi BotGameAbort Post /api/bot/game/{gameId}/abort Abort a game
BotApi BotGameChat Post /api/bot/game/{gameId}/chat Write in the chat
BotApi BotGameChatGet Get /api/bot/game/{gameId}/chat Fetch the game chat
BotApi BotGameMove Post /api/bot/game/{gameId}/move/{move} Make a Bot move
BotApi BotGameResign Post /api/bot/game/{gameId}/resign Resign a game
BotApi BotGameStream Get /api/bot/game/stream/{gameId} Stream Bot game state
BroadcastsApi BroadcastAllRoundsPgn Get /api/broadcast/{broadcastTournamentId}.pgn Export all rounds as PGN
BroadcastsApi BroadcastIndex Get /api/broadcast Get official broadcasts
BroadcastsApi BroadcastPush Post /broadcast/round/{broadcastRoundId}/push Push PGN to your broadcast round
BroadcastsApi BroadcastRoundCreate Post /broadcast/{broadcastTournamentId}/new Create a broadcast round
BroadcastsApi BroadcastRoundGet Get /broadcast/{broadcastTournamentSlug}/{broadcastRoundSlug}/{broadcastRoundId} Get your broadcast round
BroadcastsApi BroadcastRoundPgn Get /api/broadcast/round/{broadcastRoundId}.pgn Export one round as PGN
BroadcastsApi BroadcastRoundUpdate Post /broadcast/round/{broadcastRoundId}/edit Update your broadcast round
BroadcastsApi BroadcastStreamRoundPgn Get /api/stream/broadcast/round/{broadcastRoundId}.pgn Stream an ongoing broadcast tournament as PGN
BroadcastsApi BroadcastTourCreate Post /broadcast/new Create a broadcast tournament
BroadcastsApi BroadcastTourGet Get /broadcast/{slug}/{broadcastTournamentId} Get your broadcast tournament
BroadcastsApi BroadcastTourUpdate Post /broadcast/{broadcastTournamentId}/edit Update your broadcast tournament
BulkPairingsApi BulkPairingCreate Post /api/bulk-pairing Create a bulk pairing
BulkPairingsApi BulkPairingDelete Delete /api/bulk-pairing/{id} Cancel a bulk pairing
BulkPairingsApi BulkPairingGet Get /api/bulk-pairing View upcoming bulk pairings
BulkPairingsApi BulkPairingStartClocks Post /api/bulk-pairing/{id}/start-clocks Manually start clocks
ChallengesApi AdminChallengeTokens Post /api/token/admin-challenge Admin challenge tokens
ChallengesApi ChallengeAccept Post /api/challenge/{challengeId}/accept Accept a challenge
ChallengesApi ChallengeAi Post /api/challenge/ai Challenge the AI
ChallengesApi ChallengeCancel Post /api/challenge/{challengeId}/cancel Cancel a challenge
ChallengesApi ChallengeCreate Post /api/challenge/{username} Create a challenge
ChallengesApi ChallengeDecline Post /api/challenge/{challengeId}/decline Decline a challenge
ChallengesApi ChallengeList Get /api/challenge List your challenges
ChallengesApi ChallengeOpen Post /api/challenge/open Open-ended challenge
ChallengesApi ChallengeStartClocks Post /api/challenge/{gameId}/start-clocks Start clocks of a game
ChallengesApi RoundAddTime Post /api/round/{gameId}/add-time/{seconds} Add time to the opponent clock
ExternalEngineApi ApiExternalEngineAcquire Post /api/external-engine/work Acquire analysis request
ExternalEngineApi ApiExternalEngineAnalyse Post /api/external-engine/{id}/analyse Analyse with external engine
ExternalEngineApi ApiExternalEngineCreate Post /api/external-engine Create external engine
ExternalEngineApi ApiExternalEngineDelete Delete /api/external-engine/{id} Delete external engine
ExternalEngineApi ApiExternalEngineGet Get /api/external-engine/{id} Get external engine
ExternalEngineApi ApiExternalEngineList Get /api/external-engine List external engines
ExternalEngineApi ApiExternalEnginePut Put /api/external-engine/{id} Update external engine
ExternalEngineApi ApiExternalEngineSubmit Post /api/external-engine/work/{id} Answer analysis request
GamesApi ApiAccountPlaying Get /api/account/playing Get my ongoing games
GamesApi ApiGamesUser Get /api/games/user/{username} Export games of a user
GamesApi ApiUserCurrentGame Get /api/user/{username}/current-game Export ongoing game of a user
GamesApi GameImport Post /api/import Import one game
GamesApi GamePgn Get /game/export/{gameId} Export one game
GamesApi GamesByIds Post /api/stream/games/{streamId} Stream games by IDs
GamesApi GamesByIdsAdd Post /api/stream/games/{streamId}/add Add game IDs to stream
GamesApi GamesByUsers Post /api/stream/games-by-users Stream games of users
GamesApi GamesExportIds Post /api/games/export/_ids Export games by IDs
GamesApi StreamGame Get /api/stream/game/{id} Stream moves of a game
MessagingApi InboxUsername Post /inbox/{username} Send a private message
OAuthApi ApiToken Post /api/token Obtain access token
OAuthApi ApiTokenDelete Delete /api/token Revoke access token
OAuthApi Oauth Get /oauth Request authorization code
OAuthApi TokenTest Post /api/token/test Test multiple OAuth tokens
OpeningExplorerApi OpeningExplorerLichess Get /lichess Lichess games
OpeningExplorerApi OpeningExplorerLichessHistory Get /lichess/history Lichess games history
OpeningExplorerApi OpeningExplorerMaster Get /masters Masters database
OpeningExplorerApi OpeningExplorerMasterGame Get /master/pgn/{gameId} OTB master game
OpeningExplorerApi OpeningExplorerPlayer Get /player Player games
PuzzlesApi ApiPuzzleActivity Get /api/puzzle/activity Get your puzzle activity
PuzzlesApi ApiPuzzleDaily Get /api/puzzle/daily Get the daily puzzle
PuzzlesApi ApiPuzzleDashboard Get /api/puzzle/dashboard/{days} Get your puzzle dashboard
PuzzlesApi ApiPuzzleId Get /api/puzzle/{id} Get a puzzle by its ID
PuzzlesApi ApiStormDashboard Get /api/storm/dashboard/{username} Get the storm dashboard of a player
PuzzlesApi RacerPost Post /api/racer Create and join a puzzle race
RelationsApi ApiUserFollowing Get /api/rel/following Get users followed by the logged in user
RelationsApi FollowUser Post /api/rel/follow/{username} Follow a player
RelationsApi UnfollowUser Post /api/rel/unfollow/{username} Unfollow a player
SimulsApi ApiSimul Get /api/simul Get current simuls
StudiesApi StudyAllChaptersPgn Get /api/study/{studyId}.pgn Export all chapters
StudiesApi StudyChapterPgn Get /study/{studyId}/{chapterId}.pgn Export one study chapter
StudiesApi StudyExportAllPgn Get /study/by/{username}/export.pgn Export all studies of a user
SwissTournamentsApi ApiSwissJoin Post /api/swiss/{id}/join Join a Swiss tournament
SwissTournamentsApi ApiSwissNew Post /api/swiss/new/{teamId} Create a new Swiss tournament
SwissTournamentsApi ApiSwissTerminate Post /api/swiss/{id}/terminate Terminate a Swiss tournament
SwissTournamentsApi ApiSwissUpdate Post /api/swiss/{id}/edit Update a Swiss tournament.
SwissTournamentsApi ApiSwissWithdraw Post /api/swiss/{id}/withdraw Pause or leave a swiss tournament
SwissTournamentsApi ApiTeamSwiss Get /api/team/{teamId}/swiss Get team swiss tournaments
SwissTournamentsApi GamesBySwiss Get /api/swiss/{id}/games Export games of a Swiss tournament
SwissTournamentsApi ResultsBySwiss Get /api/swiss/{id}/results Get results of a swiss tournament
SwissTournamentsApi Swiss Get /api/swiss/{id} Get info about a Swiss tournament
SwissTournamentsApi SwissTrf Get /swiss/{id}.trf Export TRF of a Swiss tournament
TVApi TvChannelGames Get /api/tv/{channel} Get best ongoing games of a TV channel
TVApi TvChannels Get /api/tv/channels Get current TV games
TVApi TvFeed Get /api/tv/feed Stream current TV game
TablebaseApi AntichessAtomic Get /antichess Tablebase lookup for Antichess
TablebaseApi TablebaseAtomic Get /atomic Tablebase lookup for Atomic chess
TablebaseApi TablebaseStandard Get /standard Tablebase lookup
TeamsApi ApiTeamArena Get /api/team/{teamId}/arena Get team Arena tournaments
TeamsApi ApiTeamSwiss Get /api/team/{teamId}/swiss Get team swiss tournaments
TeamsApi TeamAll Get /api/team/all Get popular teams
TeamsApi TeamIdJoin Post /team/{teamId}/join Join a team
TeamsApi TeamIdKickUserId Post /team/{teamId}/kick/{userId} Kick a user from your team
TeamsApi TeamIdPmAll Post /team/{teamId}/pm-all Message all members
TeamsApi TeamIdQuit Post /team/{teamId}/quit Leave a team
TeamsApi TeamIdUsers Get /api/team/{teamId}/users Get members of a team
TeamsApi TeamOfUsername Get /api/team/of/{username} Teams of a player
TeamsApi TeamRequestAccept Post /api/team/{teamId}/request/{userId}/accept Accept join request
TeamsApi TeamRequestDecline Post /api/team/{teamId}/request/{userId}/decline Decline join request
TeamsApi TeamRequests Get /api/team/{teamId}/requests Get join requests
TeamsApi TeamSearch Get /api/team/search Search teams
TeamsApi TeamShow Get /api/team/{teamId} Get a single team
UsersApi ApiCrosstable Get /api/crosstable/{user1}/{user2} Get crosstable
UsersApi ApiUser Get /api/user/{username} Get user public data
UsersApi ApiUserActivity Get /api/user/{username}/activity Get user activity
UsersApi ApiUserPerf Get /api/user/{username}/perf/{perf} Get performance statistics of a user
UsersApi ApiUserRatingHistory Get /api/user/{username}/rating-history Get rating history of a user
UsersApi ApiUsers Post /api/users Get users by ID
UsersApi ApiUsersStatus Get /api/users/status Get real-time users status
UsersApi Player Get /api/player Get all top 10
UsersApi PlayerTopNbPerfType Get /api/player/top/{nb}/{perfType} Get one leaderboard
UsersApi StreamerLive Get /api/streamer/live Get live streamers
UsersApi TeamIdUsers Get /api/team/{teamId}/users Get members of a team

Documentation For Models

Documentation For Authorization

OAuth2
  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://lichess.org/oauth
  • Scopes:
  • preference:read: Read your preferences
  • preference:write: Write your preferences
  • email:read: Read your email address
  • challenge:read: Read incoming challenges
  • challenge:write: Create, accept, decline challenges
  • challenge:bulk: Create, delete, query bulk pairings
  • study:read: Read private studies and broadcasts
  • study:write: Create, update, delete studies and broadcasts
  • tournament:write: Create tournaments
  • racer:write: Create and join puzzle races
  • puzzle:read: Read puzzle activity
  • team:read: Read private team information
  • team:write: Join, leave teams
  • team:lead: Manage teams (kick members, send PMs)
  • follow:read: Read followed players
  • follow:write: Follow and unfollow other players
  • msg:write: Send private messages to other players
  • board:play: Play with the Board API
  • bot:play: Play with the Bot API. Only for Bot accounts
  • web:mod: Use moderator tools (within the bounds of your permissions)

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

contact@lichess.org

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AccountApi *AccountApiService

	AnalysisApi *AnalysisApiService

	ArenaTournamentsApi *ArenaTournamentsApiService

	BoardApi *BoardApiService

	BotApi *BotApiService

	BroadcastsApi *BroadcastsApiService

	BulkPairingsApi *BulkPairingsApiService

	ChallengesApi *ChallengesApiService

	ExternalEngineApi *ExternalEngineApiService

	GamesApi *GamesApiService

	MessagingApi *MessagingApiService

	OAuthApi *OAuthApiService

	OpeningExplorerApi *OpeningExplorerApiService

	PuzzlesApi *PuzzlesApiService

	RelationsApi *RelationsApiService

	SimulsApi *SimulsApiService

	StudiesApi *StudiesApiService

	SwissTournamentsApi *SwissTournamentsApiService

	TVApi *TVApiService

	TablebaseApi *TablebaseApiService

	TeamsApi *TeamsApiService

	UsersApi *UsersApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Lichess.org API reference API v2.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Account200Response

type Account200Response struct {
	Prefs    *UserPreferences `json:"prefs,omitempty"`
	Language interface{}      `json:"language,omitempty"`
}

Account200Response struct for Account200Response

func NewAccount200Response

func NewAccount200Response() *Account200Response

NewAccount200Response instantiates a new Account200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccount200ResponseWithDefaults

func NewAccount200ResponseWithDefaults() *Account200Response

NewAccount200ResponseWithDefaults instantiates a new Account200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Account200Response) GetLanguage

func (o *Account200Response) GetLanguage() interface{}

GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Account200Response) GetLanguageOk

func (o *Account200Response) GetLanguageOk() (*interface{}, bool)

GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Account200Response) GetPrefs

func (o *Account200Response) GetPrefs() UserPreferences

GetPrefs returns the Prefs field value if set, zero value otherwise.

func (*Account200Response) GetPrefsOk

func (o *Account200Response) GetPrefsOk() (*UserPreferences, bool)

GetPrefsOk returns a tuple with the Prefs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account200Response) HasLanguage

func (o *Account200Response) HasLanguage() bool

HasLanguage returns a boolean if a field has been set.

func (*Account200Response) HasPrefs

func (o *Account200Response) HasPrefs() bool

HasPrefs returns a boolean if a field has been set.

func (Account200Response) MarshalJSON

func (o Account200Response) MarshalJSON() ([]byte, error)

func (*Account200Response) SetLanguage

func (o *Account200Response) SetLanguage(v interface{})

SetLanguage gets a reference to the given interface{} and assigns it to the Language field.

func (*Account200Response) SetPrefs

func (o *Account200Response) SetPrefs(v UserPreferences)

SetPrefs gets a reference to the given UserPreferences and assigns it to the Prefs field.

type AccountApiService

type AccountApiService service

AccountApiService AccountApi service

func (*AccountApiService) Account

Account Get my preferences

Read the preferences of the logged in user.

- <https://lichess.org/account/preferences/game-display> - <https://github.com/ornicar/lila/blob/master/modules/pref/src/main/Pref.scala>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountRequest

func (*AccountApiService) AccountEmail

AccountEmail Get my email address

Read the email address of the logged in user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountEmailRequest

func (*AccountApiService) AccountEmailExecute

Execute executes the request

@return AccountEmail200Response

func (*AccountApiService) AccountExecute

Execute executes the request

@return Account200Response

func (*AccountApiService) AccountKid

AccountKid Get my kid mode status

Read the kid mode status of the logged in user.

- <https://lichess.org/account/kid>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountKidRequest

func (*AccountApiService) AccountKidExecute

Execute executes the request

@return AccountKid200Response

func (*AccountApiService) AccountKidPost

AccountKidPost Set my kid mode status

Set the kid mode status of the logged in user.

- <https://lichess.org/account/kid>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountKidPostRequest

func (*AccountApiService) AccountKidPostExecute

func (a *AccountApiService) AccountKidPostExecute(r ApiAccountKidPostRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*AccountApiService) AccountMe

AccountMe Get my profile

Public information about the logged in user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccountMeRequest

func (*AccountApiService) AccountMeExecute

func (a *AccountApiService) AccountMeExecute(r ApiAccountMeRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type AccountEmail200Response

type AccountEmail200Response struct {
	Email interface{} `json:"email,omitempty"`
}

AccountEmail200Response struct for AccountEmail200Response

func NewAccountEmail200Response

func NewAccountEmail200Response() *AccountEmail200Response

NewAccountEmail200Response instantiates a new AccountEmail200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountEmail200ResponseWithDefaults

func NewAccountEmail200ResponseWithDefaults() *AccountEmail200Response

NewAccountEmail200ResponseWithDefaults instantiates a new AccountEmail200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountEmail200Response) GetEmail

func (o *AccountEmail200Response) GetEmail() interface{}

GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountEmail200Response) GetEmailOk

func (o *AccountEmail200Response) GetEmailOk() (*interface{}, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountEmail200Response) HasEmail

func (o *AccountEmail200Response) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (AccountEmail200Response) MarshalJSON

func (o AccountEmail200Response) MarshalJSON() ([]byte, error)

func (*AccountEmail200Response) SetEmail

func (o *AccountEmail200Response) SetEmail(v interface{})

SetEmail gets a reference to the given interface{} and assigns it to the Email field.

type AccountKid200Response

type AccountKid200Response struct {
	Kid interface{} `json:"kid,omitempty"`
}

AccountKid200Response struct for AccountKid200Response

func NewAccountKid200Response

func NewAccountKid200Response() *AccountKid200Response

NewAccountKid200Response instantiates a new AccountKid200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountKid200ResponseWithDefaults

func NewAccountKid200ResponseWithDefaults() *AccountKid200Response

NewAccountKid200ResponseWithDefaults instantiates a new AccountKid200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountKid200Response) GetKid

func (o *AccountKid200Response) GetKid() interface{}

GetKid returns the Kid field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountKid200Response) GetKidOk

func (o *AccountKid200Response) GetKidOk() (*interface{}, bool)

GetKidOk returns a tuple with the Kid field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountKid200Response) HasKid

func (o *AccountKid200Response) HasKid() bool

HasKid returns a boolean if a field has been set.

func (AccountKid200Response) MarshalJSON

func (o AccountKid200Response) MarshalJSON() ([]byte, error)

func (*AccountKid200Response) SetKid

func (o *AccountKid200Response) SetKid(v interface{})

SetKid gets a reference to the given interface{} and assigns it to the Kid field.

type AnalysisApiService

type AnalysisApiService service

AnalysisApiService AnalysisApi service

func (*AnalysisApiService) ApiCloudEval

ApiCloudEval Get cloud evaluation of a position.

Get the cached evaluation of a position, if available.

Opening positions have more chances of being available. There are about 15 million positions in the database.

Up to 5 variations may be available. Variants are supported.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiCloudEvalRequest

func (*AnalysisApiService) ApiCloudEvalExecute

func (a *AnalysisApiService) ApiCloudEvalExecute(r ApiApiCloudEvalRequest) (*http.Response, error)

Execute executes the request

type ApiAccountEmailRequest

type ApiAccountEmailRequest struct {
	ApiService *AccountApiService
	// contains filtered or unexported fields
}

func (ApiAccountEmailRequest) Execute

type ApiAccountKidPostRequest

type ApiAccountKidPostRequest struct {
	ApiService *AccountApiService
	// contains filtered or unexported fields
}

func (ApiAccountKidPostRequest) Execute

func (r ApiAccountKidPostRequest) Execute() (*Ok, *http.Response, error)

func (ApiAccountKidPostRequest) V

Kid mode status

type ApiAccountKidRequest

type ApiAccountKidRequest struct {
	ApiService *AccountApiService
	// contains filtered or unexported fields
}

func (ApiAccountKidRequest) Execute

type ApiAccountMeRequest

type ApiAccountMeRequest struct {
	ApiService *AccountApiService
	// contains filtered or unexported fields
}

func (ApiAccountMeRequest) Execute

func (r ApiAccountMeRequest) Execute() (interface{}, *http.Response, error)

type ApiAccountRequest

type ApiAccountRequest struct {
	ApiService *AccountApiService
	// contains filtered or unexported fields
}

func (ApiAccountRequest) Execute

type ApiAdminChallengeTokensRequest

type ApiAdminChallengeTokensRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiAdminChallengeTokensRequest) Description

func (r ApiAdminChallengeTokensRequest) Description(description interface{}) ApiAdminChallengeTokensRequest

User visible description of the token

func (ApiAdminChallengeTokensRequest) Execute

func (ApiAdminChallengeTokensRequest) Users

Usernames separated with commas

type ApiAntichessAtomicRequest

type ApiAntichessAtomicRequest struct {
	ApiService *TablebaseApiService
	// contains filtered or unexported fields
}

func (ApiAntichessAtomicRequest) Execute

func (r ApiAntichessAtomicRequest) Execute() (interface{}, *http.Response, error)

type ApiApiAccountPlayingRequest

type ApiApiAccountPlayingRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiApiAccountPlayingRequest) Execute

func (r ApiApiAccountPlayingRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiAccountPlayingRequest) Nb

Max number of games to fetch

type ApiApiBoardSeekRequest

type ApiApiBoardSeekRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiApiBoardSeekRequest) Color

func (r ApiApiBoardSeekRequest) Color(color interface{}) ApiApiBoardSeekRequest

The color to play. Better left empty to automatically get 50% white.

func (ApiApiBoardSeekRequest) Days

func (r ApiApiBoardSeekRequest) Days(days interface{}) ApiApiBoardSeekRequest

Days per turn. Required for correspondence seeks.

func (ApiApiBoardSeekRequest) Execute

func (r ApiApiBoardSeekRequest) Execute() (*http.Response, error)

func (ApiApiBoardSeekRequest) Increment

func (r ApiApiBoardSeekRequest) Increment(increment interface{}) ApiApiBoardSeekRequest

Clock increment in seconds. Required for real-time seeks.

func (ApiApiBoardSeekRequest) Rated

func (r ApiApiBoardSeekRequest) Rated(rated interface{}) ApiApiBoardSeekRequest

Whether the game is rated and impacts players ratings.

func (ApiApiBoardSeekRequest) RatingRange

func (r ApiApiBoardSeekRequest) RatingRange(ratingRange interface{}) ApiApiBoardSeekRequest

The rating range of potential opponents. Better left empty. Example: 1500-1800

func (ApiApiBoardSeekRequest) Time

func (r ApiApiBoardSeekRequest) Time(time interface{}) ApiApiBoardSeekRequest

Clock initial time in minutes. Required for real-time seeks.

func (ApiApiBoardSeekRequest) Variant

type ApiApiBotOnlineRequest

type ApiApiBotOnlineRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiApiBotOnlineRequest) Execute

func (r ApiApiBotOnlineRequest) Execute() (*User, *http.Response, error)

func (ApiApiBotOnlineRequest) Nb

func (r ApiApiBotOnlineRequest) Nb(nb interface{}) ApiApiBotOnlineRequest

How many bot users to fetch

type ApiApiCloudEvalRequest

type ApiApiCloudEvalRequest struct {
	ApiService *AnalysisApiService
	// contains filtered or unexported fields
}

func (ApiApiCloudEvalRequest) Execute

func (r ApiApiCloudEvalRequest) Execute() (*http.Response, error)

func (ApiApiCloudEvalRequest) Fen

func (r ApiApiCloudEvalRequest) Fen(fen interface{}) ApiApiCloudEvalRequest

FEN of the position

func (ApiApiCloudEvalRequest) MultiPv

func (r ApiApiCloudEvalRequest) MultiPv(multiPv interface{}) ApiApiCloudEvalRequest

Number of variations

func (ApiApiCloudEvalRequest) Variant

Variant

type ApiApiCrosstableRequest

type ApiApiCrosstableRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiCrosstableRequest) Execute

func (r ApiApiCrosstableRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiCrosstableRequest) Matchup

func (r ApiApiCrosstableRequest) Matchup(matchup interface{}) ApiApiCrosstableRequest

Whether to get the current match data, if any

type ApiApiExternalEngineAcquireRequest

type ApiApiExternalEngineAcquireRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineAcquireRequest) ApiExternalEngineAcquireRequest

func (r ApiApiExternalEngineAcquireRequest) ApiExternalEngineAcquireRequest(apiExternalEngineAcquireRequest ApiExternalEngineAcquireRequest) ApiApiExternalEngineAcquireRequest

Provider credentials.

func (ApiApiExternalEngineAcquireRequest) Execute

type ApiApiExternalEngineAnalyseRequest

type ApiApiExternalEngineAnalyseRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineAnalyseRequest) ApiExternalEngineAnalyseRequest

func (r ApiApiExternalEngineAnalyseRequest) ApiExternalEngineAnalyseRequest(apiExternalEngineAnalyseRequest ApiExternalEngineAnalyseRequest) ApiApiExternalEngineAnalyseRequest

Engine credentials and analysis request.

func (ApiApiExternalEngineAnalyseRequest) Execute

type ApiApiExternalEngineCreateRequest

type ApiApiExternalEngineCreateRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineCreateRequest) Execute

func (ApiApiExternalEngineCreateRequest) ExternalEngineRegistration

func (r ApiApiExternalEngineCreateRequest) ExternalEngineRegistration(externalEngineRegistration ExternalEngineRegistration) ApiApiExternalEngineCreateRequest

A new external engine registration.

type ApiApiExternalEngineDeleteRequest

type ApiApiExternalEngineDeleteRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineDeleteRequest) Execute

type ApiApiExternalEngineGetRequest

type ApiApiExternalEngineGetRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineGetRequest) Execute

type ApiApiExternalEngineListRequest

type ApiApiExternalEngineListRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineListRequest) Execute

type ApiApiExternalEnginePutRequest

type ApiApiExternalEnginePutRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEnginePutRequest) Execute

func (ApiApiExternalEnginePutRequest) ExternalEngineRegistration

func (r ApiApiExternalEnginePutRequest) ExternalEngineRegistration(externalEngineRegistration ExternalEngineRegistration) ApiApiExternalEnginePutRequest

A modified engine registration.

type ApiApiExternalEngineSubmitRequest

type ApiApiExternalEngineSubmitRequest struct {
	ApiService *ExternalEngineApiService
	// contains filtered or unexported fields
}

func (ApiApiExternalEngineSubmitRequest) Body

Analysis results

func (ApiApiExternalEngineSubmitRequest) Execute

type ApiApiGamesUserRequest

type ApiApiGamesUserRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiApiGamesUserRequest) Analysed

func (r ApiApiGamesUserRequest) Analysed(analysed interface{}) ApiApiGamesUserRequest

[Filter] Only games with or without a computer analysis available

func (ApiApiGamesUserRequest) Clocks

func (r ApiApiGamesUserRequest) Clocks(clocks interface{}) ApiApiGamesUserRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiApiGamesUserRequest) Color

func (r ApiApiGamesUserRequest) Color(color interface{}) ApiApiGamesUserRequest

[Filter] Only games played as this color.

func (ApiApiGamesUserRequest) Evals

func (r ApiApiGamesUserRequest) Evals(evals interface{}) ApiApiGamesUserRequest

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiApiGamesUserRequest) Execute

func (r ApiApiGamesUserRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiGamesUserRequest) Finished

func (r ApiApiGamesUserRequest) Finished(finished interface{}) ApiApiGamesUserRequest

Include finished games. Set to &#x60;false&#x60; to only get ongoing games.

func (ApiApiGamesUserRequest) Literate

func (r ApiApiGamesUserRequest) Literate(literate interface{}) ApiApiGamesUserRequest

Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination. Example: &#x60;5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)&#x60;

func (ApiApiGamesUserRequest) Max

func (r ApiApiGamesUserRequest) Max(max interface{}) ApiApiGamesUserRequest

How many games to download. Leave empty to download all games.

func (ApiApiGamesUserRequest) Moves

func (r ApiApiGamesUserRequest) Moves(moves interface{}) ApiApiGamesUserRequest

Include the PGN moves.

func (ApiApiGamesUserRequest) Ongoing

func (r ApiApiGamesUserRequest) Ongoing(ongoing interface{}) ApiApiGamesUserRequest

Include ongoing games. The last 3 moves will be omitted.

func (ApiApiGamesUserRequest) Opening

func (r ApiApiGamesUserRequest) Opening(opening interface{}) ApiApiGamesUserRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiApiGamesUserRequest) PerfType

func (r ApiApiGamesUserRequest) PerfType(perfType interface{}) ApiApiGamesUserRequest

[Filter] Only games in these speeds or variants. Multiple perf types can be specified, separated by a comma. Example: blitz,rapid,classical

func (ApiApiGamesUserRequest) PgnInJson

func (r ApiApiGamesUserRequest) PgnInJson(pgnInJson interface{}) ApiApiGamesUserRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field. The response type must be set to &#x60;application/x-ndjson&#x60; by the request &#x60;Accept&#x60; header.

func (ApiApiGamesUserRequest) Players

func (r ApiApiGamesUserRequest) Players(players interface{}) ApiApiGamesUserRequest

URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN. Example: &lt;https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt&gt;

func (ApiApiGamesUserRequest) Rated

func (r ApiApiGamesUserRequest) Rated(rated interface{}) ApiApiGamesUserRequest

[Filter] Only rated (&#x60;true&#x60;) or casual (&#x60;false&#x60;) games

func (ApiApiGamesUserRequest) Since

func (r ApiApiGamesUserRequest) Since(since interface{}) ApiApiGamesUserRequest

Download games played since this timestamp. Defaults to account creation date.

func (ApiApiGamesUserRequest) Sort

func (r ApiApiGamesUserRequest) Sort(sort interface{}) ApiApiGamesUserRequest

Sort order of the games.

func (ApiApiGamesUserRequest) Tags

func (r ApiApiGamesUserRequest) Tags(tags interface{}) ApiApiGamesUserRequest

Include the PGN tags.

func (ApiApiGamesUserRequest) Until

func (r ApiApiGamesUserRequest) Until(until interface{}) ApiApiGamesUserRequest

Download games played until this timestamp. Defaults to now.

func (ApiApiGamesUserRequest) Vs

func (r ApiApiGamesUserRequest) Vs(vs interface{}) ApiApiGamesUserRequest

[Filter] Only games played against this opponent

type ApiApiPuzzleActivityRequest

type ApiApiPuzzleActivityRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiApiPuzzleActivityRequest) Execute

func (ApiApiPuzzleActivityRequest) Max

How many entries to download. Leave empty to download all activity.

type ApiApiPuzzleDailyRequest

type ApiApiPuzzleDailyRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiApiPuzzleDailyRequest) Execute

func (r ApiApiPuzzleDailyRequest) Execute() (interface{}, *http.Response, error)

type ApiApiPuzzleDashboardRequest

type ApiApiPuzzleDashboardRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiApiPuzzleDashboardRequest) Execute

func (r ApiApiPuzzleDashboardRequest) Execute() (interface{}, *http.Response, error)

type ApiApiPuzzleIdRequest

type ApiApiPuzzleIdRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiApiPuzzleIdRequest) Execute

func (r ApiApiPuzzleIdRequest) Execute() (interface{}, *http.Response, error)

type ApiApiSimulRequest

type ApiApiSimulRequest struct {
	ApiService *SimulsApiService
	// contains filtered or unexported fields
}

func (ApiApiSimulRequest) Execute

func (r ApiApiSimulRequest) Execute() ([]interface{}, *http.Response, error)

type ApiApiStormDashboardRequest

type ApiApiStormDashboardRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiApiStormDashboardRequest) Days

How many days of history to return

func (ApiApiStormDashboardRequest) Execute

func (r ApiApiStormDashboardRequest) Execute() (interface{}, *http.Response, error)

type ApiApiSwissJoinRequest

type ApiApiSwissJoinRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiSwissJoinRequest) Execute

func (r ApiApiSwissJoinRequest) Execute() (*Ok, *http.Response, error)

func (ApiApiSwissJoinRequest) Password

func (r ApiApiSwissJoinRequest) Password(password interface{}) ApiApiSwissJoinRequest

The tournament password, if one is required

type ApiApiSwissNewRequest

type ApiApiSwissNewRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiSwissNewRequest) ChatFor

func (r ApiApiSwissNewRequest) ChatFor(chatFor interface{}) ApiApiSwissNewRequest

Who can read and write in the chat. - 0 &#x3D; No-one - 10 &#x3D; Only team leaders - 20 &#x3D; Only team members - 30 &#x3D; All Lichess players

func (ApiApiSwissNewRequest) ClockIncrement

func (r ApiApiSwissNewRequest) ClockIncrement(clockIncrement interface{}) ApiApiSwissNewRequest

Clock increment in seconds

func (ApiApiSwissNewRequest) ClockLimit

func (r ApiApiSwissNewRequest) ClockLimit(clockLimit interface{}) ApiApiSwissNewRequest

Clock initial time in seconds

func (ApiApiSwissNewRequest) ConditionsAllowList

func (r ApiApiSwissNewRequest) ConditionsAllowList(conditionsAllowList interface{}) ApiApiSwissNewRequest

Predefined list of usernames that are allowed to join, separated by commas. If this list is non-empty, then usernames absent from this list will be forbidden to join. Adding &#x60;%titled&#x60; to the list additionally allows any titled player to join. Example: &#x60;thibault,german11,%titled&#x60;

func (ApiApiSwissNewRequest) ConditionsMaxRatingRating

func (r ApiApiSwissNewRequest) ConditionsMaxRatingRating(conditionsMaxRatingRating interface{}) ApiApiSwissNewRequest

Maximum rating to join. Based on best rating reached in the last 7 days. Leave empty to let everyone join the tournament.

func (ApiApiSwissNewRequest) ConditionsMinRatingRating

func (r ApiApiSwissNewRequest) ConditionsMinRatingRating(conditionsMinRatingRating interface{}) ApiApiSwissNewRequest

Minimum rating to join. Leave empty to let everyone join the tournament.

func (ApiApiSwissNewRequest) ConditionsNbRatedGameNb

func (r ApiApiSwissNewRequest) ConditionsNbRatedGameNb(conditionsNbRatedGameNb interface{}) ApiApiSwissNewRequest

Minimum number of rated games required to join.

func (ApiApiSwissNewRequest) Description

func (r ApiApiSwissNewRequest) Description(description interface{}) ApiApiSwissNewRequest

Anything you want to tell players about the tournament

func (ApiApiSwissNewRequest) Execute

func (r ApiApiSwissNewRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiSwissNewRequest) ForbiddenPairings

func (r ApiApiSwissNewRequest) ForbiddenPairings(forbiddenPairings interface{}) ApiApiSwissNewRequest

Usernames of players that must not play together. Two usernames per line, separated by a space.

func (ApiApiSwissNewRequest) ManualPairings

func (r ApiApiSwissNewRequest) ManualPairings(manualPairings interface{}) ApiApiSwissNewRequest

Manual pairings for the next round. Two usernames per line, separated by a space. Present players without a valid pairing will be given a bye, which is worth 1 point. Forfeited players will get 0 points.

func (ApiApiSwissNewRequest) Name

func (r ApiApiSwissNewRequest) Name(name interface{}) ApiApiSwissNewRequest

The tournament name. Leave empty to get a random Grandmaster name

func (ApiApiSwissNewRequest) NbRounds

func (r ApiApiSwissNewRequest) NbRounds(nbRounds interface{}) ApiApiSwissNewRequest

Maximum number of rounds to play

func (ApiApiSwissNewRequest) Password

func (r ApiApiSwissNewRequest) Password(password interface{}) ApiApiSwissNewRequest

Make the tournament private and restrict access with a password.

func (ApiApiSwissNewRequest) Rated

func (r ApiApiSwissNewRequest) Rated(rated interface{}) ApiApiSwissNewRequest

Games are rated and impact players ratings

func (ApiApiSwissNewRequest) RoundInterval

func (r ApiApiSwissNewRequest) RoundInterval(roundInterval interface{}) ApiApiSwissNewRequest

How long to wait between each round, in seconds. Set to 99999999 to manually schedule each round from the tournament UI. If empty or -1, a sensible value is picked automatically.

func (ApiApiSwissNewRequest) StartsAt

func (r ApiApiSwissNewRequest) StartsAt(startsAt interface{}) ApiApiSwissNewRequest

Timestamp in milliseconds to start the tournament at a given date and time. By default, it starts 10 minutes after creation.

func (ApiApiSwissNewRequest) Variant

type ApiApiSwissTerminateRequest

type ApiApiSwissTerminateRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiSwissTerminateRequest) Execute

func (r ApiApiSwissTerminateRequest) Execute() (*Ok, *http.Response, error)

type ApiApiSwissUpdateRequest

type ApiApiSwissUpdateRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiSwissUpdateRequest) ChatFor

func (r ApiApiSwissUpdateRequest) ChatFor(chatFor interface{}) ApiApiSwissUpdateRequest

Who can read and write in the chat. - 0 &#x3D; No-one - 10 &#x3D; Only team leaders - 20 &#x3D; Only team members - 30 &#x3D; All Lichess players

func (ApiApiSwissUpdateRequest) ClockIncrement

func (r ApiApiSwissUpdateRequest) ClockIncrement(clockIncrement interface{}) ApiApiSwissUpdateRequest

Clock increment in seconds

func (ApiApiSwissUpdateRequest) ClockLimit

func (r ApiApiSwissUpdateRequest) ClockLimit(clockLimit interface{}) ApiApiSwissUpdateRequest

Clock initial time in seconds

func (ApiApiSwissUpdateRequest) ConditionsAllowList

func (r ApiApiSwissUpdateRequest) ConditionsAllowList(conditionsAllowList interface{}) ApiApiSwissUpdateRequest

Predefined list of usernames that are allowed to join, separated by commas. If this list is non-empty, then usernames absent from this list will be forbidden to join. Adding &#x60;%titled&#x60; to the list additionally allows any titled player to join. Example: &#x60;thibault,german11,%titled&#x60;

func (ApiApiSwissUpdateRequest) ConditionsMaxRatingRating

func (r ApiApiSwissUpdateRequest) ConditionsMaxRatingRating(conditionsMaxRatingRating interface{}) ApiApiSwissUpdateRequest

Maximum rating to join. Based on best rating reached in the last 7 days. Leave empty to let everyone join the tournament.

func (ApiApiSwissUpdateRequest) ConditionsMinRatingRating

func (r ApiApiSwissUpdateRequest) ConditionsMinRatingRating(conditionsMinRatingRating interface{}) ApiApiSwissUpdateRequest

Minimum rating to join. Leave empty to let everyone join the tournament.

func (ApiApiSwissUpdateRequest) ConditionsNbRatedGameNb

func (r ApiApiSwissUpdateRequest) ConditionsNbRatedGameNb(conditionsNbRatedGameNb interface{}) ApiApiSwissUpdateRequest

Minimum number of rated games required to join.

func (ApiApiSwissUpdateRequest) Description

func (r ApiApiSwissUpdateRequest) Description(description interface{}) ApiApiSwissUpdateRequest

Anything you want to tell players about the tournament

func (ApiApiSwissUpdateRequest) Execute

func (r ApiApiSwissUpdateRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiSwissUpdateRequest) ForbiddenPairings

func (r ApiApiSwissUpdateRequest) ForbiddenPairings(forbiddenPairings interface{}) ApiApiSwissUpdateRequest

Usernames of players that must not play together. Two usernames per line, separated by a space.

func (ApiApiSwissUpdateRequest) ManualPairings

func (r ApiApiSwissUpdateRequest) ManualPairings(manualPairings interface{}) ApiApiSwissUpdateRequest

Manual pairings for the next round. Two usernames per line, separated by a space. Present players without a valid pairing will be given a bye, which is worth 1 point. Forfeited players will get 0 points.

func (ApiApiSwissUpdateRequest) Name

func (r ApiApiSwissUpdateRequest) Name(name interface{}) ApiApiSwissUpdateRequest

The tournament name. Leave empty to get a random Grandmaster name

func (ApiApiSwissUpdateRequest) NbRounds

func (r ApiApiSwissUpdateRequest) NbRounds(nbRounds interface{}) ApiApiSwissUpdateRequest

Maximum number of rounds to play

func (ApiApiSwissUpdateRequest) Password

func (r ApiApiSwissUpdateRequest) Password(password interface{}) ApiApiSwissUpdateRequest

Make the tournament private and restrict access with a password.

func (ApiApiSwissUpdateRequest) Rated

func (r ApiApiSwissUpdateRequest) Rated(rated interface{}) ApiApiSwissUpdateRequest

Games are rated and impact players ratings

func (ApiApiSwissUpdateRequest) RoundInterval

func (r ApiApiSwissUpdateRequest) RoundInterval(roundInterval interface{}) ApiApiSwissUpdateRequest

How long to wait between each round, in seconds. Set to 99999999 to manually schedule each round from the tournament UI. If empty or -1, a sensible value is picked automatically.

func (ApiApiSwissUpdateRequest) StartsAt

func (r ApiApiSwissUpdateRequest) StartsAt(startsAt interface{}) ApiApiSwissUpdateRequest

Timestamp in milliseconds to start the tournament at a given date and time. By default, it starts 10 minutes after creation.

func (ApiApiSwissUpdateRequest) Variant

type ApiApiSwissWithdrawRequest

type ApiApiSwissWithdrawRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiSwissWithdrawRequest) Execute

func (r ApiApiSwissWithdrawRequest) Execute() (*Ok, *http.Response, error)

type ApiApiTokenDeleteRequest

type ApiApiTokenDeleteRequest struct {
	ApiService *OAuthApiService
	// contains filtered or unexported fields
}

func (ApiApiTokenDeleteRequest) Execute

func (r ApiApiTokenDeleteRequest) Execute() (*http.Response, error)

type ApiApiTokenRequest

type ApiApiTokenRequest struct {
	ApiService *OAuthApiService
	// contains filtered or unexported fields
}

func (ApiApiTokenRequest) ClientId

func (r ApiApiTokenRequest) ClientId(clientId interface{}) ApiApiTokenRequest

Must match the &#x60;client_id&#x60; used to request the authorization code.

func (ApiApiTokenRequest) Code

func (r ApiApiTokenRequest) Code(code interface{}) ApiApiTokenRequest

The authorization code that was sent in the &#x60;code&#x60; parameter to your &#x60;redirect_uri&#x60;.

func (ApiApiTokenRequest) CodeVerifier

func (r ApiApiTokenRequest) CodeVerifier(codeVerifier interface{}) ApiApiTokenRequest

A &#x60;code_challenge&#x60; was used to request the authorization code. This must be the &#x60;code_verifier&#x60; it was derived from.

func (ApiApiTokenRequest) Execute

func (r ApiApiTokenRequest) Execute() (*http.Response, error)

func (ApiApiTokenRequest) GrantType

func (r ApiApiTokenRequest) GrantType(grantType interface{}) ApiApiTokenRequest

Must be &#x60;authorization_code&#x60;.

func (ApiApiTokenRequest) RedirectUri

func (r ApiApiTokenRequest) RedirectUri(redirectUri interface{}) ApiApiTokenRequest

Must match the &#x60;redirect_uri&#x60; used to request the authorization code.

type ApiApiTournamentJoinRequest

type ApiApiTournamentJoinRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentJoinRequest) Execute

func (r ApiApiTournamentJoinRequest) Execute() (*Ok, *http.Response, error)

func (ApiApiTournamentJoinRequest) PairMeAsap

func (r ApiApiTournamentJoinRequest) PairMeAsap(pairMeAsap interface{}) ApiApiTournamentJoinRequest

If the tournament is started, attempt to pair the user, even if they are not connected to the tournament page. This expires after one minute, to avoid pairing a user who is long gone. You may call \\\&quot;join\\\&quot; again to extend the waiting.

func (ApiApiTournamentJoinRequest) Password

func (r ApiApiTournamentJoinRequest) Password(password interface{}) ApiApiTournamentJoinRequest

The tournament password, if one is required. Can also be a [user-specific entry code](https://github.com/lichess-org/api/tree/master/example/tournament-entry-code) generated and shared by the organizer.

func (ApiApiTournamentJoinRequest) Team

The team to join the tournament with, for team battle tournaments

type ApiApiTournamentPostRequest

type ApiApiTournamentPostRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentPostRequest) Berserkable

func (r ApiApiTournamentPostRequest) Berserkable(berserkable interface{}) ApiApiTournamentPostRequest

Whether the players can use berserk. Only allowed if clockIncrement &lt;&#x3D; clockTime * 2

func (ApiApiTournamentPostRequest) ClockIncrement

func (r ApiApiTournamentPostRequest) ClockIncrement(clockIncrement interface{}) ApiApiTournamentPostRequest

Clock increment in seconds

func (ApiApiTournamentPostRequest) ClockTime

func (r ApiApiTournamentPostRequest) ClockTime(clockTime interface{}) ApiApiTournamentPostRequest

Clock initial time in minutes

func (ApiApiTournamentPostRequest) ConditionsAllowList

func (r ApiApiTournamentPostRequest) ConditionsAllowList(conditionsAllowList interface{}) ApiApiTournamentPostRequest

Predefined list of usernames that are allowed to join, separated by commas. If this list is non-empty, then usernames absent from this list will be forbidden to join. Adding &#x60;%titled&#x60; to the list additionally allows any titled player to join. Example: &#x60;thibault,german11,%titled&#x60;

func (ApiApiTournamentPostRequest) ConditionsMaxRatingRating

func (r ApiApiTournamentPostRequest) ConditionsMaxRatingRating(conditionsMaxRatingRating interface{}) ApiApiTournamentPostRequest

Maximum rating to join. Based on best rating reached in the last 7 days. Leave empty to let everyone join the tournament.

func (ApiApiTournamentPostRequest) ConditionsMinRatingRating

func (r ApiApiTournamentPostRequest) ConditionsMinRatingRating(conditionsMinRatingRating interface{}) ApiApiTournamentPostRequest

Minimum rating to join. Leave empty to let everyone join the tournament.

func (ApiApiTournamentPostRequest) ConditionsNbRatedGameNb

func (r ApiApiTournamentPostRequest) ConditionsNbRatedGameNb(conditionsNbRatedGameNb interface{}) ApiApiTournamentPostRequest

Minimum number of rated games required to join.

func (ApiApiTournamentPostRequest) ConditionsTeamMemberTeamId

func (r ApiApiTournamentPostRequest) ConditionsTeamMemberTeamId(conditionsTeamMemberTeamId interface{}) ApiApiTournamentPostRequest

Restrict entry to members of a team. The teamId is the last part of a team URL, e.g. &#x60;https://lichess.org/team/coders&#x60; has teamId &#x3D; &#x60;coders&#x60;. Leave empty to let everyone join the tournament. Do not use this to create team battles, use &#x60;teamBattleByTeam&#x60; instead.

func (ApiApiTournamentPostRequest) Description

func (r ApiApiTournamentPostRequest) Description(description interface{}) ApiApiTournamentPostRequest

Anything you want to tell players about the tournament

func (ApiApiTournamentPostRequest) Execute

func (r ApiApiTournamentPostRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiTournamentPostRequest) HasChat

func (r ApiApiTournamentPostRequest) HasChat(hasChat interface{}) ApiApiTournamentPostRequest

Whether the players can discuss in a chat

func (ApiApiTournamentPostRequest) Minutes

func (r ApiApiTournamentPostRequest) Minutes(minutes interface{}) ApiApiTournamentPostRequest

How long the tournament lasts, in minutes

func (ApiApiTournamentPostRequest) Name

The tournament name. Leave empty to get a random Grandmaster name

func (ApiApiTournamentPostRequest) Password

func (r ApiApiTournamentPostRequest) Password(password interface{}) ApiApiTournamentPostRequest

Make the tournament private, and restrict access with a password. You can also [generate user-specific entry codes](https://github.com/lichess-org/api/tree/master/example/tournament-entry-code) based on this password.

func (ApiApiTournamentPostRequest) Position

func (r ApiApiTournamentPostRequest) Position(position interface{}) ApiApiTournamentPostRequest

Custom initial position (in FEN) for all games of the tournament. Must be a legal chess position. Only works with standard chess, not variants (except Chess960).

func (ApiApiTournamentPostRequest) Rated

func (r ApiApiTournamentPostRequest) Rated(rated interface{}) ApiApiTournamentPostRequest

Games are rated and impact players ratings

func (ApiApiTournamentPostRequest) StartDate

func (r ApiApiTournamentPostRequest) StartDate(startDate interface{}) ApiApiTournamentPostRequest

Timestamp (in milliseconds) to start the tournament at a given date and time. Overrides the &#x60;waitMinutes&#x60; setting

func (ApiApiTournamentPostRequest) Streakable

func (r ApiApiTournamentPostRequest) Streakable(streakable interface{}) ApiApiTournamentPostRequest

After 2 wins, consecutive wins grant 4 points instead of 2.

func (ApiApiTournamentPostRequest) TeamBattleByTeam

func (r ApiApiTournamentPostRequest) TeamBattleByTeam(teamBattleByTeam interface{}) ApiApiTournamentPostRequest

Set the ID of a team you lead to create a team battle. The other teams can be added using the [team battle edit endpoint](#operation/apiTournamentTeamBattlePost).

func (ApiApiTournamentPostRequest) Variant

func (ApiApiTournamentPostRequest) WaitMinutes

func (r ApiApiTournamentPostRequest) WaitMinutes(waitMinutes interface{}) ApiApiTournamentPostRequest

How long to wait before starting the tournament, from now, in minutes

type ApiApiTournamentRequest

type ApiApiTournamentRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentRequest) Execute

type ApiApiTournamentTeamBattlePostRequest

type ApiApiTournamentTeamBattlePostRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentTeamBattlePostRequest) Execute

func (r ApiApiTournamentTeamBattlePostRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiTournamentTeamBattlePostRequest) NbLeaders

Number team leaders per team.

func (ApiApiTournamentTeamBattlePostRequest) Teams

All team IDs of the team battle, separated by commas. Make sure to always send the full list. Teams that are not in the list will be removed from the team battle. Example: &#x60;coders,zhigalko_sergei-fan-club,hhSwTKZv&#x60;

type ApiApiTournamentTerminateRequest

type ApiApiTournamentTerminateRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentTerminateRequest) Execute

type ApiApiTournamentUpdateRequest

type ApiApiTournamentUpdateRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentUpdateRequest) Berserkable

func (r ApiApiTournamentUpdateRequest) Berserkable(berserkable interface{}) ApiApiTournamentUpdateRequest

Whether the players can use berserk. Only allowed if clockIncrement &lt;&#x3D; clockTime * 2

func (ApiApiTournamentUpdateRequest) ClockIncrement

func (r ApiApiTournamentUpdateRequest) ClockIncrement(clockIncrement interface{}) ApiApiTournamentUpdateRequest

Clock increment in seconds

func (ApiApiTournamentUpdateRequest) ClockTime

func (r ApiApiTournamentUpdateRequest) ClockTime(clockTime interface{}) ApiApiTournamentUpdateRequest

Clock initial time in minutes

func (ApiApiTournamentUpdateRequest) ConditionsAllowList

func (r ApiApiTournamentUpdateRequest) ConditionsAllowList(conditionsAllowList interface{}) ApiApiTournamentUpdateRequest

Predefined list of usernames that are allowed to join, separated by commas. If this list is non-empty, then usernames absent from this list will be forbidden to join. Adding &#x60;%titled&#x60; to the list additionally allows any titled player to join. Example: &#x60;thibault,german11,%titled&#x60;

func (ApiApiTournamentUpdateRequest) ConditionsMaxRatingRating

func (r ApiApiTournamentUpdateRequest) ConditionsMaxRatingRating(conditionsMaxRatingRating interface{}) ApiApiTournamentUpdateRequest

Maximum rating to join. Based on best rating reached in the last 7 days. Leave empty to let everyone join the tournament.

func (ApiApiTournamentUpdateRequest) ConditionsMinRatingRating

func (r ApiApiTournamentUpdateRequest) ConditionsMinRatingRating(conditionsMinRatingRating interface{}) ApiApiTournamentUpdateRequest

Minimum rating to join. Leave empty to let everyone join the tournament.

func (ApiApiTournamentUpdateRequest) ConditionsNbRatedGameNb

func (r ApiApiTournamentUpdateRequest) ConditionsNbRatedGameNb(conditionsNbRatedGameNb interface{}) ApiApiTournamentUpdateRequest

Minimum number of rated games required to join.

func (ApiApiTournamentUpdateRequest) Description

func (r ApiApiTournamentUpdateRequest) Description(description interface{}) ApiApiTournamentUpdateRequest

Anything you want to tell players about the tournament

func (ApiApiTournamentUpdateRequest) Execute

func (r ApiApiTournamentUpdateRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiTournamentUpdateRequest) HasChat

func (r ApiApiTournamentUpdateRequest) HasChat(hasChat interface{}) ApiApiTournamentUpdateRequest

Whether the players can discuss in a chat

func (ApiApiTournamentUpdateRequest) Minutes

func (r ApiApiTournamentUpdateRequest) Minutes(minutes interface{}) ApiApiTournamentUpdateRequest

How long the tournament lasts, in minutes

func (ApiApiTournamentUpdateRequest) Name

The tournament name. Leave empty to get a random Grandmaster name

func (ApiApiTournamentUpdateRequest) Password

func (r ApiApiTournamentUpdateRequest) Password(password interface{}) ApiApiTournamentUpdateRequest

Make the tournament private, and restrict access with a password

func (ApiApiTournamentUpdateRequest) Position

func (r ApiApiTournamentUpdateRequest) Position(position interface{}) ApiApiTournamentUpdateRequest

Custom initial position (in FEN) for all games of the tournament. Must be a legal chess position. Only works with standard chess, not variants (except Chess960).

func (ApiApiTournamentUpdateRequest) Rated

Games are rated and impact players ratings

func (ApiApiTournamentUpdateRequest) StartDate

func (r ApiApiTournamentUpdateRequest) StartDate(startDate interface{}) ApiApiTournamentUpdateRequest

Timestamp (in milliseconds) to start the tournament at a given date and time. Overrides the &#x60;waitMinutes&#x60; setting

func (ApiApiTournamentUpdateRequest) Streakable

func (r ApiApiTournamentUpdateRequest) Streakable(streakable interface{}) ApiApiTournamentUpdateRequest

After 2 wins, consecutive wins grant 4 points instead of 2.

func (ApiApiTournamentUpdateRequest) Variant

func (ApiApiTournamentUpdateRequest) WaitMinutes

func (r ApiApiTournamentUpdateRequest) WaitMinutes(waitMinutes interface{}) ApiApiTournamentUpdateRequest

How long to wait before starting the tournament, from now, in minutes

type ApiApiTournamentWithdrawRequest

type ApiApiTournamentWithdrawRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiTournamentWithdrawRequest) Execute

type ApiApiUserActivityRequest

type ApiApiUserActivityRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUserActivityRequest) Execute

func (r ApiApiUserActivityRequest) Execute() (*http.Response, error)

type ApiApiUserCurrentGameRequest

type ApiApiUserCurrentGameRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiApiUserCurrentGameRequest) Clocks

func (r ApiApiUserCurrentGameRequest) Clocks(clocks interface{}) ApiApiUserCurrentGameRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiApiUserCurrentGameRequest) Evals

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiApiUserCurrentGameRequest) Execute

func (r ApiApiUserCurrentGameRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiUserCurrentGameRequest) Literate

func (r ApiApiUserCurrentGameRequest) Literate(literate interface{}) ApiApiUserCurrentGameRequest

Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination. Example: &#x60;5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)&#x60;

func (ApiApiUserCurrentGameRequest) Moves

Include the PGN moves.

func (ApiApiUserCurrentGameRequest) Opening

func (r ApiApiUserCurrentGameRequest) Opening(opening interface{}) ApiApiUserCurrentGameRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiApiUserCurrentGameRequest) PgnInJson

func (r ApiApiUserCurrentGameRequest) PgnInJson(pgnInJson interface{}) ApiApiUserCurrentGameRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiApiUserCurrentGameRequest) Players

func (r ApiApiUserCurrentGameRequest) Players(players interface{}) ApiApiUserCurrentGameRequest

URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN. Example: &lt;https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt&gt;

func (ApiApiUserCurrentGameRequest) Tags

Include the PGN tags.

type ApiApiUserFollowingRequest

type ApiApiUserFollowingRequest struct {
	ApiService *RelationsApiService
	// contains filtered or unexported fields
}

func (ApiApiUserFollowingRequest) Execute

func (r ApiApiUserFollowingRequest) Execute() (interface{}, *http.Response, error)

type ApiApiUserNameTournamentCreatedRequest

type ApiApiUserNameTournamentCreatedRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiApiUserNameTournamentCreatedRequest) Execute

func (r ApiApiUserNameTournamentCreatedRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiUserNameTournamentCreatedRequest) Status

Include tournaments in the given status: \&quot;Created\&quot; (10), \&quot;Started\&quot; (20), \&quot;Finished\&quot; (30) You can add this parameter more than once to include tournaments in different statuses. Example: &#x60;?status&#x3D;10&amp;status&#x3D;20&#x60;

type ApiApiUserPerfRequest

type ApiApiUserPerfRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUserPerfRequest) Execute

func (r ApiApiUserPerfRequest) Execute() (interface{}, *http.Response, error)

type ApiApiUserRatingHistoryRequest

type ApiApiUserRatingHistoryRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUserRatingHistoryRequest) Execute

func (r ApiApiUserRatingHistoryRequest) Execute() (interface{}, *http.Response, error)

type ApiApiUserRequest

type ApiApiUserRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUserRequest) Execute

func (r ApiApiUserRequest) Execute() (interface{}, *http.Response, error)

func (ApiApiUserRequest) Trophies

func (r ApiApiUserRequest) Trophies(trophies interface{}) ApiApiUserRequest

Include user trophies

type ApiApiUsersRequest

type ApiApiUsersRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUsersRequest) Body

User IDs separated by commas.

func (ApiApiUsersRequest) Execute

func (r ApiApiUsersRequest) Execute() ([]User, *http.Response, error)

type ApiApiUsersStatusRequest

type ApiApiUsersStatusRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiApiUsersStatusRequest) Execute

func (ApiApiUsersStatusRequest) Ids

func (r ApiApiUsersStatusRequest) Ids(ids interface{}) ApiApiUsersStatusRequest

User IDs separated by commas. Up to 100 IDs.

func (ApiApiUsersStatusRequest) WithGameIds

func (r ApiApiUsersStatusRequest) WithGameIds(withGameIds interface{}) ApiApiUsersStatusRequest

Also return the ID of the game being played, if any, for each player, in a &#x60;playingId&#x60; field. Defaults to &#x60;false&#x60; to preserve server resources.

type ApiBoardGameAbortRequest

type ApiBoardGameAbortRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameAbortRequest) Execute

func (r ApiBoardGameAbortRequest) Execute() (*Ok, *http.Response, error)

type ApiBoardGameBerserkRequest

type ApiBoardGameBerserkRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameBerserkRequest) Execute

func (r ApiBoardGameBerserkRequest) Execute() (*Ok, *http.Response, error)

type ApiBoardGameChatGetRequest

type ApiBoardGameChatGetRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameChatGetRequest) Execute

func (r ApiBoardGameChatGetRequest) Execute() (interface{}, *http.Response, error)

type ApiBoardGameChatPostRequest

type ApiBoardGameChatPostRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameChatPostRequest) Execute

func (r ApiBoardGameChatPostRequest) Execute() (*Ok, *http.Response, error)

func (ApiBoardGameChatPostRequest) Room

func (ApiBoardGameChatPostRequest) Text

type ApiBoardGameClaimVictoryRequest

type ApiBoardGameClaimVictoryRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameClaimVictoryRequest) Execute

type ApiBoardGameDrawRequest

type ApiBoardGameDrawRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameDrawRequest) Execute

func (r ApiBoardGameDrawRequest) Execute() (*Ok, *http.Response, error)

type ApiBoardGameMoveRequest

type ApiBoardGameMoveRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameMoveRequest) Execute

func (r ApiBoardGameMoveRequest) Execute() (*Ok, *http.Response, error)

func (ApiBoardGameMoveRequest) OfferingDraw

func (r ApiBoardGameMoveRequest) OfferingDraw(offeringDraw interface{}) ApiBoardGameMoveRequest

Whether to offer (or agree to) a draw

type ApiBoardGameResignRequest

type ApiBoardGameResignRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameResignRequest) Execute

func (r ApiBoardGameResignRequest) Execute() (*Ok, *http.Response, error)

type ApiBoardGameStreamRequest

type ApiBoardGameStreamRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameStreamRequest) Execute

func (r ApiBoardGameStreamRequest) Execute() (interface{}, *http.Response, error)

type ApiBoardGameTakebackRequest

type ApiBoardGameTakebackRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (ApiBoardGameTakebackRequest) Execute

func (r ApiBoardGameTakebackRequest) Execute() (*Ok, *http.Response, error)

type ApiBotAccountUpgradeRequest

type ApiBotAccountUpgradeRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotAccountUpgradeRequest) Execute

func (r ApiBotAccountUpgradeRequest) Execute() (*Ok, *http.Response, error)

type ApiBotGameAbortRequest

type ApiBotGameAbortRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameAbortRequest) Execute

func (r ApiBotGameAbortRequest) Execute() (*Ok, *http.Response, error)

type ApiBotGameChatGetRequest

type ApiBotGameChatGetRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameChatGetRequest) Execute

func (r ApiBotGameChatGetRequest) Execute() (interface{}, *http.Response, error)

type ApiBotGameChatRequest

type ApiBotGameChatRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameChatRequest) Execute

func (r ApiBotGameChatRequest) Execute() (*Ok, *http.Response, error)

func (ApiBotGameChatRequest) Room

func (r ApiBotGameChatRequest) Room(room interface{}) ApiBotGameChatRequest

func (ApiBotGameChatRequest) Text

func (r ApiBotGameChatRequest) Text(text interface{}) ApiBotGameChatRequest

type ApiBotGameMoveRequest

type ApiBotGameMoveRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameMoveRequest) Execute

func (r ApiBotGameMoveRequest) Execute() (*Ok, *http.Response, error)

func (ApiBotGameMoveRequest) OfferingDraw

func (r ApiBotGameMoveRequest) OfferingDraw(offeringDraw interface{}) ApiBotGameMoveRequest

Whether to offer (or agree to) a draw

type ApiBotGameResignRequest

type ApiBotGameResignRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameResignRequest) Execute

func (r ApiBotGameResignRequest) Execute() (*Ok, *http.Response, error)

type ApiBotGameStreamRequest

type ApiBotGameStreamRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (ApiBotGameStreamRequest) Execute

func (r ApiBotGameStreamRequest) Execute() (interface{}, *http.Response, error)

type ApiBroadcastAllRoundsPgnRequest

type ApiBroadcastAllRoundsPgnRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastAllRoundsPgnRequest) Execute

func (r ApiBroadcastAllRoundsPgnRequest) Execute() (interface{}, *http.Response, error)

type ApiBroadcastIndexRequest

type ApiBroadcastIndexRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastIndexRequest) Execute

func (r ApiBroadcastIndexRequest) Execute() ([]interface{}, *http.Response, error)

func (ApiBroadcastIndexRequest) Nb

Max number of broadcasts to fetch

type ApiBroadcastPushRequest

type ApiBroadcastPushRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastPushRequest) Body

func (r ApiBroadcastPushRequest) Body(body interface{}) ApiBroadcastPushRequest

The PGN. It can contain up to 64 games, separated by a double new line.

func (ApiBroadcastPushRequest) Execute

func (r ApiBroadcastPushRequest) Execute() ([]Ok, *http.Response, error)

type ApiBroadcastRoundCreateRequest

type ApiBroadcastRoundCreateRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastRoundCreateRequest) Execute

func (r ApiBroadcastRoundCreateRequest) Execute() (interface{}, *http.Response, error)

func (ApiBroadcastRoundCreateRequest) Name

Name of the broadcast round. Length must be between 3 and 80 characters. Example: &#x60;Round 1&#x60;

func (ApiBroadcastRoundCreateRequest) StartsAt

func (r ApiBroadcastRoundCreateRequest) StartsAt(startsAt interface{}) ApiBroadcastRoundCreateRequest

Timestamp in milliseconds of broadcast round start. Leave empty to manually start the broadcast round. Example: &#x60;1356998400070&#x60;

func (ApiBroadcastRoundCreateRequest) SyncUrl

func (r ApiBroadcastRoundCreateRequest) SyncUrl(syncUrl interface{}) ApiBroadcastRoundCreateRequest

URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet. Example: &#x60;https://myserver.org/myevent/round-10/games.pgn&#x60; If the syncUrl is missing, then the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush).

type ApiBroadcastRoundGetRequest

type ApiBroadcastRoundGetRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastRoundGetRequest) Execute

func (r ApiBroadcastRoundGetRequest) Execute() ([]interface{}, *http.Response, error)

type ApiBroadcastRoundPgnRequest

type ApiBroadcastRoundPgnRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastRoundPgnRequest) Execute

func (r ApiBroadcastRoundPgnRequest) Execute() (interface{}, *http.Response, error)

type ApiBroadcastRoundUpdateRequest

type ApiBroadcastRoundUpdateRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastRoundUpdateRequest) Execute

func (ApiBroadcastRoundUpdateRequest) Name

Name of the broadcast round. Length must be between 3 and 80 characters. Example: &#x60;Round 10&#x60;

func (ApiBroadcastRoundUpdateRequest) StartsAt

func (r ApiBroadcastRoundUpdateRequest) StartsAt(startsAt interface{}) ApiBroadcastRoundUpdateRequest

Timestamp in milliseconds of broadcast start. Leave empty to manually start the broadcast. Example: &#x60;1356998400070&#x60;

func (ApiBroadcastRoundUpdateRequest) SyncUrl

func (r ApiBroadcastRoundUpdateRequest) SyncUrl(syncUrl interface{}) ApiBroadcastRoundUpdateRequest

URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet. Example: &#x60;https://myserver.org/myevent/round-10/games.pgn&#x60;

type ApiBroadcastStreamRoundPgnRequest

type ApiBroadcastStreamRoundPgnRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastStreamRoundPgnRequest) Execute

func (r ApiBroadcastStreamRoundPgnRequest) Execute() (interface{}, *http.Response, error)

type ApiBroadcastTourCreateRequest

type ApiBroadcastTourCreateRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastTourCreateRequest) Description

func (r ApiBroadcastTourCreateRequest) Description(description interface{}) ApiBroadcastTourCreateRequest

Short description of the broadcast tournament. Length must be between 3 and 400 characters. Example: &#x60;An 11 round classical tournament featuring the 9 highest rated players in the world. Including Carlsen, Caruana, Ding, Aronian, Nakamura and more.&#x60;

func (ApiBroadcastTourCreateRequest) Execute

func (r ApiBroadcastTourCreateRequest) Execute() (interface{}, *http.Response, error)

func (ApiBroadcastTourCreateRequest) Markdown

func (r ApiBroadcastTourCreateRequest) Markdown(markdown interface{}) ApiBroadcastTourCreateRequest

Optional long description of the broadcast. Markdown is supported. Length must be less than 20,000 characters.

func (ApiBroadcastTourCreateRequest) Name

Name of the broadcast tournament. Length must be between 3 and 80 characters. Example: &#x60;Sinquefield Cup&#x60;

func (ApiBroadcastTourCreateRequest) Official

func (r ApiBroadcastTourCreateRequest) Official(official interface{}) ApiBroadcastTourCreateRequest

For Lichess internal usage only. You are not allowed to use this flag. If you do it, we will have to call the police.

type ApiBroadcastTourGetRequest

type ApiBroadcastTourGetRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastTourGetRequest) Execute

func (r ApiBroadcastTourGetRequest) Execute() ([]interface{}, *http.Response, error)

type ApiBroadcastTourUpdateRequest

type ApiBroadcastTourUpdateRequest struct {
	ApiService *BroadcastsApiService
	// contains filtered or unexported fields
}

func (ApiBroadcastTourUpdateRequest) Description

func (r ApiBroadcastTourUpdateRequest) Description(description interface{}) ApiBroadcastTourUpdateRequest

Short description of the broadcast tournament. Length must be between 3 and 400 characters. Example: &#x60;An 11 round classical tournament featuring the 9 highest rated players in the world. Including Carlsen, Caruana, Ding, Aronian, Nakamura and more.&#x60;

func (ApiBroadcastTourUpdateRequest) Execute

func (ApiBroadcastTourUpdateRequest) Markdown

func (r ApiBroadcastTourUpdateRequest) Markdown(markdown interface{}) ApiBroadcastTourUpdateRequest

Optional long description of the broadcast tournament. Markdown is supported. Length must be less than 20,000 characters.

func (ApiBroadcastTourUpdateRequest) Name

Name of the broadcast tournament. Length must be between 3 and 80 characters. Example: &#x60;Sinquefield Cup&#x60;

func (ApiBroadcastTourUpdateRequest) Official

func (r ApiBroadcastTourUpdateRequest) Official(official interface{}) ApiBroadcastTourUpdateRequest

For Lichess internal usage only. You are not allowed to use this flag. If you do it, we will have to call the police.

type ApiBulkPairingCreateRequest

type ApiBulkPairingCreateRequest struct {
	ApiService *BulkPairingsApiService
	// contains filtered or unexported fields
}

func (ApiBulkPairingCreateRequest) ClockIncrement

func (r ApiBulkPairingCreateRequest) ClockIncrement(clockIncrement interface{}) ApiBulkPairingCreateRequest

Clock increment in seconds. Example: &#x60;2&#x60;

func (ApiBulkPairingCreateRequest) ClockLimit

func (r ApiBulkPairingCreateRequest) ClockLimit(clockLimit interface{}) ApiBulkPairingCreateRequest

Clock initial time in seconds. Example: &#x60;600&#x60;

func (ApiBulkPairingCreateRequest) Days

Days per turn. For correspondence games only.

func (ApiBulkPairingCreateRequest) Execute

func (r ApiBulkPairingCreateRequest) Execute() (interface{}, *http.Response, error)

func (ApiBulkPairingCreateRequest) Fen

Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.

func (ApiBulkPairingCreateRequest) Message

func (r ApiBulkPairingCreateRequest) Message(message interface{}) ApiBulkPairingCreateRequest

Message that will be sent to each player, when the game is created. It is sent from your user account. &#x60;{opponent}&#x60; and &#x60;{game}&#x60; are placeholders that will be replaced with the opponent and the game URLs. You can omit this field to send the default message, but if you set your own message, it must at least contain the &#x60;{game}&#x60; placeholder.

func (ApiBulkPairingCreateRequest) PairAt

func (r ApiBulkPairingCreateRequest) PairAt(pairAt interface{}) ApiBulkPairingCreateRequest

Date at which the games will be created as a Unix timestamp in milliseconds. Up to 24h in the future. Omit, or set to current date and time, to start the games immediately. Example: &#x60;1612289869919&#x60;

func (ApiBulkPairingCreateRequest) Players

func (r ApiBulkPairingCreateRequest) Players(players interface{}) ApiBulkPairingCreateRequest

OAuth tokens of all the players to pair, with the syntax &#x60;tokenOfWhitePlayerInGame1:tokenOfBlackPlayerInGame1,tokenOfWhitePlayerInGame2:tokenOfBlackPlayerInGame2,...&#x60;. The 2 tokens of the players of a game are separated with &#x60;:&#x60;. The first token gets the white pieces. Games are separated with &#x60;,&#x60;. Up to 1000 tokens can be sent, for a max of 500 games. Each token must be included at most once. Example: &#x60;token1:token2,token3:token4,token5:token6&#x60;

func (ApiBulkPairingCreateRequest) Rated

func (r ApiBulkPairingCreateRequest) Rated(rated interface{}) ApiBulkPairingCreateRequest

Game is rated and impacts players ratings

func (ApiBulkPairingCreateRequest) Rules

func (r ApiBulkPairingCreateRequest) Rules(rules interface{}) ApiBulkPairingCreateRequest

Extra game rules separated by commas. Example: &#x60;noAbort,noRematch&#x60;

func (ApiBulkPairingCreateRequest) StartClocksAt

func (r ApiBulkPairingCreateRequest) StartClocksAt(startClocksAt interface{}) ApiBulkPairingCreateRequest

Date at which the clocks will be automatically started as a Unix timestamp in milliseconds. Up to 24h in the future. Note that the clocks can start earlier than specified, if players start making moves in the game. If omitted, the clocks will not start automatically. Example: &#x60;1612289869919&#x60;

func (ApiBulkPairingCreateRequest) Variant

type ApiBulkPairingDeleteRequest

type ApiBulkPairingDeleteRequest struct {
	ApiService *BulkPairingsApiService
	// contains filtered or unexported fields
}

func (ApiBulkPairingDeleteRequest) Execute

func (r ApiBulkPairingDeleteRequest) Execute() (*Ok, *http.Response, error)

type ApiBulkPairingGetRequest

type ApiBulkPairingGetRequest struct {
	ApiService *BulkPairingsApiService
	// contains filtered or unexported fields
}

func (ApiBulkPairingGetRequest) Execute

func (r ApiBulkPairingGetRequest) Execute() ([]interface{}, *http.Response, error)

type ApiBulkPairingStartClocksRequest

type ApiBulkPairingStartClocksRequest struct {
	ApiService *BulkPairingsApiService
	// contains filtered or unexported fields
}

func (ApiBulkPairingStartClocksRequest) Execute

type ApiChallengeAcceptRequest

type ApiChallengeAcceptRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeAcceptRequest) Execute

func (r ApiChallengeAcceptRequest) Execute() (*Ok, *http.Response, error)

type ApiChallengeAiRequest

type ApiChallengeAiRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeAiRequest) ClockIncrement

func (r ApiChallengeAiRequest) ClockIncrement(clockIncrement interface{}) ApiChallengeAiRequest

Clock increment in seconds. If empty, a correspondence game is created.

func (ApiChallengeAiRequest) ClockLimit

func (r ApiChallengeAiRequest) ClockLimit(clockLimit interface{}) ApiChallengeAiRequest

Clock initial time in seconds. If empty, a correspondence game is created.

func (ApiChallengeAiRequest) Color

func (r ApiChallengeAiRequest) Color(color interface{}) ApiChallengeAiRequest

Which color you get to play

func (ApiChallengeAiRequest) Days

func (r ApiChallengeAiRequest) Days(days interface{}) ApiChallengeAiRequest

Days per move, for correspondence games. Clock settings must be omitted.

func (ApiChallengeAiRequest) Execute

func (r ApiChallengeAiRequest) Execute() (*GameJson, *http.Response, error)

func (ApiChallengeAiRequest) Fen

func (r ApiChallengeAiRequest) Fen(fen interface{}) ApiChallengeAiRequest

Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.

func (ApiChallengeAiRequest) Level

func (r ApiChallengeAiRequest) Level(level interface{}) ApiChallengeAiRequest

AI strength

func (ApiChallengeAiRequest) Variant

type ApiChallengeCancelRequest

type ApiChallengeCancelRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeCancelRequest) Execute

func (r ApiChallengeCancelRequest) Execute() (*Ok, *http.Response, error)

func (ApiChallengeCancelRequest) OpponentToken

func (r ApiChallengeCancelRequest) OpponentToken(opponentToken interface{}) ApiChallengeCancelRequest

Optional &#x60;challenge:write&#x60; token of the opponent. If set, the game can be canceled even if both players have moved.

type ApiChallengeCreateRequest

type ApiChallengeCreateRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeCreateRequest) AcceptByToken

func (r ApiChallengeCreateRequest) AcceptByToken(acceptByToken interface{}) ApiChallengeCreateRequest

Immediately accept the challenge and create the game. Pass in an OAuth token (with the &#x60;challenge:write&#x60; scope) for the receiving user. On success, the response will contain a &#x60;game&#x60; field instead of a &#x60;challenge&#x60; field. Alternatively, consider the [bulk pairing API](#operation/bulkPairingCreate).

func (ApiChallengeCreateRequest) ClockIncrement

func (r ApiChallengeCreateRequest) ClockIncrement(clockIncrement interface{}) ApiChallengeCreateRequest

Clock increment in seconds. If empty, a correspondence game is created.

func (ApiChallengeCreateRequest) ClockLimit

func (r ApiChallengeCreateRequest) ClockLimit(clockLimit interface{}) ApiChallengeCreateRequest

Clock initial time in seconds. If empty, a correspondence game is created.

func (ApiChallengeCreateRequest) Color

func (r ApiChallengeCreateRequest) Color(color interface{}) ApiChallengeCreateRequest

Which color you get to play

func (ApiChallengeCreateRequest) Days

func (r ApiChallengeCreateRequest) Days(days interface{}) ApiChallengeCreateRequest

Days per move, for correspondence games. Clock settings must be omitted.

func (ApiChallengeCreateRequest) Execute

func (ApiChallengeCreateRequest) Fen

Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated. Castling moves will use UCI_Chess960 notation, for example e1h1 instead of e1g1.

func (ApiChallengeCreateRequest) KeepAliveStream

func (r ApiChallengeCreateRequest) KeepAliveStream(keepAliveStream interface{}) ApiChallengeCreateRequest

If set, the response is streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON). The challenge is kept alive until the connection is closed by the client. When the challenge is accepted, declined or canceled, a message of the form &#x60;{\\\&quot;done\\\&quot;:\\\&quot;accepted\\\&quot;}&#x60; is sent, then the connection is closed by the server. If not set, the response is not streamed, and the challenge expires after 20s if not accepted.

func (ApiChallengeCreateRequest) Message

func (r ApiChallengeCreateRequest) Message(message interface{}) ApiChallengeCreateRequest

**Only if &#x60;acceptByToken&#x60; is set.** Message that is sent to each player, when the game is created. It is sent from your user account. &#x60;{opponent}&#x60;, &#x60;{player}&#x60; and &#x60;{game}&#x60; are placeholders that will be replaced with the opponent name, player name, and the game URLs. You can omit this field to send the default message, but if you set your own message, it must at least contain the &#x60;{game}&#x60; placeholder.

func (ApiChallengeCreateRequest) Rated

func (r ApiChallengeCreateRequest) Rated(rated interface{}) ApiChallengeCreateRequest

Game is rated and impacts players ratings

func (ApiChallengeCreateRequest) Rules

func (r ApiChallengeCreateRequest) Rules(rules interface{}) ApiChallengeCreateRequest

Extra game rules separated by commas. Example: &#x60;noAbort,noRematch&#x60;

func (ApiChallengeCreateRequest) Variant

type ApiChallengeDeclineRequest

type ApiChallengeDeclineRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeDeclineRequest) Execute

func (r ApiChallengeDeclineRequest) Execute() (*Ok, *http.Response, error)

func (ApiChallengeDeclineRequest) Reason

func (r ApiChallengeDeclineRequest) Reason(reason interface{}) ApiChallengeDeclineRequest

Reason challenge was declined. It will be translated to the player&#39;s language. See [the full list in the translation file](https://github.com/ornicar/lila/blob/master/translation/source/challenge.xml#L14).

type ApiChallengeListRequest

type ApiChallengeListRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeListRequest) Execute

type ApiChallengeOpenRequest

type ApiChallengeOpenRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeOpenRequest) ClockIncrement

func (r ApiChallengeOpenRequest) ClockIncrement(clockIncrement interface{}) ApiChallengeOpenRequest

Clock increment in seconds. If empty, a correspondence game is created.

func (ApiChallengeOpenRequest) ClockLimit

func (r ApiChallengeOpenRequest) ClockLimit(clockLimit interface{}) ApiChallengeOpenRequest

Clock initial time in seconds. If empty, a correspondence game is created.

func (ApiChallengeOpenRequest) Days

func (r ApiChallengeOpenRequest) Days(days interface{}) ApiChallengeOpenRequest

Days per turn. For correspondence challenges.

func (ApiChallengeOpenRequest) Execute

func (r ApiChallengeOpenRequest) Execute() (interface{}, *http.Response, error)

func (ApiChallengeOpenRequest) Fen

func (r ApiChallengeOpenRequest) Fen(fen interface{}) ApiChallengeOpenRequest

Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.

func (ApiChallengeOpenRequest) Name

func (r ApiChallengeOpenRequest) Name(name interface{}) ApiChallengeOpenRequest

Optional name for the challenge, that players will see on the challenge page.

func (ApiChallengeOpenRequest) Rated

func (r ApiChallengeOpenRequest) Rated(rated interface{}) ApiChallengeOpenRequest

Game is rated and impacts players ratings

func (ApiChallengeOpenRequest) Rules

func (r ApiChallengeOpenRequest) Rules(rules interface{}) ApiChallengeOpenRequest

Extra game rules separated by commas. Example: &#x60;noAbort,noRematch&#x60;

func (ApiChallengeOpenRequest) Users

func (r ApiChallengeOpenRequest) Users(users interface{}) ApiChallengeOpenRequest

Optional pair of usernames, separated by a comma. If set, only these users will be allowed to join the game. The first username gets the white pieces. Example: &#x60;Username1,Username2&#x60;

func (ApiChallengeOpenRequest) Variant

type ApiChallengeStartClocksRequest

type ApiChallengeStartClocksRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiChallengeStartClocksRequest) Execute

func (ApiChallengeStartClocksRequest) Token1

OAuth token of a player

func (ApiChallengeStartClocksRequest) Token2

OAuth token of the other player

type ApiExternalEngineAcquire200Response

type ApiExternalEngineAcquire200Response struct {
	Id     interface{}        `json:"id"`
	Work   ExternalEngineWork `json:"work"`
	Engine ExternalEngine     `json:"engine"`
}

ApiExternalEngineAcquire200Response struct for ApiExternalEngineAcquire200Response

func NewApiExternalEngineAcquire200Response

func NewApiExternalEngineAcquire200Response(id interface{}, work ExternalEngineWork, engine ExternalEngine) *ApiExternalEngineAcquire200Response

NewApiExternalEngineAcquire200Response instantiates a new ApiExternalEngineAcquire200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiExternalEngineAcquire200ResponseWithDefaults

func NewApiExternalEngineAcquire200ResponseWithDefaults() *ApiExternalEngineAcquire200Response

NewApiExternalEngineAcquire200ResponseWithDefaults instantiates a new ApiExternalEngineAcquire200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiExternalEngineAcquire200Response) GetEngine

GetEngine returns the Engine field value

func (*ApiExternalEngineAcquire200Response) GetEngineOk

GetEngineOk returns a tuple with the Engine field value and a boolean to check if the value has been set.

func (*ApiExternalEngineAcquire200Response) GetId

func (o *ApiExternalEngineAcquire200Response) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAcquire200Response) GetIdOk

func (o *ApiExternalEngineAcquire200Response) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAcquire200Response) GetWork

GetWork returns the Work field value

func (*ApiExternalEngineAcquire200Response) GetWorkOk

GetWorkOk returns a tuple with the Work field value and a boolean to check if the value has been set.

func (ApiExternalEngineAcquire200Response) MarshalJSON

func (o ApiExternalEngineAcquire200Response) MarshalJSON() ([]byte, error)

func (*ApiExternalEngineAcquire200Response) SetEngine

SetEngine sets field value

func (*ApiExternalEngineAcquire200Response) SetId

func (o *ApiExternalEngineAcquire200Response) SetId(v interface{})

SetId sets field value

func (*ApiExternalEngineAcquire200Response) SetWork

SetWork sets field value

type ApiExternalEngineAcquireRequest

type ApiExternalEngineAcquireRequest struct {
	ProviderSecret interface{} `json:"providerSecret,omitempty"`
}

ApiExternalEngineAcquireRequest struct for ApiExternalEngineAcquireRequest

func NewApiExternalEngineAcquireRequest

func NewApiExternalEngineAcquireRequest() *ApiExternalEngineAcquireRequest

NewApiExternalEngineAcquireRequest instantiates a new ApiExternalEngineAcquireRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiExternalEngineAcquireRequestWithDefaults

func NewApiExternalEngineAcquireRequestWithDefaults() *ApiExternalEngineAcquireRequest

NewApiExternalEngineAcquireRequestWithDefaults instantiates a new ApiExternalEngineAcquireRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiExternalEngineAcquireRequest) GetProviderSecret

func (o *ApiExternalEngineAcquireRequest) GetProviderSecret() interface{}

GetProviderSecret returns the ProviderSecret field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiExternalEngineAcquireRequest) GetProviderSecretOk

func (o *ApiExternalEngineAcquireRequest) GetProviderSecretOk() (*interface{}, bool)

GetProviderSecretOk returns a tuple with the ProviderSecret field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAcquireRequest) HasProviderSecret

func (o *ApiExternalEngineAcquireRequest) HasProviderSecret() bool

HasProviderSecret returns a boolean if a field has been set.

func (ApiExternalEngineAcquireRequest) MarshalJSON

func (o ApiExternalEngineAcquireRequest) MarshalJSON() ([]byte, error)

func (*ApiExternalEngineAcquireRequest) SetProviderSecret

func (o *ApiExternalEngineAcquireRequest) SetProviderSecret(v interface{})

SetProviderSecret gets a reference to the given interface{} and assigns it to the ProviderSecret field.

type ApiExternalEngineAnalyse200Response

type ApiExternalEngineAnalyse200Response struct {
	// Number of milliseconds the search has been going on
	Time interface{} `json:"time"`
	// Current search depth
	Depth interface{} `json:"depth"`
	// Number of nodes visited so far
	Nodes interface{} `json:"nodes"`
	// Information about up to 5 pvs, with the primary pv at index 0.
	Pvs []ApiExternalEngineAnalyse200ResponsePvsInner `json:"pvs"`
}

ApiExternalEngineAnalyse200Response struct for ApiExternalEngineAnalyse200Response

func NewApiExternalEngineAnalyse200Response

func NewApiExternalEngineAnalyse200Response(time interface{}, depth interface{}, nodes interface{}, pvs []ApiExternalEngineAnalyse200ResponsePvsInner) *ApiExternalEngineAnalyse200Response

NewApiExternalEngineAnalyse200Response instantiates a new ApiExternalEngineAnalyse200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiExternalEngineAnalyse200ResponseWithDefaults

func NewApiExternalEngineAnalyse200ResponseWithDefaults() *ApiExternalEngineAnalyse200Response

NewApiExternalEngineAnalyse200ResponseWithDefaults instantiates a new ApiExternalEngineAnalyse200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiExternalEngineAnalyse200Response) GetDepth

func (o *ApiExternalEngineAnalyse200Response) GetDepth() interface{}

GetDepth returns the Depth field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAnalyse200Response) GetDepthOk

func (o *ApiExternalEngineAnalyse200Response) GetDepthOk() (*interface{}, bool)

GetDepthOk returns a tuple with the Depth field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyse200Response) GetNodes

func (o *ApiExternalEngineAnalyse200Response) GetNodes() interface{}

GetNodes returns the Nodes field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAnalyse200Response) GetNodesOk

func (o *ApiExternalEngineAnalyse200Response) GetNodesOk() (*interface{}, bool)

GetNodesOk returns a tuple with the Nodes field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyse200Response) GetPvs

GetPvs returns the Pvs field value

func (*ApiExternalEngineAnalyse200Response) GetPvsOk

GetPvsOk returns a tuple with the Pvs field value and a boolean to check if the value has been set.

func (*ApiExternalEngineAnalyse200Response) GetTime

func (o *ApiExternalEngineAnalyse200Response) GetTime() interface{}

GetTime returns the Time field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAnalyse200Response) GetTimeOk

func (o *ApiExternalEngineAnalyse200Response) GetTimeOk() (*interface{}, bool)

GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (ApiExternalEngineAnalyse200Response) MarshalJSON

func (o ApiExternalEngineAnalyse200Response) MarshalJSON() ([]byte, error)

func (*ApiExternalEngineAnalyse200Response) SetDepth

func (o *ApiExternalEngineAnalyse200Response) SetDepth(v interface{})

SetDepth sets field value

func (*ApiExternalEngineAnalyse200Response) SetNodes

func (o *ApiExternalEngineAnalyse200Response) SetNodes(v interface{})

SetNodes sets field value

func (*ApiExternalEngineAnalyse200Response) SetPvs

SetPvs sets field value

func (*ApiExternalEngineAnalyse200Response) SetTime

func (o *ApiExternalEngineAnalyse200Response) SetTime(v interface{})

SetTime sets field value

type ApiExternalEngineAnalyse200ResponsePvsInner

type ApiExternalEngineAnalyse200ResponsePvsInner struct {
	// Current search depth of the pv
	Depth interface{} `json:"depth"`
	// Evaluation in centi-pawns, from White's point of view
	Cp interface{} `json:"cp,omitempty"`
	// Evaluation in signed moves to mate, from White's point of view
	Mate interface{} `json:"mate,omitempty"`
	// Variation in UCI notation
	Moves []interface{} `json:"moves"`
}

ApiExternalEngineAnalyse200ResponsePvsInner struct for ApiExternalEngineAnalyse200ResponsePvsInner

func NewApiExternalEngineAnalyse200ResponsePvsInner

func NewApiExternalEngineAnalyse200ResponsePvsInner(depth interface{}, moves []interface{}) *ApiExternalEngineAnalyse200ResponsePvsInner

NewApiExternalEngineAnalyse200ResponsePvsInner instantiates a new ApiExternalEngineAnalyse200ResponsePvsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiExternalEngineAnalyse200ResponsePvsInnerWithDefaults

func NewApiExternalEngineAnalyse200ResponsePvsInnerWithDefaults() *ApiExternalEngineAnalyse200ResponsePvsInner

NewApiExternalEngineAnalyse200ResponsePvsInnerWithDefaults instantiates a new ApiExternalEngineAnalyse200ResponsePvsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetCp

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetCp() interface{}

GetCp returns the Cp field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetCpOk

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetCpOk() (*interface{}, bool)

GetCpOk returns a tuple with the Cp field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetDepth

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetDepth() interface{}

GetDepth returns the Depth field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetDepthOk

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetDepthOk() (*interface{}, bool)

GetDepthOk returns a tuple with the Depth field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetMate

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetMate() interface{}

GetMate returns the Mate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetMateOk

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetMateOk() (*interface{}, bool)

GetMateOk returns a tuple with the Mate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetMoves

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetMoves() []interface{}

GetMoves returns the Moves field value

func (*ApiExternalEngineAnalyse200ResponsePvsInner) GetMovesOk

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) GetMovesOk() ([]interface{}, bool)

GetMovesOk returns a tuple with the Moves field value and a boolean to check if the value has been set.

func (*ApiExternalEngineAnalyse200ResponsePvsInner) HasCp

HasCp returns a boolean if a field has been set.

func (*ApiExternalEngineAnalyse200ResponsePvsInner) HasMate

HasMate returns a boolean if a field has been set.

func (ApiExternalEngineAnalyse200ResponsePvsInner) MarshalJSON

func (*ApiExternalEngineAnalyse200ResponsePvsInner) SetCp

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) SetCp(v interface{})

SetCp gets a reference to the given interface{} and assigns it to the Cp field.

func (*ApiExternalEngineAnalyse200ResponsePvsInner) SetDepth

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) SetDepth(v interface{})

SetDepth sets field value

func (*ApiExternalEngineAnalyse200ResponsePvsInner) SetMate

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) SetMate(v interface{})

SetMate gets a reference to the given interface{} and assigns it to the Mate field.

func (*ApiExternalEngineAnalyse200ResponsePvsInner) SetMoves

func (o *ApiExternalEngineAnalyse200ResponsePvsInner) SetMoves(v []interface{})

SetMoves sets field value

type ApiExternalEngineAnalyseRequest

type ApiExternalEngineAnalyseRequest struct {
	ClientSecret interface{}        `json:"clientSecret"`
	Work         ExternalEngineWork `json:"work"`
}

ApiExternalEngineAnalyseRequest struct for ApiExternalEngineAnalyseRequest

func NewApiExternalEngineAnalyseRequest

func NewApiExternalEngineAnalyseRequest(clientSecret interface{}, work ExternalEngineWork) *ApiExternalEngineAnalyseRequest

NewApiExternalEngineAnalyseRequest instantiates a new ApiExternalEngineAnalyseRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiExternalEngineAnalyseRequestWithDefaults

func NewApiExternalEngineAnalyseRequestWithDefaults() *ApiExternalEngineAnalyseRequest

NewApiExternalEngineAnalyseRequestWithDefaults instantiates a new ApiExternalEngineAnalyseRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiExternalEngineAnalyseRequest) GetClientSecret

func (o *ApiExternalEngineAnalyseRequest) GetClientSecret() interface{}

GetClientSecret returns the ClientSecret field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiExternalEngineAnalyseRequest) GetClientSecretOk

func (o *ApiExternalEngineAnalyseRequest) GetClientSecretOk() (*interface{}, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiExternalEngineAnalyseRequest) GetWork

GetWork returns the Work field value

func (*ApiExternalEngineAnalyseRequest) GetWorkOk

GetWorkOk returns a tuple with the Work field value and a boolean to check if the value has been set.

func (ApiExternalEngineAnalyseRequest) MarshalJSON

func (o ApiExternalEngineAnalyseRequest) MarshalJSON() ([]byte, error)

func (*ApiExternalEngineAnalyseRequest) SetClientSecret

func (o *ApiExternalEngineAnalyseRequest) SetClientSecret(v interface{})

SetClientSecret sets field value

func (*ApiExternalEngineAnalyseRequest) SetWork

SetWork sets field value

type ApiFollowUserRequest

type ApiFollowUserRequest struct {
	ApiService *RelationsApiService
	// contains filtered or unexported fields
}

func (ApiFollowUserRequest) Execute

func (r ApiFollowUserRequest) Execute() (*Ok, *http.Response, error)

type ApiGameImportRequest

type ApiGameImportRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGameImportRequest) Execute

func (r ApiGameImportRequest) Execute() (interface{}, *http.Response, error)

func (ApiGameImportRequest) Pgn

func (r ApiGameImportRequest) Pgn(pgn interface{}) ApiGameImportRequest

The PGN. It can contain only one game. Most standard tags are supported.

type ApiGamePgnRequest

type ApiGamePgnRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGamePgnRequest) Clocks

func (r ApiGamePgnRequest) Clocks(clocks interface{}) ApiGamePgnRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiGamePgnRequest) Evals

func (r ApiGamePgnRequest) Evals(evals interface{}) ApiGamePgnRequest

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiGamePgnRequest) Execute

func (r ApiGamePgnRequest) Execute() (interface{}, *http.Response, error)

func (ApiGamePgnRequest) Literate

func (r ApiGamePgnRequest) Literate(literate interface{}) ApiGamePgnRequest

Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination. Example: &#x60;5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)&#x60;

func (ApiGamePgnRequest) Moves

func (r ApiGamePgnRequest) Moves(moves interface{}) ApiGamePgnRequest

Include the PGN moves.

func (ApiGamePgnRequest) Opening

func (r ApiGamePgnRequest) Opening(opening interface{}) ApiGamePgnRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiGamePgnRequest) PgnInJson

func (r ApiGamePgnRequest) PgnInJson(pgnInJson interface{}) ApiGamePgnRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiGamePgnRequest) Players

func (r ApiGamePgnRequest) Players(players interface{}) ApiGamePgnRequest

URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN. Example: &lt;https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt&gt;

func (ApiGamePgnRequest) Tags

func (r ApiGamePgnRequest) Tags(tags interface{}) ApiGamePgnRequest

Include the PGN tags.

type ApiGamesByIdsAddRequest

type ApiGamesByIdsAddRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGamesByIdsAddRequest) Body

func (r ApiGamesByIdsAddRequest) Body(body interface{}) ApiGamesByIdsAddRequest

Up to 500 or 1000 game IDs separated by commas. Example: &#x60;gameId04,gameId05,gameId06&#x60;

func (ApiGamesByIdsAddRequest) Execute

func (r ApiGamesByIdsAddRequest) Execute() (*Ok, *http.Response, error)

type ApiGamesByIdsRequest

type ApiGamesByIdsRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGamesByIdsRequest) Body

func (r ApiGamesByIdsRequest) Body(body interface{}) ApiGamesByIdsRequest

Up to 500 or 1000 game IDs separated by commas. Example: &#x60;gameId01,gameId02,gameId03&#x60;

func (ApiGamesByIdsRequest) Execute

func (r ApiGamesByIdsRequest) Execute() (interface{}, *http.Response, error)

type ApiGamesBySwissRequest

type ApiGamesBySwissRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiGamesBySwissRequest) Clocks

func (r ApiGamesBySwissRequest) Clocks(clocks interface{}) ApiGamesBySwissRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiGamesBySwissRequest) Evals

func (r ApiGamesBySwissRequest) Evals(evals interface{}) ApiGamesBySwissRequest

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiGamesBySwissRequest) Execute

func (r ApiGamesBySwissRequest) Execute() (interface{}, *http.Response, error)

func (ApiGamesBySwissRequest) Moves

func (r ApiGamesBySwissRequest) Moves(moves interface{}) ApiGamesBySwissRequest

Include the PGN moves.

func (ApiGamesBySwissRequest) Opening

func (r ApiGamesBySwissRequest) Opening(opening interface{}) ApiGamesBySwissRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiGamesBySwissRequest) PgnInJson

func (r ApiGamesBySwissRequest) PgnInJson(pgnInJson interface{}) ApiGamesBySwissRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiGamesBySwissRequest) Tags

func (r ApiGamesBySwissRequest) Tags(tags interface{}) ApiGamesBySwissRequest

Include the PGN tags.

type ApiGamesByTournamentRequest

type ApiGamesByTournamentRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiGamesByTournamentRequest) Clocks

func (r ApiGamesByTournamentRequest) Clocks(clocks interface{}) ApiGamesByTournamentRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiGamesByTournamentRequest) Evals

func (r ApiGamesByTournamentRequest) Evals(evals interface{}) ApiGamesByTournamentRequest

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiGamesByTournamentRequest) Execute

func (r ApiGamesByTournamentRequest) Execute() (interface{}, *http.Response, error)

func (ApiGamesByTournamentRequest) Moves

func (r ApiGamesByTournamentRequest) Moves(moves interface{}) ApiGamesByTournamentRequest

Include the PGN moves.

func (ApiGamesByTournamentRequest) Opening

func (r ApiGamesByTournamentRequest) Opening(opening interface{}) ApiGamesByTournamentRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiGamesByTournamentRequest) PgnInJson

func (r ApiGamesByTournamentRequest) PgnInJson(pgnInJson interface{}) ApiGamesByTournamentRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiGamesByTournamentRequest) Player

func (r ApiGamesByTournamentRequest) Player(player interface{}) ApiGamesByTournamentRequest

Only games of a particular player. Leave empty to fetch games of all players.

func (ApiGamesByTournamentRequest) Tags

Include the PGN tags.

type ApiGamesByUsersRequest

type ApiGamesByUsersRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGamesByUsersRequest) Body

func (r ApiGamesByUsersRequest) Body(body interface{}) ApiGamesByUsersRequest

Up to 300 user IDs separated by commas. Example: &#x60;aliquantus,chess-network,lovlas&#x60;

func (ApiGamesByUsersRequest) Execute

func (r ApiGamesByUsersRequest) Execute() (interface{}, *http.Response, error)

func (ApiGamesByUsersRequest) WithCurrentGames

func (r ApiGamesByUsersRequest) WithCurrentGames(withCurrentGames interface{}) ApiGamesByUsersRequest

Include the already started games at the beginning of the stream.

type ApiGamesExportIdsRequest

type ApiGamesExportIdsRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiGamesExportIdsRequest) Body

func (r ApiGamesExportIdsRequest) Body(body interface{}) ApiGamesExportIdsRequest

Game IDs separated by commas. Up to 300.

func (ApiGamesExportIdsRequest) Clocks

func (r ApiGamesExportIdsRequest) Clocks(clocks interface{}) ApiGamesExportIdsRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiGamesExportIdsRequest) Evals

func (r ApiGamesExportIdsRequest) Evals(evals interface{}) ApiGamesExportIdsRequest

Include analysis evaluation comments in the PGN, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { [%eval -1.09] }&#x60;

func (ApiGamesExportIdsRequest) Execute

func (r ApiGamesExportIdsRequest) Execute() (interface{}, *http.Response, error)

func (ApiGamesExportIdsRequest) Literate

func (r ApiGamesExportIdsRequest) Literate(literate interface{}) ApiGamesExportIdsRequest

Insert textual annotations in the PGN about the opening, analysis variations, mistakes, and game termination. Example: &#x60;5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)&#x60;

func (ApiGamesExportIdsRequest) Moves

func (r ApiGamesExportIdsRequest) Moves(moves interface{}) ApiGamesExportIdsRequest

Include the PGN moves.

func (ApiGamesExportIdsRequest) Opening

func (r ApiGamesExportIdsRequest) Opening(opening interface{}) ApiGamesExportIdsRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiGamesExportIdsRequest) PgnInJson

func (r ApiGamesExportIdsRequest) PgnInJson(pgnInJson interface{}) ApiGamesExportIdsRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiGamesExportIdsRequest) Players

func (r ApiGamesExportIdsRequest) Players(players interface{}) ApiGamesExportIdsRequest

URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN. Example: &lt;https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt&gt;

func (ApiGamesExportIdsRequest) Tags

func (r ApiGamesExportIdsRequest) Tags(tags interface{}) ApiGamesExportIdsRequest

Include the PGN tags.

type ApiInboxUsernameRequest

type ApiInboxUsernameRequest struct {
	ApiService *MessagingApiService
	// contains filtered or unexported fields
}

func (ApiInboxUsernameRequest) Execute

func (r ApiInboxUsernameRequest) Execute() (*Ok, *http.Response, error)

func (ApiInboxUsernameRequest) Text

func (r ApiInboxUsernameRequest) Text(text interface{}) ApiInboxUsernameRequest

type ApiOauthRequest

type ApiOauthRequest struct {
	ApiService *OAuthApiService
	// contains filtered or unexported fields
}

func (ApiOauthRequest) ClientId

func (r ApiOauthRequest) ClientId(clientId interface{}) ApiOauthRequest

Arbitrary identifier that uniquely identifies your application.

func (ApiOauthRequest) CodeChallenge

func (r ApiOauthRequest) CodeChallenge(codeChallenge interface{}) ApiOauthRequest

Compute &#x60;BASE64URL(SHA256(code_verifier))&#x60;.

func (ApiOauthRequest) CodeChallengeMethod

func (r ApiOauthRequest) CodeChallengeMethod(codeChallengeMethod interface{}) ApiOauthRequest

Must be &#x60;S256&#x60;.

func (ApiOauthRequest) Execute

func (r ApiOauthRequest) Execute() (*http.Response, error)

func (ApiOauthRequest) RedirectUri

func (r ApiOauthRequest) RedirectUri(redirectUri interface{}) ApiOauthRequest

The absolute URL that the user should be redirected to with the authorization result.

func (ApiOauthRequest) ResponseType

func (r ApiOauthRequest) ResponseType(responseType interface{}) ApiOauthRequest

Must be &#x60;code&#x60;.

func (ApiOauthRequest) Scope

func (r ApiOauthRequest) Scope(scope interface{}) ApiOauthRequest

Space separated list of requested OAuth scopes, if any.

func (ApiOauthRequest) State

func (r ApiOauthRequest) State(state interface{}) ApiOauthRequest

Arbitrary state that will be returned verbatim with the authorization result.

func (ApiOauthRequest) Username

func (r ApiOauthRequest) Username(username interface{}) ApiOauthRequest

Hint that you want the user to log in with a specific Lichess username.

type ApiOpeningExplorerLichessHistoryRequest

type ApiOpeningExplorerLichessHistoryRequest struct {
	ApiService *OpeningExplorerApiService
	// contains filtered or unexported fields
}

func (ApiOpeningExplorerLichessHistoryRequest) Execute

func (r ApiOpeningExplorerLichessHistoryRequest) Execute() (interface{}, *http.Response, error)

func (ApiOpeningExplorerLichessHistoryRequest) Fen

FEN of the root position

func (ApiOpeningExplorerLichessHistoryRequest) Play

Comma separated sequence of legal moves in UCI notation. Play additional moves starting from &#x60;fen&#x60;. Required to find an opening name, if &#x60;fen&#x60; is not an exact match for a named position.

func (ApiOpeningExplorerLichessHistoryRequest) Ratings

Comma separated list of rating groups, ranging from their value to the next higher group

func (ApiOpeningExplorerLichessHistoryRequest) Since

Include only games from this month or later

func (ApiOpeningExplorerLichessHistoryRequest) Speeds

Comma separated list of game speeds to look for

func (ApiOpeningExplorerLichessHistoryRequest) Until

Include only games from this month or earlier

func (ApiOpeningExplorerLichessHistoryRequest) Variant

Variant

type ApiOpeningExplorerLichessRequest

type ApiOpeningExplorerLichessRequest struct {
	ApiService *OpeningExplorerApiService
	// contains filtered or unexported fields
}

func (ApiOpeningExplorerLichessRequest) Execute

func (r ApiOpeningExplorerLichessRequest) Execute() (interface{}, *http.Response, error)

func (ApiOpeningExplorerLichessRequest) Fen

FEN of the root position

func (ApiOpeningExplorerLichessRequest) Moves

Number of most common moves to display

func (ApiOpeningExplorerLichessRequest) Play

Comma separated sequence of legal moves in UCI notation. Play additional moves starting from &#x60;fen&#x60;. Required to find an opening name, if &#x60;fen&#x60; is not an exact match for a named position.

func (ApiOpeningExplorerLichessRequest) Ratings

func (r ApiOpeningExplorerLichessRequest) Ratings(ratings []interface{}) ApiOpeningExplorerLichessRequest

Comma separated list of rating groups, ranging from their value to the next higher group

func (ApiOpeningExplorerLichessRequest) RecentGames

func (r ApiOpeningExplorerLichessRequest) RecentGames(recentGames interface{}) ApiOpeningExplorerLichessRequest

Number of recent games to display

func (ApiOpeningExplorerLichessRequest) Since

Include only games from this month or later

func (ApiOpeningExplorerLichessRequest) Speeds

Comma separated list of game speeds to look for

func (ApiOpeningExplorerLichessRequest) TopGames

func (r ApiOpeningExplorerLichessRequest) TopGames(topGames interface{}) ApiOpeningExplorerLichessRequest

Number of top games to display

func (ApiOpeningExplorerLichessRequest) Until

Include only games from this month or earlier

func (ApiOpeningExplorerLichessRequest) Variant

Variant

type ApiOpeningExplorerMasterGameRequest

type ApiOpeningExplorerMasterGameRequest struct {
	ApiService *OpeningExplorerApiService
	// contains filtered or unexported fields
}

func (ApiOpeningExplorerMasterGameRequest) Execute

func (r ApiOpeningExplorerMasterGameRequest) Execute() (interface{}, *http.Response, error)

type ApiOpeningExplorerMasterRequest

type ApiOpeningExplorerMasterRequest struct {
	ApiService *OpeningExplorerApiService
	// contains filtered or unexported fields
}

func (ApiOpeningExplorerMasterRequest) Execute

func (r ApiOpeningExplorerMasterRequest) Execute() (interface{}, *http.Response, error)

func (ApiOpeningExplorerMasterRequest) Fen

FEN of the root position

func (ApiOpeningExplorerMasterRequest) Moves

Number of most common moves to display

func (ApiOpeningExplorerMasterRequest) Play

Comma separated sequence of legal moves in UCI notation. Play additional moves starting from &#x60;fen&#x60;. Required to find an opening name, if &#x60;fen&#x60; is not an exact match for a named position.

func (ApiOpeningExplorerMasterRequest) Since

Include only games from this year or later

func (ApiOpeningExplorerMasterRequest) TopGames

func (r ApiOpeningExplorerMasterRequest) TopGames(topGames interface{}) ApiOpeningExplorerMasterRequest

Number of top games to display

func (ApiOpeningExplorerMasterRequest) Until

Include only games from this year or earlier

type ApiOpeningExplorerPlayerRequest

type ApiOpeningExplorerPlayerRequest struct {
	ApiService *OpeningExplorerApiService
	// contains filtered or unexported fields
}

func (ApiOpeningExplorerPlayerRequest) Execute

func (r ApiOpeningExplorerPlayerRequest) Execute() (interface{}, *http.Response, error)

func (ApiOpeningExplorerPlayerRequest) Fen

FEN of the root position

func (ApiOpeningExplorerPlayerRequest) Modes

Comma separated list of modes

func (ApiOpeningExplorerPlayerRequest) Moves

Number of most common moves to display

func (ApiOpeningExplorerPlayerRequest) Play

Comma separated sequence of legal moves in UCI notation. Play additional moves starting from &#x60;fen&#x60;. Required to find an opening name, if &#x60;fen&#x60; is not an exact match for a named position.

func (ApiOpeningExplorerPlayerRequest) Player

Username or ID of the player

func (ApiOpeningExplorerPlayerRequest) RecentGames

func (r ApiOpeningExplorerPlayerRequest) RecentGames(recentGames interface{}) ApiOpeningExplorerPlayerRequest

Number of recent games to display

func (ApiOpeningExplorerPlayerRequest) Since

Include only games from this month or later

func (ApiOpeningExplorerPlayerRequest) Speeds

Comma separated list of game speeds to look for

func (ApiOpeningExplorerPlayerRequest) Until

Include only games from this month or earlier

func (ApiOpeningExplorerPlayerRequest) Variant

Variant

type ApiPlayerRequest

type ApiPlayerRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiPlayerRequest) Execute

func (r ApiPlayerRequest) Execute() (interface{}, *http.Response, error)

type ApiPlayerTopNbPerfTypeRequest

type ApiPlayerTopNbPerfTypeRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiPlayerTopNbPerfTypeRequest) Execute

func (r ApiPlayerTopNbPerfTypeRequest) Execute() (interface{}, *http.Response, error)

type ApiRacerPostRequest

type ApiRacerPostRequest struct {
	ApiService *PuzzlesApiService
	// contains filtered or unexported fields
}

func (ApiRacerPostRequest) Execute

func (r ApiRacerPostRequest) Execute() (interface{}, *http.Response, error)

type ApiResultsBySwissRequest

type ApiResultsBySwissRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiResultsBySwissRequest) Execute

func (r ApiResultsBySwissRequest) Execute() (interface{}, *http.Response, error)

func (ApiResultsBySwissRequest) Nb

Max number of players to fetch

type ApiResultsByTournamentRequest

type ApiResultsByTournamentRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiResultsByTournamentRequest) Execute

func (r ApiResultsByTournamentRequest) Execute() (interface{}, *http.Response, error)

func (ApiResultsByTournamentRequest) Nb

Max number of players to fetch

type ApiRoundAddTimeRequest

type ApiRoundAddTimeRequest struct {
	ApiService *ChallengesApiService
	// contains filtered or unexported fields
}

func (ApiRoundAddTimeRequest) Execute

func (r ApiRoundAddTimeRequest) Execute() (*Ok, *http.Response, error)

type ApiStreamGameRequest

type ApiStreamGameRequest struct {
	ApiService *GamesApiService
	// contains filtered or unexported fields
}

func (ApiStreamGameRequest) Execute

func (r ApiStreamGameRequest) Execute() (interface{}, *http.Response, error)

type ApiStreamerLiveRequest

type ApiStreamerLiveRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiStreamerLiveRequest) Execute

func (r ApiStreamerLiveRequest) Execute() ([]LightUser, *http.Response, error)

type ApiStudyAllChaptersPgnRequest

type ApiStudyAllChaptersPgnRequest struct {
	ApiService *StudiesApiService
	// contains filtered or unexported fields
}

func (ApiStudyAllChaptersPgnRequest) Clocks

func (r ApiStudyAllChaptersPgnRequest) Clocks(clocks interface{}) ApiStudyAllChaptersPgnRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiStudyAllChaptersPgnRequest) Comments

func (r ApiStudyAllChaptersPgnRequest) Comments(comments interface{}) ApiStudyAllChaptersPgnRequest

Include analysis and annotator comments in the PGN moves, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { White is in a pickle. }&#x60;

func (ApiStudyAllChaptersPgnRequest) Execute

func (r ApiStudyAllChaptersPgnRequest) Execute() (interface{}, *http.Response, error)

func (ApiStudyAllChaptersPgnRequest) Variations

func (r ApiStudyAllChaptersPgnRequest) Variations(variations interface{}) ApiStudyAllChaptersPgnRequest

Include non-mainline moves, when available. Example: &#x60;4. d4 Bb4+ (4... Nc6 5. Nf3 Bb4+ 6. Bd2 (6. Nbd2 O-O 7. O-O) 6... Bd6) 5. Nd2&#x60;

type ApiStudyChapterPgnRequest

type ApiStudyChapterPgnRequest struct {
	ApiService *StudiesApiService
	// contains filtered or unexported fields
}

func (ApiStudyChapterPgnRequest) Clocks

func (r ApiStudyChapterPgnRequest) Clocks(clocks interface{}) ApiStudyChapterPgnRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiStudyChapterPgnRequest) Comments

func (r ApiStudyChapterPgnRequest) Comments(comments interface{}) ApiStudyChapterPgnRequest

Include analysis and annotator comments in the PGN moves, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { White is in a pickle. }&#x60;

func (ApiStudyChapterPgnRequest) Execute

func (r ApiStudyChapterPgnRequest) Execute() (interface{}, *http.Response, error)

func (ApiStudyChapterPgnRequest) Variations

func (r ApiStudyChapterPgnRequest) Variations(variations interface{}) ApiStudyChapterPgnRequest

Include non-mainline moves, when available. Example: &#x60;4. d4 Bb4+ (4... Nc6 5. Nf3 Bb4+ 6. Bd2 (6. Nbd2 O-O 7. O-O) 6... Bd6) 5. Nd2&#x60;

type ApiStudyExportAllPgnRequest

type ApiStudyExportAllPgnRequest struct {
	ApiService *StudiesApiService
	// contains filtered or unexported fields
}

func (ApiStudyExportAllPgnRequest) Clocks

func (r ApiStudyExportAllPgnRequest) Clocks(clocks interface{}) ApiStudyExportAllPgnRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiStudyExportAllPgnRequest) Comments

func (r ApiStudyExportAllPgnRequest) Comments(comments interface{}) ApiStudyExportAllPgnRequest

Include analysis and annotator comments in the PGN moves, when available. Example: &#x60;12. Bxf6 { [%eval 0.23] } a3 { White is in a pickle. }&#x60;

func (ApiStudyExportAllPgnRequest) Execute

func (r ApiStudyExportAllPgnRequest) Execute() (interface{}, *http.Response, error)

func (ApiStudyExportAllPgnRequest) Variations

func (r ApiStudyExportAllPgnRequest) Variations(variations interface{}) ApiStudyExportAllPgnRequest

Include non-mainline moves, when available. Example: &#x60;4. d4 Bb4+ (4... Nc6 5. Nf3 Bb4+ 6. Bd2 (6. Nbd2 O-O 7. O-O) 6... Bd6) 5. Nd2&#x60;

type ApiSwissRequest

type ApiSwissRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiSwissRequest) Execute

func (r ApiSwissRequest) Execute() (interface{}, *http.Response, error)

type ApiSwissTrfRequest

type ApiSwissTrfRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiSwissTrfRequest) Execute

func (r ApiSwissTrfRequest) Execute() (interface{}, *http.Response, error)

type ApiTablebaseAtomicRequest

type ApiTablebaseAtomicRequest struct {
	ApiService *TablebaseApiService
	// contains filtered or unexported fields
}

func (ApiTablebaseAtomicRequest) Execute

func (r ApiTablebaseAtomicRequest) Execute() (interface{}, *http.Response, error)

type ApiTablebaseStandardRequest

type ApiTablebaseStandardRequest struct {
	ApiService *TablebaseApiService
	// contains filtered or unexported fields
}

func (ApiTablebaseStandardRequest) Execute

func (ApiTablebaseStandardRequest) Fen

FEN of the position. Underscores allowed.

type ApiTeamAllRequest

type ApiTeamAllRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamAllRequest) Execute

func (ApiTeamAllRequest) Page

func (r ApiTeamAllRequest) Page(page interface{}) ApiTeamAllRequest

type ApiTeamIdJoinRequest

type ApiTeamIdJoinRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamIdJoinRequest) Execute

func (r ApiTeamIdJoinRequest) Execute() (*Ok, *http.Response, error)

func (ApiTeamIdJoinRequest) Message

func (r ApiTeamIdJoinRequest) Message(message interface{}) ApiTeamIdJoinRequest

Optional request message, if the team requires one.

func (ApiTeamIdJoinRequest) Password

func (r ApiTeamIdJoinRequest) Password(password interface{}) ApiTeamIdJoinRequest

Optional password, if the team requires one.

type ApiTeamIdKickUserIdRequest

type ApiTeamIdKickUserIdRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamIdKickUserIdRequest) Execute

func (r ApiTeamIdKickUserIdRequest) Execute() (*Ok, *http.Response, error)

type ApiTeamIdPmAllRequest

type ApiTeamIdPmAllRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamIdPmAllRequest) Execute

func (r ApiTeamIdPmAllRequest) Execute() (*Ok, *http.Response, error)

func (ApiTeamIdPmAllRequest) Message

func (r ApiTeamIdPmAllRequest) Message(message interface{}) ApiTeamIdPmAllRequest

The message to send to all your team members.

type ApiTeamIdQuitRequest

type ApiTeamIdQuitRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamIdQuitRequest) Execute

func (r ApiTeamIdQuitRequest) Execute() (*Ok, *http.Response, error)

type ApiTeamOfUsernameRequest

type ApiTeamOfUsernameRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamOfUsernameRequest) Execute

func (r ApiTeamOfUsernameRequest) Execute() (interface{}, *http.Response, error)

type ApiTeamRequestAcceptRequest

type ApiTeamRequestAcceptRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamRequestAcceptRequest) Execute

func (r ApiTeamRequestAcceptRequest) Execute() (*Ok, *http.Response, error)

type ApiTeamRequestDeclineRequest

type ApiTeamRequestDeclineRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamRequestDeclineRequest) Execute

type ApiTeamRequestsRequest

type ApiTeamRequestsRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamRequestsRequest) Execute

type ApiTeamSearchRequest

type ApiTeamSearchRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamSearchRequest) Execute

func (r ApiTeamSearchRequest) Execute() (interface{}, *http.Response, error)

func (ApiTeamSearchRequest) Page

func (r ApiTeamSearchRequest) Page(page interface{}) ApiTeamSearchRequest

func (ApiTeamSearchRequest) Text

func (r ApiTeamSearchRequest) Text(text interface{}) ApiTeamSearchRequest

type ApiTeamShowRequest

type ApiTeamShowRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiTeamShowRequest) Execute

func (r ApiTeamShowRequest) Execute() (*Team, *http.Response, error)

type ApiTeamsByTournamentRequest

type ApiTeamsByTournamentRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiTeamsByTournamentRequest) Execute

func (r ApiTeamsByTournamentRequest) Execute() (interface{}, *http.Response, error)

type ApiTokenTestRequest

type ApiTokenTestRequest struct {
	ApiService *OAuthApiService
	// contains filtered or unexported fields
}

func (ApiTokenTestRequest) Body

func (r ApiTokenTestRequest) Body(body interface{}) ApiTokenTestRequest

OAuth tokens separated by commas. Up to 1000.

func (ApiTokenTestRequest) Execute

func (r ApiTokenTestRequest) Execute() ([]map[string]interface{}, *http.Response, error)

type ApiTournamentRequest

type ApiTournamentRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ApiTournamentRequest) Execute

func (r ApiTournamentRequest) Execute() (interface{}, *http.Response, error)

func (ApiTournamentRequest) Page

func (r ApiTournamentRequest) Page(page interface{}) ApiTournamentRequest

Specify which page of player standings to view.

type ApiTvChannelGamesRequest

type ApiTvChannelGamesRequest struct {
	ApiService *TVApiService
	// contains filtered or unexported fields
}

func (ApiTvChannelGamesRequest) Clocks

func (r ApiTvChannelGamesRequest) Clocks(clocks interface{}) ApiTvChannelGamesRequest

Include clock comments in the PGN moves, when available. Example: &#x60;2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }&#x60;

func (ApiTvChannelGamesRequest) Execute

func (r ApiTvChannelGamesRequest) Execute() (interface{}, *http.Response, error)

func (ApiTvChannelGamesRequest) Moves

func (r ApiTvChannelGamesRequest) Moves(moves interface{}) ApiTvChannelGamesRequest

Include the PGN moves.

func (ApiTvChannelGamesRequest) Nb

Number of games to fetch.

func (ApiTvChannelGamesRequest) Opening

func (r ApiTvChannelGamesRequest) Opening(opening interface{}) ApiTvChannelGamesRequest

Include the opening name. Example: &#x60;[Opening \&quot;King&#39;s Gambit Accepted, King&#39;s Knight Gambit\&quot;]&#x60;

func (ApiTvChannelGamesRequest) PgnInJson

func (r ApiTvChannelGamesRequest) PgnInJson(pgnInJson interface{}) ApiTvChannelGamesRequest

Include the full PGN within the JSON response, in a &#x60;pgn&#x60; field.

func (ApiTvChannelGamesRequest) Tags

func (r ApiTvChannelGamesRequest) Tags(tags interface{}) ApiTvChannelGamesRequest

Include the PGN tags.

type ApiTvChannelsRequest

type ApiTvChannelsRequest struct {
	ApiService *TVApiService
	// contains filtered or unexported fields
}

func (ApiTvChannelsRequest) Execute

func (r ApiTvChannelsRequest) Execute() (interface{}, *http.Response, error)

type ApiTvFeedRequest

type ApiTvFeedRequest struct {
	ApiService *TVApiService
	// contains filtered or unexported fields
}

func (ApiTvFeedRequest) Execute

func (r ApiTvFeedRequest) Execute() (interface{}, *http.Response, error)

type ApiUnfollowUserRequest

type ApiUnfollowUserRequest struct {
	ApiService *RelationsApiService
	// contains filtered or unexported fields
}

func (ApiUnfollowUserRequest) Execute

func (r ApiUnfollowUserRequest) Execute() (*Ok, *http.Response, error)

type ApiUsersStatus200ResponseInner

type ApiUsersStatus200ResponseInner struct {
	Id        interface{} `json:"id"`
	Name      interface{} `json:"name"`
	Title     interface{} `json:"title,omitempty"`
	Online    interface{} `json:"online,omitempty"`
	Playing   interface{} `json:"playing,omitempty"`
	Streaming interface{} `json:"streaming,omitempty"`
	Patron    interface{} `json:"patron,omitempty"`
}

ApiUsersStatus200ResponseInner struct for ApiUsersStatus200ResponseInner

func NewApiUsersStatus200ResponseInner

func NewApiUsersStatus200ResponseInner(id interface{}, name interface{}) *ApiUsersStatus200ResponseInner

NewApiUsersStatus200ResponseInner instantiates a new ApiUsersStatus200ResponseInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiUsersStatus200ResponseInnerWithDefaults

func NewApiUsersStatus200ResponseInnerWithDefaults() *ApiUsersStatus200ResponseInner

NewApiUsersStatus200ResponseInnerWithDefaults instantiates a new ApiUsersStatus200ResponseInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiUsersStatus200ResponseInner) GetId

func (o *ApiUsersStatus200ResponseInner) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiUsersStatus200ResponseInner) GetIdOk

func (o *ApiUsersStatus200ResponseInner) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetName

func (o *ApiUsersStatus200ResponseInner) GetName() interface{}

GetName returns the Name field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ApiUsersStatus200ResponseInner) GetNameOk

func (o *ApiUsersStatus200ResponseInner) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetOnline

func (o *ApiUsersStatus200ResponseInner) GetOnline() interface{}

GetOnline returns the Online field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiUsersStatus200ResponseInner) GetOnlineOk

func (o *ApiUsersStatus200ResponseInner) GetOnlineOk() (*interface{}, bool)

GetOnlineOk returns a tuple with the Online field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetPatron

func (o *ApiUsersStatus200ResponseInner) GetPatron() interface{}

GetPatron returns the Patron field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiUsersStatus200ResponseInner) GetPatronOk

func (o *ApiUsersStatus200ResponseInner) GetPatronOk() (*interface{}, bool)

GetPatronOk returns a tuple with the Patron field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetPlaying

func (o *ApiUsersStatus200ResponseInner) GetPlaying() interface{}

GetPlaying returns the Playing field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiUsersStatus200ResponseInner) GetPlayingOk

func (o *ApiUsersStatus200ResponseInner) GetPlayingOk() (*interface{}, bool)

GetPlayingOk returns a tuple with the Playing field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetStreaming

func (o *ApiUsersStatus200ResponseInner) GetStreaming() interface{}

GetStreaming returns the Streaming field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiUsersStatus200ResponseInner) GetStreamingOk

func (o *ApiUsersStatus200ResponseInner) GetStreamingOk() (*interface{}, bool)

GetStreamingOk returns a tuple with the Streaming field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) GetTitle

func (o *ApiUsersStatus200ResponseInner) GetTitle() interface{}

GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ApiUsersStatus200ResponseInner) GetTitleOk

func (o *ApiUsersStatus200ResponseInner) GetTitleOk() (*interface{}, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ApiUsersStatus200ResponseInner) HasOnline

func (o *ApiUsersStatus200ResponseInner) HasOnline() bool

HasOnline returns a boolean if a field has been set.

func (*ApiUsersStatus200ResponseInner) HasPatron

func (o *ApiUsersStatus200ResponseInner) HasPatron() bool

HasPatron returns a boolean if a field has been set.

func (*ApiUsersStatus200ResponseInner) HasPlaying

func (o *ApiUsersStatus200ResponseInner) HasPlaying() bool

HasPlaying returns a boolean if a field has been set.

func (*ApiUsersStatus200ResponseInner) HasStreaming

func (o *ApiUsersStatus200ResponseInner) HasStreaming() bool

HasStreaming returns a boolean if a field has been set.

func (*ApiUsersStatus200ResponseInner) HasTitle

func (o *ApiUsersStatus200ResponseInner) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (ApiUsersStatus200ResponseInner) MarshalJSON

func (o ApiUsersStatus200ResponseInner) MarshalJSON() ([]byte, error)

func (*ApiUsersStatus200ResponseInner) SetId

func (o *ApiUsersStatus200ResponseInner) SetId(v interface{})

SetId sets field value

func (*ApiUsersStatus200ResponseInner) SetName

func (o *ApiUsersStatus200ResponseInner) SetName(v interface{})

SetName sets field value

func (*ApiUsersStatus200ResponseInner) SetOnline

func (o *ApiUsersStatus200ResponseInner) SetOnline(v interface{})

SetOnline gets a reference to the given interface{} and assigns it to the Online field.

func (*ApiUsersStatus200ResponseInner) SetPatron

func (o *ApiUsersStatus200ResponseInner) SetPatron(v interface{})

SetPatron gets a reference to the given interface{} and assigns it to the Patron field.

func (*ApiUsersStatus200ResponseInner) SetPlaying

func (o *ApiUsersStatus200ResponseInner) SetPlaying(v interface{})

SetPlaying gets a reference to the given interface{} and assigns it to the Playing field.

func (*ApiUsersStatus200ResponseInner) SetStreaming

func (o *ApiUsersStatus200ResponseInner) SetStreaming(v interface{})

SetStreaming gets a reference to the given interface{} and assigns it to the Streaming field.

func (*ApiUsersStatus200ResponseInner) SetTitle

func (o *ApiUsersStatus200ResponseInner) SetTitle(v interface{})

SetTitle gets a reference to the given interface{} and assigns it to the Title field.

type ArenaApiTeamArenaRequest

type ArenaApiTeamArenaRequest struct {
	ApiService *ArenaTournamentsApiService
	// contains filtered or unexported fields
}

func (ArenaApiTeamArenaRequest) Execute

func (r ArenaApiTeamArenaRequest) Execute() (interface{}, *http.Response, error)

func (ArenaApiTeamArenaRequest) Max

func (r ArenaApiTeamArenaRequest) Max(max interface{}) ArenaApiTeamArenaRequest

How many tournaments to download.

type ArenaTournaments

type ArenaTournaments struct {
	Created  interface{} `json:"created,omitempty"`
	Started  interface{} `json:"started,omitempty"`
	Finished interface{} `json:"finished,omitempty"`
}

ArenaTournaments struct for ArenaTournaments

func NewArenaTournaments

func NewArenaTournaments() *ArenaTournaments

NewArenaTournaments instantiates a new ArenaTournaments object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewArenaTournamentsWithDefaults

func NewArenaTournamentsWithDefaults() *ArenaTournaments

NewArenaTournamentsWithDefaults instantiates a new ArenaTournaments object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ArenaTournaments) GetCreated

func (o *ArenaTournaments) GetCreated() interface{}

GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ArenaTournaments) GetCreatedOk

func (o *ArenaTournaments) GetCreatedOk() (*interface{}, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ArenaTournaments) GetFinished

func (o *ArenaTournaments) GetFinished() interface{}

GetFinished returns the Finished field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ArenaTournaments) GetFinishedOk

func (o *ArenaTournaments) GetFinishedOk() (*interface{}, bool)

GetFinishedOk returns a tuple with the Finished field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ArenaTournaments) GetStarted

func (o *ArenaTournaments) GetStarted() interface{}

GetStarted returns the Started field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ArenaTournaments) GetStartedOk

func (o *ArenaTournaments) GetStartedOk() (*interface{}, bool)

GetStartedOk returns a tuple with the Started field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ArenaTournaments) HasCreated

func (o *ArenaTournaments) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*ArenaTournaments) HasFinished

func (o *ArenaTournaments) HasFinished() bool

HasFinished returns a boolean if a field has been set.

func (*ArenaTournaments) HasStarted

func (o *ArenaTournaments) HasStarted() bool

HasStarted returns a boolean if a field has been set.

func (ArenaTournaments) MarshalJSON

func (o ArenaTournaments) MarshalJSON() ([]byte, error)

func (*ArenaTournaments) SetCreated

func (o *ArenaTournaments) SetCreated(v interface{})

SetCreated gets a reference to the given interface{} and assigns it to the Created field.

func (*ArenaTournaments) SetFinished

func (o *ArenaTournaments) SetFinished(v interface{})

SetFinished gets a reference to the given interface{} and assigns it to the Finished field.

func (*ArenaTournaments) SetStarted

func (o *ArenaTournaments) SetStarted(v interface{})

SetStarted gets a reference to the given interface{} and assigns it to the Started field.

type ArenaTournamentsApiService

type ArenaTournamentsApiService service

ArenaTournamentsApiService ArenaTournamentsApi service

func (*ArenaTournamentsApiService) ApiTeamArena

func (a *ArenaTournamentsApiService) ApiTeamArena(ctx context.Context, teamId interface{}) ArenaApiTeamArenaRequest

ApiTeamArena Get team Arena tournaments

Get all Arena tournaments relevant to a team.

Tournaments are sorted by reverse chronological order of start date (last starting first).

Tournaments are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId ID of the team
@return ArenaApiTeamArenaRequest

func (*ArenaTournamentsApiService) ApiTeamArenaExecute

func (a *ArenaTournamentsApiService) ApiTeamArenaExecute(r ArenaApiTeamArenaRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) ApiTournament

ApiTournament Get current tournaments

Get recently finished, ongoing, and upcoming tournaments.

This API is used to display the [Lichess tournament schedule](https://lichess.org/tournament).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiTournamentRequest

func (*ArenaTournamentsApiService) ApiTournamentExecute

Execute executes the request

@return ArenaTournaments

func (*ArenaTournamentsApiService) ApiTournamentJoin

func (a *ArenaTournamentsApiService) ApiTournamentJoin(ctx context.Context, id interface{}) ApiApiTournamentJoinRequest

ApiTournamentJoin Join an Arena tournament

Join an Arena tournament, possibly with a password and/or a team. Also unpauses if you had previously [paused](#operation/apiTournamentWithdraw) the tournament.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiApiTournamentJoinRequest

func (*ArenaTournamentsApiService) ApiTournamentJoinExecute

func (a *ArenaTournamentsApiService) ApiTournamentJoinExecute(r ApiApiTournamentJoinRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ArenaTournamentsApiService) ApiTournamentPost

ApiTournamentPost Create a new Arena tournament

Create a public or private Arena tournament.

This endpoint mirrors the form on <https://lichess.org/tournament/new>.

You can create up to 12 public tournaments per day, or 24 private tournaments.

A team battle can be created by specifying the `teambBattleByTeam` argument.

Additional restrictions:

  • clockTime + clockIncrement > 0

  • 15s and 0+1 variant tournaments cannot be rated

  • Clock time in comparison to tournament length must be reasonable: 3 <= (minutes * 60) / (96 * clockTime + 48 * clockIncrement + 15) <= 150

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiTournamentPostRequest

func (*ArenaTournamentsApiService) ApiTournamentPostExecute

func (a *ArenaTournamentsApiService) ApiTournamentPostExecute(r ApiApiTournamentPostRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) ApiTournamentTeamBattlePost

func (a *ArenaTournamentsApiService) ApiTournamentTeamBattlePost(ctx context.Context, id interface{}) ApiApiTournamentTeamBattlePostRequest

ApiTournamentTeamBattlePost Update a team battle

Set the teams and number of leaders of a team battle.

To update the other attributes of a team battle, use the [tournament update endpoint](#operation/apiTournamentUpdate).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID (8 characters)..
@return ApiApiTournamentTeamBattlePostRequest

func (*ArenaTournamentsApiService) ApiTournamentTeamBattlePostExecute

func (a *ArenaTournamentsApiService) ApiTournamentTeamBattlePostExecute(r ApiApiTournamentTeamBattlePostRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) ApiTournamentTerminate

func (a *ArenaTournamentsApiService) ApiTournamentTerminate(ctx context.Context, id interface{}) ApiApiTournamentTerminateRequest

ApiTournamentTerminate Terminate an Arena tournament

Terminate an Arena tournament

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiApiTournamentTerminateRequest

func (*ArenaTournamentsApiService) ApiTournamentTerminateExecute

func (a *ArenaTournamentsApiService) ApiTournamentTerminateExecute(r ApiApiTournamentTerminateRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ArenaTournamentsApiService) ApiTournamentUpdate

func (a *ArenaTournamentsApiService) ApiTournamentUpdate(ctx context.Context, id interface{}) ApiApiTournamentUpdateRequest

ApiTournamentUpdate Update an Arena tournament

Update an Arena tournament.

Be mindful not to make important changes to ongoing tournaments.

Can be used to update a team battle.

Additional restrictions:

  • clockTime + clockIncrement > 0

  • 15s and 0+1 variant tournaments cannot be rated

  • Clock time in comparison to tournament length must be reasonable: 3 <= (minutes * 60) / (96 * clockTime + 48 * clockIncrement + 15) <= 150

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The tournament ID. @return ApiApiTournamentUpdateRequest

func (*ArenaTournamentsApiService) ApiTournamentUpdateExecute

func (a *ArenaTournamentsApiService) ApiTournamentUpdateExecute(r ApiApiTournamentUpdateRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) ApiTournamentWithdraw

func (a *ArenaTournamentsApiService) ApiTournamentWithdraw(ctx context.Context, id interface{}) ApiApiTournamentWithdrawRequest

ApiTournamentWithdraw Pause or leave an Arena tournament

Leave a future Arena tournament, or take a break on an ongoing Arena tournament. It's possible to join again later. Points and streaks are preserved.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiApiTournamentWithdrawRequest

func (*ArenaTournamentsApiService) ApiTournamentWithdrawExecute

func (a *ArenaTournamentsApiService) ApiTournamentWithdrawExecute(r ApiApiTournamentWithdrawRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ArenaTournamentsApiService) ApiUserNameTournamentCreated

func (a *ArenaTournamentsApiService) ApiUserNameTournamentCreated(ctx context.Context, username interface{}) ApiApiUserNameTournamentCreatedRequest

ApiUserNameTournamentCreated Get tournaments created by a user

Get all tournaments created by a given user.

Tournaments are sorted by reverse chronological order of start date (last starting first).

Tournaments are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username The user whose created tournaments to fetch
@return ApiApiUserNameTournamentCreatedRequest

func (*ArenaTournamentsApiService) ApiUserNameTournamentCreatedExecute

func (a *ArenaTournamentsApiService) ApiUserNameTournamentCreatedExecute(r ApiApiUserNameTournamentCreatedRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) GamesByTournament

func (a *ArenaTournamentsApiService) GamesByTournament(ctx context.Context, id interface{}) ApiGamesByTournamentRequest

GamesByTournament Export games of an Arena tournament

Download games of a tournament in PGN or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format.

Games are sorted by reverse chronological order (most recent first).

The game stream is throttled, depending on who is making the request:

  • Anonymous request: 20 games per second

  • [OAuth2 authenticated](#section/Authentication) request: 30 games per second

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The tournament ID. @return ApiGamesByTournamentRequest

func (*ArenaTournamentsApiService) GamesByTournamentExecute

func (a *ArenaTournamentsApiService) GamesByTournamentExecute(r ApiGamesByTournamentRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) ResultsByTournament

func (a *ArenaTournamentsApiService) ResultsByTournament(ctx context.Context, id interface{}) ApiResultsByTournamentRequest

ResultsByTournament Get results of an Arena tournament

Players of an Arena tournament, with their score and performance, sorted by rank (best first).

**Players are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON)**, i.e. one JSON object per line.

If called on an ongoing tournament, results can be inconsistent due to ranking changes while the players are being streamed. Use on finished tournaments for guaranteed consistency.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiResultsByTournamentRequest

func (*ArenaTournamentsApiService) ResultsByTournamentExecute

func (a *ArenaTournamentsApiService) ResultsByTournamentExecute(r ApiResultsByTournamentRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) TeamsByTournament

func (a *ArenaTournamentsApiService) TeamsByTournament(ctx context.Context, id interface{}) ApiTeamsByTournamentRequest

TeamsByTournament Get team standing of a team battle

Teams of a team battle tournament, with top players, sorted by rank (best first).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiTeamsByTournamentRequest

func (*ArenaTournamentsApiService) TeamsByTournamentExecute

func (a *ArenaTournamentsApiService) TeamsByTournamentExecute(r ApiTeamsByTournamentRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ArenaTournamentsApiService) Tournament

func (a *ArenaTournamentsApiService) Tournament(ctx context.Context, id interface{}) ApiTournamentRequest

Tournament Get info about an Arena tournament

Get detailed info about recently finished, current, or upcoming tournament's duels, player standings, and other info.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiTournamentRequest

func (*ArenaTournamentsApiService) TournamentExecute

func (a *ArenaTournamentsApiService) TournamentExecute(r ApiTournamentRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BoardApiService

type BoardApiService service

BoardApiService BoardApi service

func (*BoardApiService) ApiBoardSeek

ApiBoardSeek Create a seek

 Create a public seek, to start a game with a random player.

 ### Real-time seek

 Specify the `time` and `increment` clock values.  The response is streamed but doesn't contain any information.

 **Keep the connection open to keep the seek active**.

 If the client closes the connection, the seek is canceled. This way, if the client terminates, the user won't be paired in a game they wouldn't play.
 When the seek is accepted, or expires, the server closes the connection.

 **Make sure to also have an [Event stream](#operation/apiStreamEvent) open**, to be notified when a game starts.
 We recommend opening the [Event stream](#operation/apiStreamEvent) first, then the seek stream. This way,
 you won't miss the game event if the seek is accepted immediately.

 ### Correspondence seek

 Specify the `days` per turn value.  The response is not streamed, it immediately completes with the seek ID. The seek remains active on the server until it is joined by someone.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiBoardSeekRequest

func (*BoardApiService) ApiBoardSeekExecute

func (a *BoardApiService) ApiBoardSeekExecute(r ApiApiBoardSeekRequest) (*http.Response, error)

Execute executes the request

func (*BoardApiService) ApiStreamEvent

ApiStreamEvent Stream incoming events

 Stream the events reaching a lichess user in real time as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

 Each line is a JSON object containing a `type` field. Possible values are:
 - `gameStart` Start of a game
 - `gameFinish` Completion of a game
 - `challenge` A player sends you a challenge or you challenge someone
 - `challengeCanceled` A player cancels their challenge to you
 - `challengeDeclined` The opponent declines your challenge

 When the stream opens, all current challenges and games are sent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return BoardApiStreamEventRequest

func (*BoardApiService) ApiStreamEventExecute

func (a *BoardApiService) ApiStreamEventExecute(r BoardApiStreamEventRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BoardApiService) BoardGameAbort

func (a *BoardApiService) BoardGameAbort(ctx context.Context, gameId interface{}) ApiBoardGameAbortRequest

BoardGameAbort Abort a game

Abort a game being played with the Board API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameAbortRequest

func (*BoardApiService) BoardGameAbortExecute

func (a *BoardApiService) BoardGameAbortExecute(r ApiBoardGameAbortRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameBerserk

func (a *BoardApiService) BoardGameBerserk(ctx context.Context, gameId interface{}) ApiBoardGameBerserkRequest

BoardGameBerserk Berserk a tournament game

Go berserk on an arena tournament game. Halves the clock time, grants an extra point upon winning. Only available in arena tournaments that allow berserk, and before each player has made a move.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameBerserkRequest

func (*BoardApiService) BoardGameBerserkExecute

func (a *BoardApiService) BoardGameBerserkExecute(r ApiBoardGameBerserkRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameChatGet

func (a *BoardApiService) BoardGameChatGet(ctx context.Context, gameId interface{}) ApiBoardGameChatGetRequest

BoardGameChatGet Fetch the game chat

Get the messages posted in the game chat

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameChatGetRequest

func (*BoardApiService) BoardGameChatGetExecute

func (a *BoardApiService) BoardGameChatGetExecute(r ApiBoardGameChatGetRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BoardApiService) BoardGameChatPost

func (a *BoardApiService) BoardGameChatPost(ctx context.Context, gameId interface{}) ApiBoardGameChatPostRequest

BoardGameChatPost Write in the chat

Post a message to the player or spectator chat, in a game being played with the Board API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameChatPostRequest

func (*BoardApiService) BoardGameChatPostExecute

func (a *BoardApiService) BoardGameChatPostExecute(r ApiBoardGameChatPostRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameClaimVictory

func (a *BoardApiService) BoardGameClaimVictory(ctx context.Context, gameId interface{}) ApiBoardGameClaimVictoryRequest

BoardGameClaimVictory Claim victory of a game

Claim victory when the opponent has left the game for a while.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameClaimVictoryRequest

func (*BoardApiService) BoardGameClaimVictoryExecute

func (a *BoardApiService) BoardGameClaimVictoryExecute(r ApiBoardGameClaimVictoryRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameDraw

func (a *BoardApiService) BoardGameDraw(ctx context.Context, gameId interface{}, accept interface{}) ApiBoardGameDrawRequest

BoardGameDraw Handle draw offers

Create/accept/decline draw offers. - `yes`: Offer a draw, or accept the opponent's draw offer. - `no`: Decline a draw offer from the opponent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@param accept
@return ApiBoardGameDrawRequest

func (*BoardApiService) BoardGameDrawExecute

func (a *BoardApiService) BoardGameDrawExecute(r ApiBoardGameDrawRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameMove

func (a *BoardApiService) BoardGameMove(ctx context.Context, gameId interface{}, move interface{}) ApiBoardGameMoveRequest

BoardGameMove Make a Board move

Make a move in a game being played with the Board API.

The move can also contain a draw offer/agreement.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@param move The move to play, in UCI format
@return ApiBoardGameMoveRequest

func (*BoardApiService) BoardGameMoveExecute

func (a *BoardApiService) BoardGameMoveExecute(r ApiBoardGameMoveRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameResign

func (a *BoardApiService) BoardGameResign(ctx context.Context, gameId interface{}) ApiBoardGameResignRequest

BoardGameResign Resign a game

Resign a game being played with the Board API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameResignRequest

func (*BoardApiService) BoardGameResignExecute

func (a *BoardApiService) BoardGameResignExecute(r ApiBoardGameResignRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BoardApiService) BoardGameStream

func (a *BoardApiService) BoardGameStream(ctx context.Context, gameId interface{}) ApiBoardGameStreamRequest

BoardGameStream Stream Board game state

Stream the state of a game being played with the Board API, as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

Use this endpoint to get updates about the game in real-time, with a single request.

Each line is a JSON object containing a `type` field. Possible values are:

  • `gameFull` Full game data. All values are immutable, except for the `state` field.

  • `gameState` Current state of the game. Immutable values not included. Sent when a move is played, a draw is offered, or when the game ends.

  • `chatLine` Chat message sent by a user in the `room` "player" or "spectator".

  • `opponentGone` Whether the opponent has left the game, and how long before you can claim a win or draw.

The first line is always of type `gameFull`.

The server closes the stream when the game ends, or if the game has already ended.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBoardGameStreamRequest

func (*BoardApiService) BoardGameStreamExecute

func (a *BoardApiService) BoardGameStreamExecute(r ApiBoardGameStreamRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BoardApiService) BoardGameTakeback

func (a *BoardApiService) BoardGameTakeback(ctx context.Context, gameId interface{}, accept interface{}) ApiBoardGameTakebackRequest

BoardGameTakeback Handle takeback offers

Create/accept/decline takebacks. - `yes`: Propose a takeback, or accept the opponent's takeback offer. - `no`: Decline a takeback offer from the opponent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@param accept
@return ApiBoardGameTakebackRequest

func (*BoardApiService) BoardGameTakebackExecute

func (a *BoardApiService) BoardGameTakebackExecute(r ApiBoardGameTakebackRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type BoardApiStreamEventRequest

type BoardApiStreamEventRequest struct {
	ApiService *BoardApiService
	// contains filtered or unexported fields
}

func (BoardApiStreamEventRequest) Execute

func (r BoardApiStreamEventRequest) Execute() (interface{}, *http.Response, error)

type BotApiService

type BotApiService service

BotApiService BotApi service

func (*BotApiService) ApiBotOnline

func (a *BotApiService) ApiBotOnline(ctx context.Context) ApiApiBotOnlineRequest

ApiBotOnline Get online bots

Stream the [online bot users](https://lichess.org/player/bots), as [ndjson](#section/Introduction/Streaming-with-ND-JSON). Throttled to 50 bot users per second.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiBotOnlineRequest

func (*BotApiService) ApiBotOnlineExecute

func (a *BotApiService) ApiBotOnlineExecute(r ApiApiBotOnlineRequest) (*User, *http.Response, error)

Execute executes the request

@return User

func (*BotApiService) ApiStreamEvent

func (a *BotApiService) ApiStreamEvent(ctx context.Context) BotApiStreamEventRequest

ApiStreamEvent Stream incoming events

 Stream the events reaching a lichess user in real time as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

 Each line is a JSON object containing a `type` field. Possible values are:
 - `gameStart` Start of a game
 - `gameFinish` Completion of a game
 - `challenge` A player sends you a challenge or you challenge someone
 - `challengeCanceled` A player cancels their challenge to you
 - `challengeDeclined` The opponent declines your challenge

 When the stream opens, all current challenges and games are sent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return BotApiStreamEventRequest

func (*BotApiService) ApiStreamEventExecute

func (a *BotApiService) ApiStreamEventExecute(r BotApiStreamEventRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BotApiService) BotAccountUpgrade

func (a *BotApiService) BotAccountUpgrade(ctx context.Context) ApiBotAccountUpgradeRequest

BotAccountUpgrade Upgrade to Bot account

Upgrade a lichess player account into a Bot account. Only Bot accounts can use the Bot API.

The account **cannot have played any game** before becoming a Bot account. The upgrade is **irreversible**. The account will only be able to play as a Bot.

To upgrade an account to Bot, use the [official lichess-bot client](https://github.com/ShailChoksi/lichess-bot), or follow these steps: - Create an [API access token](https://lichess.org/account/oauth/token/create?scopes[]=bot:play) with "Play bot moves" permission. - `curl -d ” https://lichess.org/api/bot/account/upgrade -H "Authorization: Bearer <yourTokenHere>"`

To know if an account has already been upgraded, use the [Get my profile API](#operation/accountMe): the `title` field should be set to `BOT`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBotAccountUpgradeRequest

func (*BotApiService) BotAccountUpgradeExecute

func (a *BotApiService) BotAccountUpgradeExecute(r ApiBotAccountUpgradeRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BotApiService) BotGameAbort

func (a *BotApiService) BotGameAbort(ctx context.Context, gameId interface{}) ApiBotGameAbortRequest

BotGameAbort Abort a game

Abort a game being played with the Bot API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBotGameAbortRequest

func (*BotApiService) BotGameAbortExecute

func (a *BotApiService) BotGameAbortExecute(r ApiBotGameAbortRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BotApiService) BotGameChat

func (a *BotApiService) BotGameChat(ctx context.Context, gameId interface{}) ApiBotGameChatRequest

BotGameChat Write in the chat

Post a message to the player or spectator chat, in a game being played with the Bot API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBotGameChatRequest

func (*BotApiService) BotGameChatExecute

func (a *BotApiService) BotGameChatExecute(r ApiBotGameChatRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BotApiService) BotGameChatGet

func (a *BotApiService) BotGameChatGet(ctx context.Context, gameId interface{}) ApiBotGameChatGetRequest

BotGameChatGet Fetch the game chat

Get the messages posted in the game chat

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBotGameChatGetRequest

func (*BotApiService) BotGameChatGetExecute

func (a *BotApiService) BotGameChatGetExecute(r ApiBotGameChatGetRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BotApiService) BotGameMove

func (a *BotApiService) BotGameMove(ctx context.Context, gameId interface{}, move interface{}) ApiBotGameMoveRequest

BotGameMove Make a Bot move

Make a move in a game being played with the Bot API.

The move can also contain a draw offer/agreement.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@param move The move to play, in UCI format
@return ApiBotGameMoveRequest

func (*BotApiService) BotGameMoveExecute

func (a *BotApiService) BotGameMoveExecute(r ApiBotGameMoveRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BotApiService) BotGameResign

func (a *BotApiService) BotGameResign(ctx context.Context, gameId interface{}) ApiBotGameResignRequest

BotGameResign Resign a game

Resign a game being played with the Bot API.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBotGameResignRequest

func (*BotApiService) BotGameResignExecute

func (a *BotApiService) BotGameResignExecute(r ApiBotGameResignRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BotApiService) BotGameStream

func (a *BotApiService) BotGameStream(ctx context.Context, gameId interface{}) ApiBotGameStreamRequest

BotGameStream Stream Bot game state

Stream the state of a game being played with the Bot API, as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

Use this endpoint to get updates about the game in real-time, with a single request.

Each line is a JSON object containing a `type` field. Possible values are:

  • `gameFull` Full game data. All values are immutable, except for the `state` field.

  • `gameState` Current state of the game. Immutable values not included.

  • `chatLine` Chat message sent by a user (or the bot itself) in the `room` "player" or "spectator".

  • `opponentGone` Whether the opponent has left the game, and how long before you can claim a win or draw.

The first line is always of type `gameFull`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiBotGameStreamRequest

func (*BotApiService) BotGameStreamExecute

func (a *BotApiService) BotGameStreamExecute(r ApiBotGameStreamRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type BotApiStreamEventRequest

type BotApiStreamEventRequest struct {
	ApiService *BotApiService
	// contains filtered or unexported fields
}

func (BotApiStreamEventRequest) Execute

func (r BotApiStreamEventRequest) Execute() (interface{}, *http.Response, error)

type BroadcastsApiService

type BroadcastsApiService service

BroadcastsApiService BroadcastsApi service

func (*BroadcastsApiService) BroadcastAllRoundsPgn

func (a *BroadcastsApiService) BroadcastAllRoundsPgn(ctx context.Context, broadcastTournamentId interface{}) ApiBroadcastAllRoundsPgnRequest

BroadcastAllRoundsPgn Export all rounds as PGN

Download all games of all rounds of a broadcast in PGN format.

You may want to [download only the games of a single round](#operation/broadcastRoundPgn) instead.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastTournamentId The broadcast tournament ID (8 characters).
@return ApiBroadcastAllRoundsPgnRequest

func (*BroadcastsApiService) BroadcastAllRoundsPgnExecute

func (a *BroadcastsApiService) BroadcastAllRoundsPgnExecute(r ApiBroadcastAllRoundsPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BroadcastsApiService) BroadcastIndex

BroadcastIndex Get official broadcasts

Get all incoming, ongoing, and finished official broadcasts. The broadcasts are sorted by start date, most recent first.

Broadcasts are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBroadcastIndexRequest

func (*BroadcastsApiService) BroadcastIndexExecute

func (a *BroadcastsApiService) BroadcastIndexExecute(r ApiBroadcastIndexRequest) ([]interface{}, *http.Response, error)

Execute executes the request

@return []interface{}

func (*BroadcastsApiService) BroadcastPush

func (a *BroadcastsApiService) BroadcastPush(ctx context.Context, broadcastRoundId interface{}) ApiBroadcastPushRequest

BroadcastPush Push PGN to your broadcast round

Update your broadcast with new PGN. Only for broadcast without a source URL.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastRoundId The broadcast round ID (8 characters).
@return ApiBroadcastPushRequest

func (*BroadcastsApiService) BroadcastPushExecute

func (a *BroadcastsApiService) BroadcastPushExecute(r ApiBroadcastPushRequest) ([]Ok, *http.Response, error)

Execute executes the request

@return []Ok

func (*BroadcastsApiService) BroadcastRoundCreate

func (a *BroadcastsApiService) BroadcastRoundCreate(ctx context.Context, broadcastTournamentId interface{}) ApiBroadcastRoundCreateRequest

BroadcastRoundCreate Create a broadcast round

Create a new broadcast round to relay external games. This endpoint accepts the same form data as the web form.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastTournamentId The broadcast tournament ID (8 characters).
@return ApiBroadcastRoundCreateRequest

func (*BroadcastsApiService) BroadcastRoundCreateExecute

func (a *BroadcastsApiService) BroadcastRoundCreateExecute(r ApiBroadcastRoundCreateRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BroadcastsApiService) BroadcastRoundGet

func (a *BroadcastsApiService) BroadcastRoundGet(ctx context.Context, broadcastTournamentSlug interface{}, broadcastRoundSlug interface{}, broadcastRoundId interface{}) ApiBroadcastRoundGetRequest

BroadcastRoundGet Get your broadcast round

Get information about a broadcast round.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastTournamentSlug The broadcast tournament slug. Only used for SEO, the slug can be safely replaced by `-`. Only the `broadcastRoundId` is actually used.
@param broadcastRoundSlug The broadcast round slug. Only used for SEO, the slug can be safely replaced by `-`. Only the `broadcastRoundId` is actually used.
@param broadcastRoundId The broadcast Round ID (8 characters).
@return ApiBroadcastRoundGetRequest

func (*BroadcastsApiService) BroadcastRoundGetExecute

func (a *BroadcastsApiService) BroadcastRoundGetExecute(r ApiBroadcastRoundGetRequest) ([]interface{}, *http.Response, error)

Execute executes the request

@return []interface{}

func (*BroadcastsApiService) BroadcastRoundPgn

func (a *BroadcastsApiService) BroadcastRoundPgn(ctx context.Context, broadcastRoundId interface{}) ApiBroadcastRoundPgnRequest

BroadcastRoundPgn Export one round as PGN

Download all games of a single round of a broadcast tournament in PGN format.

You *could* poll this endpoint to get updates about a tournament, but it would be slow, and very inneficient.

Instead, consider [streaming the tournament](#operation/broadcastStreamRoundPgn) to get a new PGN every time a game is updated, in real-time.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastRoundId The round ID (8 characters).
@return ApiBroadcastRoundPgnRequest

func (*BroadcastsApiService) BroadcastRoundPgnExecute

func (a *BroadcastsApiService) BroadcastRoundPgnExecute(r ApiBroadcastRoundPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BroadcastsApiService) BroadcastRoundUpdate

func (a *BroadcastsApiService) BroadcastRoundUpdate(ctx context.Context, broadcastRoundId interface{}) ApiBroadcastRoundUpdateRequest

BroadcastRoundUpdate Update your broadcast round

Update information about a broadcast round that you created. This endpoint accepts the same form data as the web form. All fields must be populated with data. Missing fields will override the broadcast with empty data. For instance, if you omit `startDate`, then any pre-existing start date will be removed.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastRoundId The broadcast round ID (8 characters).
@return ApiBroadcastRoundUpdateRequest

func (*BroadcastsApiService) BroadcastRoundUpdateExecute

func (a *BroadcastsApiService) BroadcastRoundUpdateExecute(r ApiBroadcastRoundUpdateRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BroadcastsApiService) BroadcastStreamRoundPgn

func (a *BroadcastsApiService) BroadcastStreamRoundPgn(ctx context.Context, broadcastRoundId interface{}) ApiBroadcastStreamRoundPgnRequest

BroadcastStreamRoundPgn Stream an ongoing broadcast tournament as PGN

This streaming endpoint first sends all games of a broadcast tournament in PGN format.

Then, it waits for new moves to be played. As soon as it happens, the entire PGN of the game is sent to the stream.

The stream will also send PGNs when games are added to the tournament.

This is the best way to get updates about an ongoing tournament. Streaming means no polling, and no pollings means no latency, and minimum impact on the server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastRoundId The broadcast round ID (8 characters).
@return ApiBroadcastStreamRoundPgnRequest

func (*BroadcastsApiService) BroadcastStreamRoundPgnExecute

func (a *BroadcastsApiService) BroadcastStreamRoundPgnExecute(r ApiBroadcastStreamRoundPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BroadcastsApiService) BroadcastTourCreate

BroadcastTourCreate Create a broadcast tournament

Create a new broadcast tournament to relay external games. This endpoint accepts the same form data as the [web form](https://lichess.org/broadcast/new).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBroadcastTourCreateRequest

func (*BroadcastsApiService) BroadcastTourCreateExecute

func (a *BroadcastsApiService) BroadcastTourCreateExecute(r ApiBroadcastTourCreateRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BroadcastsApiService) BroadcastTourGet

func (a *BroadcastsApiService) BroadcastTourGet(ctx context.Context, slug interface{}, broadcastTournamentId interface{}) ApiBroadcastTourGetRequest

BroadcastTourGet Get your broadcast tournament

Get information about a broadcast tournament.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param slug The broadcast tournament slug. Only used for SEO, the slug can be safely replaced by `-`. Only the `broadcastTournamentId` is actually used.
@param broadcastTournamentId The broadcast tournament ID (8 characters).
@return ApiBroadcastTourGetRequest

func (*BroadcastsApiService) BroadcastTourGetExecute

func (a *BroadcastsApiService) BroadcastTourGetExecute(r ApiBroadcastTourGetRequest) ([]interface{}, *http.Response, error)

Execute executes the request

@return []interface{}

func (*BroadcastsApiService) BroadcastTourUpdate

func (a *BroadcastsApiService) BroadcastTourUpdate(ctx context.Context, broadcastTournamentId interface{}) ApiBroadcastTourUpdateRequest

BroadcastTourUpdate Update your broadcast tournament

Update information about a broadcast tournament that you created. This endpoint accepts the same form data as the web form. All fields must be populated with data. Missing fields will override the broadcast with empty data.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param broadcastTournamentId The broadcast ID (8 characters).
@return ApiBroadcastTourUpdateRequest

func (*BroadcastsApiService) BroadcastTourUpdateExecute

func (a *BroadcastsApiService) BroadcastTourUpdateExecute(r ApiBroadcastTourUpdateRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type BulkPairingsApiService

type BulkPairingsApiService service

BulkPairingsApiService BulkPairingsApi service

func (*BulkPairingsApiService) BulkPairingCreate

BulkPairingCreate Create a bulk pairing

Schedule many games at once, up to 24h in advance.

OAuth tokens are required for all paired players, with the `challenge:write` scope.

You can schedule up to 500 games every 10 minutes. [Contact us](mailto:contact@lichess.org) if you need higher limits.

If games have a real-time clock, each player must have only one pairing. For correspondence games, players can have multiple pairings within the same bulk.

The entire bulk is rejected if:

  • a token is missing
  • a token is present more than once (except in correspondence)
  • a token lacks the `challenge:write` scope
  • a player account is closed
  • a player is paired more than once (except in correspondence)
  • a bulk is already scheduled to start at the same time with the same player
  • you have 10 scheduled bulks
  • you have 1000 scheduled games

Partial bulks are never created. Either it all fails, or it all succeeds. When it fails, it does so with an error message explaining the issue. Failed bulks are not counted in the rate limiting, they are free. Fix the issues, manually or programmatically, then retry to schedule the bulk.

A successful bulk creation returns a JSON bulk document. Its ID can be used for further operations.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkPairingCreateRequest

func (*BulkPairingsApiService) BulkPairingCreateExecute

func (a *BulkPairingsApiService) BulkPairingCreateExecute(r ApiBulkPairingCreateRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*BulkPairingsApiService) BulkPairingDelete

func (a *BulkPairingsApiService) BulkPairingDelete(ctx context.Context, id interface{}) ApiBulkPairingDeleteRequest

BulkPairingDelete Cancel a bulk pairing

Cancel and delete a bulk pairing that is scheduled in the future.

If the games have already been created, then this does nothing.

Canceling a bulk pairing does not refund the rate limit cost of that bulk pairing.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiBulkPairingDeleteRequest

func (*BulkPairingsApiService) BulkPairingDeleteExecute

func (a *BulkPairingsApiService) BulkPairingDeleteExecute(r ApiBulkPairingDeleteRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*BulkPairingsApiService) BulkPairingGet

BulkPairingGet View upcoming bulk pairings

Get a list of upcoming bulk pairings you created.

Only bulk pairings that are scheduled in the future, or that have a clock start scheduled in the future, are listed.

Bulk pairings are deleted from the server after the pairings are done and the clocks have started.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkPairingGetRequest

func (*BulkPairingsApiService) BulkPairingGetExecute

func (a *BulkPairingsApiService) BulkPairingGetExecute(r ApiBulkPairingGetRequest) ([]interface{}, *http.Response, error)

Execute executes the request

@return []interface{}

func (*BulkPairingsApiService) BulkPairingStartClocks

func (a *BulkPairingsApiService) BulkPairingStartClocks(ctx context.Context, id interface{}) ApiBulkPairingStartClocksRequest

BulkPairingStartClocks Manually start clocks

Immediately start all clocks of the games of a bulk pairing.

This overrides the `startClocksAt` value of an existing bulk pairing.

If the games have not yet been created (`bulk.pairAt` is in the future), then this does nothing.

If the clocks have already started (`bulk.startClocksAt` is in the past), then this does nothing.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiBulkPairingStartClocksRequest

func (*BulkPairingsApiService) BulkPairingStartClocksExecute

func (a *BulkPairingsApiService) BulkPairingStartClocksExecute(r ApiBulkPairingStartClocksRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type ChallengeCanceledEvent

type ChallengeCanceledEvent struct {
	Type      interface{}    `json:"type,omitempty"`
	Challenge *ChallengeJson `json:"challenge,omitempty"`
}

ChallengeCanceledEvent struct for ChallengeCanceledEvent

func NewChallengeCanceledEvent

func NewChallengeCanceledEvent() *ChallengeCanceledEvent

NewChallengeCanceledEvent instantiates a new ChallengeCanceledEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeCanceledEventWithDefaults

func NewChallengeCanceledEventWithDefaults() *ChallengeCanceledEvent

NewChallengeCanceledEventWithDefaults instantiates a new ChallengeCanceledEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeCanceledEvent) GetChallenge

func (o *ChallengeCanceledEvent) GetChallenge() ChallengeJson

GetChallenge returns the Challenge field value if set, zero value otherwise.

func (*ChallengeCanceledEvent) GetChallengeOk

func (o *ChallengeCanceledEvent) GetChallengeOk() (*ChallengeJson, bool)

GetChallengeOk returns a tuple with the Challenge field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChallengeCanceledEvent) GetType

func (o *ChallengeCanceledEvent) GetType() interface{}

GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeCanceledEvent) GetTypeOk

func (o *ChallengeCanceledEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeCanceledEvent) HasChallenge

func (o *ChallengeCanceledEvent) HasChallenge() bool

HasChallenge returns a boolean if a field has been set.

func (*ChallengeCanceledEvent) HasType

func (o *ChallengeCanceledEvent) HasType() bool

HasType returns a boolean if a field has been set.

func (ChallengeCanceledEvent) MarshalJSON

func (o ChallengeCanceledEvent) MarshalJSON() ([]byte, error)

func (*ChallengeCanceledEvent) SetChallenge

func (o *ChallengeCanceledEvent) SetChallenge(v ChallengeJson)

SetChallenge gets a reference to the given ChallengeJson and assigns it to the Challenge field.

func (*ChallengeCanceledEvent) SetType

func (o *ChallengeCanceledEvent) SetType(v interface{})

SetType gets a reference to the given interface{} and assigns it to the Type field.

type ChallengeCanceledJson

type ChallengeCanceledJson struct {
	Id interface{} `json:"id,omitempty"`
}

ChallengeCanceledJson struct for ChallengeCanceledJson

func NewChallengeCanceledJson

func NewChallengeCanceledJson() *ChallengeCanceledJson

NewChallengeCanceledJson instantiates a new ChallengeCanceledJson object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeCanceledJsonWithDefaults

func NewChallengeCanceledJsonWithDefaults() *ChallengeCanceledJson

NewChallengeCanceledJsonWithDefaults instantiates a new ChallengeCanceledJson object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeCanceledJson) GetId

func (o *ChallengeCanceledJson) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeCanceledJson) GetIdOk

func (o *ChallengeCanceledJson) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeCanceledJson) HasId

func (o *ChallengeCanceledJson) HasId() bool

HasId returns a boolean if a field has been set.

func (ChallengeCanceledJson) MarshalJSON

func (o ChallengeCanceledJson) MarshalJSON() ([]byte, error)

func (*ChallengeCanceledJson) SetId

func (o *ChallengeCanceledJson) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

type ChallengeDeclinedEvent

type ChallengeDeclinedEvent struct {
	Type      interface{}            `json:"type,omitempty"`
	Challenge *ChallengeCanceledJson `json:"challenge,omitempty"`
}

ChallengeDeclinedEvent struct for ChallengeDeclinedEvent

func NewChallengeDeclinedEvent

func NewChallengeDeclinedEvent() *ChallengeDeclinedEvent

NewChallengeDeclinedEvent instantiates a new ChallengeDeclinedEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeDeclinedEventWithDefaults

func NewChallengeDeclinedEventWithDefaults() *ChallengeDeclinedEvent

NewChallengeDeclinedEventWithDefaults instantiates a new ChallengeDeclinedEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeDeclinedEvent) GetChallenge

GetChallenge returns the Challenge field value if set, zero value otherwise.

func (*ChallengeDeclinedEvent) GetChallengeOk

func (o *ChallengeDeclinedEvent) GetChallengeOk() (*ChallengeCanceledJson, bool)

GetChallengeOk returns a tuple with the Challenge field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChallengeDeclinedEvent) GetType

func (o *ChallengeDeclinedEvent) GetType() interface{}

GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeDeclinedEvent) GetTypeOk

func (o *ChallengeDeclinedEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeDeclinedEvent) HasChallenge

func (o *ChallengeDeclinedEvent) HasChallenge() bool

HasChallenge returns a boolean if a field has been set.

func (*ChallengeDeclinedEvent) HasType

func (o *ChallengeDeclinedEvent) HasType() bool

HasType returns a boolean if a field has been set.

func (ChallengeDeclinedEvent) MarshalJSON

func (o ChallengeDeclinedEvent) MarshalJSON() ([]byte, error)

func (*ChallengeDeclinedEvent) SetChallenge

func (o *ChallengeDeclinedEvent) SetChallenge(v ChallengeCanceledJson)

SetChallenge gets a reference to the given ChallengeCanceledJson and assigns it to the Challenge field.

func (*ChallengeDeclinedEvent) SetType

func (o *ChallengeDeclinedEvent) SetType(v interface{})

SetType gets a reference to the given interface{} and assigns it to the Type field.

type ChallengeEvent

type ChallengeEvent struct {
	Type      interface{}    `json:"type,omitempty"`
	Challenge *ChallengeJson `json:"challenge,omitempty"`
}

ChallengeEvent struct for ChallengeEvent

func NewChallengeEvent

func NewChallengeEvent() *ChallengeEvent

NewChallengeEvent instantiates a new ChallengeEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeEventWithDefaults

func NewChallengeEventWithDefaults() *ChallengeEvent

NewChallengeEventWithDefaults instantiates a new ChallengeEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeEvent) GetChallenge

func (o *ChallengeEvent) GetChallenge() ChallengeJson

GetChallenge returns the Challenge field value if set, zero value otherwise.

func (*ChallengeEvent) GetChallengeOk

func (o *ChallengeEvent) GetChallengeOk() (*ChallengeJson, bool)

GetChallengeOk returns a tuple with the Challenge field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChallengeEvent) GetType

func (o *ChallengeEvent) GetType() interface{}

GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeEvent) GetTypeOk

func (o *ChallengeEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeEvent) HasChallenge

func (o *ChallengeEvent) HasChallenge() bool

HasChallenge returns a boolean if a field has been set.

func (*ChallengeEvent) HasType

func (o *ChallengeEvent) HasType() bool

HasType returns a boolean if a field has been set.

func (ChallengeEvent) MarshalJSON

func (o ChallengeEvent) MarshalJSON() ([]byte, error)

func (*ChallengeEvent) SetChallenge

func (o *ChallengeEvent) SetChallenge(v ChallengeJson)

SetChallenge gets a reference to the given ChallengeJson and assigns it to the Challenge field.

func (*ChallengeEvent) SetType

func (o *ChallengeEvent) SetType(v interface{})

SetType gets a reference to the given interface{} and assigns it to the Type field.

type ChallengeJson

type ChallengeJson struct {
	Id            interface{}       `json:"id"`
	Url           interface{}       `json:"url"`
	Status        interface{}       `json:"status"`
	Challenger    ChallengeUser     `json:"challenger"`
	DestUser      interface{}       `json:"destUser"`
	Variant       Variant           `json:"variant"`
	Rated         interface{}       `json:"rated"`
	Speed         Speed             `json:"speed"`
	TimeControl   interface{}       `json:"timeControl"`
	Color         interface{}       `json:"color"`
	Perf          ChallengeJsonPerf `json:"perf"`
	Direction     interface{}       `json:"direction,omitempty"`
	InitialFen    interface{}       `json:"initialFen,omitempty"`
	DeclineReason interface{}       `json:"declineReason,omitempty"`
}

ChallengeJson struct for ChallengeJson

func NewChallengeJson

func NewChallengeJson(id interface{}, url interface{}, status interface{}, challenger ChallengeUser, destUser interface{}, variant Variant, rated interface{}, speed Speed, timeControl interface{}, color interface{}, perf ChallengeJsonPerf) *ChallengeJson

NewChallengeJson instantiates a new ChallengeJson object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeJsonWithDefaults

func NewChallengeJsonWithDefaults() *ChallengeJson

NewChallengeJsonWithDefaults instantiates a new ChallengeJson object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeJson) GetChallenger

func (o *ChallengeJson) GetChallenger() ChallengeUser

GetChallenger returns the Challenger field value

func (*ChallengeJson) GetChallengerOk

func (o *ChallengeJson) GetChallengerOk() (*ChallengeUser, bool)

GetChallengerOk returns a tuple with the Challenger field value and a boolean to check if the value has been set.

func (*ChallengeJson) GetColor

func (o *ChallengeJson) GetColor() interface{}

GetColor returns the Color field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetColorOk

func (o *ChallengeJson) GetColorOk() (*interface{}, bool)

GetColorOk returns a tuple with the Color field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetDeclineReason

func (o *ChallengeJson) GetDeclineReason() interface{}

GetDeclineReason returns the DeclineReason field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeJson) GetDeclineReasonOk

func (o *ChallengeJson) GetDeclineReasonOk() (*interface{}, bool)

GetDeclineReasonOk returns a tuple with the DeclineReason field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetDestUser

func (o *ChallengeJson) GetDestUser() interface{}

GetDestUser returns the DestUser field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetDestUserOk

func (o *ChallengeJson) GetDestUserOk() (*interface{}, bool)

GetDestUserOk returns a tuple with the DestUser field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetDirection

func (o *ChallengeJson) GetDirection() interface{}

GetDirection returns the Direction field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeJson) GetDirectionOk

func (o *ChallengeJson) GetDirectionOk() (*interface{}, bool)

GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetId

func (o *ChallengeJson) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetIdOk

func (o *ChallengeJson) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetInitialFen

func (o *ChallengeJson) GetInitialFen() interface{}

GetInitialFen returns the InitialFen field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeJson) GetInitialFenOk

func (o *ChallengeJson) GetInitialFenOk() (*interface{}, bool)

GetInitialFenOk returns a tuple with the InitialFen field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetPerf

func (o *ChallengeJson) GetPerf() ChallengeJsonPerf

GetPerf returns the Perf field value

func (*ChallengeJson) GetPerfOk

func (o *ChallengeJson) GetPerfOk() (*ChallengeJsonPerf, bool)

GetPerfOk returns a tuple with the Perf field value and a boolean to check if the value has been set.

func (*ChallengeJson) GetRated

func (o *ChallengeJson) GetRated() interface{}

GetRated returns the Rated field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetRatedOk

func (o *ChallengeJson) GetRatedOk() (*interface{}, bool)

GetRatedOk returns a tuple with the Rated field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetSpeed

func (o *ChallengeJson) GetSpeed() Speed

GetSpeed returns the Speed field value

func (*ChallengeJson) GetSpeedOk

func (o *ChallengeJson) GetSpeedOk() (*Speed, bool)

GetSpeedOk returns a tuple with the Speed field value and a boolean to check if the value has been set.

func (*ChallengeJson) GetStatus

func (o *ChallengeJson) GetStatus() interface{}

GetStatus returns the Status field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetStatusOk

func (o *ChallengeJson) GetStatusOk() (*interface{}, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetTimeControl

func (o *ChallengeJson) GetTimeControl() interface{}

GetTimeControl returns the TimeControl field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetTimeControlOk

func (o *ChallengeJson) GetTimeControlOk() (*interface{}, bool)

GetTimeControlOk returns a tuple with the TimeControl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetUrl

func (o *ChallengeJson) GetUrl() interface{}

GetUrl returns the Url field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChallengeJson) GetUrlOk

func (o *ChallengeJson) GetUrlOk() (*interface{}, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJson) GetVariant

func (o *ChallengeJson) GetVariant() Variant

GetVariant returns the Variant field value

func (*ChallengeJson) GetVariantOk

func (o *ChallengeJson) GetVariantOk() (*Variant, bool)

GetVariantOk returns a tuple with the Variant field value and a boolean to check if the value has been set.

func (*ChallengeJson) HasDeclineReason

func (o *ChallengeJson) HasDeclineReason() bool

HasDeclineReason returns a boolean if a field has been set.

func (*ChallengeJson) HasDirection

func (o *ChallengeJson) HasDirection() bool

HasDirection returns a boolean if a field has been set.

func (*ChallengeJson) HasInitialFen

func (o *ChallengeJson) HasInitialFen() bool

HasInitialFen returns a boolean if a field has been set.

func (ChallengeJson) MarshalJSON

func (o ChallengeJson) MarshalJSON() ([]byte, error)

func (*ChallengeJson) SetChallenger

func (o *ChallengeJson) SetChallenger(v ChallengeUser)

SetChallenger sets field value

func (*ChallengeJson) SetColor

func (o *ChallengeJson) SetColor(v interface{})

SetColor sets field value

func (*ChallengeJson) SetDeclineReason

func (o *ChallengeJson) SetDeclineReason(v interface{})

SetDeclineReason gets a reference to the given interface{} and assigns it to the DeclineReason field.

func (*ChallengeJson) SetDestUser

func (o *ChallengeJson) SetDestUser(v interface{})

SetDestUser sets field value

func (*ChallengeJson) SetDirection

func (o *ChallengeJson) SetDirection(v interface{})

SetDirection gets a reference to the given interface{} and assigns it to the Direction field.

func (*ChallengeJson) SetId

func (o *ChallengeJson) SetId(v interface{})

SetId sets field value

func (*ChallengeJson) SetInitialFen

func (o *ChallengeJson) SetInitialFen(v interface{})

SetInitialFen gets a reference to the given interface{} and assigns it to the InitialFen field.

func (*ChallengeJson) SetPerf

func (o *ChallengeJson) SetPerf(v ChallengeJsonPerf)

SetPerf sets field value

func (*ChallengeJson) SetRated

func (o *ChallengeJson) SetRated(v interface{})

SetRated sets field value

func (*ChallengeJson) SetSpeed

func (o *ChallengeJson) SetSpeed(v Speed)

SetSpeed sets field value

func (*ChallengeJson) SetStatus

func (o *ChallengeJson) SetStatus(v interface{})

SetStatus sets field value

func (*ChallengeJson) SetTimeControl

func (o *ChallengeJson) SetTimeControl(v interface{})

SetTimeControl sets field value

func (*ChallengeJson) SetUrl

func (o *ChallengeJson) SetUrl(v interface{})

SetUrl sets field value

func (*ChallengeJson) SetVariant

func (o *ChallengeJson) SetVariant(v Variant)

SetVariant sets field value

type ChallengeJsonPerf

type ChallengeJsonPerf struct {
	Icon interface{} `json:"icon,omitempty"`
	Name interface{} `json:"name,omitempty"`
}

ChallengeJsonPerf struct for ChallengeJsonPerf

func NewChallengeJsonPerf

func NewChallengeJsonPerf() *ChallengeJsonPerf

NewChallengeJsonPerf instantiates a new ChallengeJsonPerf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeJsonPerfWithDefaults

func NewChallengeJsonPerfWithDefaults() *ChallengeJsonPerf

NewChallengeJsonPerfWithDefaults instantiates a new ChallengeJsonPerf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeJsonPerf) GetIcon

func (o *ChallengeJsonPerf) GetIcon() interface{}

GetIcon returns the Icon field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeJsonPerf) GetIconOk

func (o *ChallengeJsonPerf) GetIconOk() (*interface{}, bool)

GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJsonPerf) GetName

func (o *ChallengeJsonPerf) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeJsonPerf) GetNameOk

func (o *ChallengeJsonPerf) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeJsonPerf) HasIcon

func (o *ChallengeJsonPerf) HasIcon() bool

HasIcon returns a boolean if a field has been set.

func (*ChallengeJsonPerf) HasName

func (o *ChallengeJsonPerf) HasName() bool

HasName returns a boolean if a field has been set.

func (ChallengeJsonPerf) MarshalJSON

func (o ChallengeJsonPerf) MarshalJSON() ([]byte, error)

func (*ChallengeJsonPerf) SetIcon

func (o *ChallengeJsonPerf) SetIcon(v interface{})

SetIcon gets a reference to the given interface{} and assigns it to the Icon field.

func (*ChallengeJsonPerf) SetName

func (o *ChallengeJsonPerf) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

type ChallengeList200Response

type ChallengeList200Response struct {
	// Incoming challenges i.e. targeted at you
	In []ChallengeJson `json:"in,omitempty"`
	// Outgoing challenges i.e. created by you
	Out []ChallengeJson `json:"out,omitempty"`
}

ChallengeList200Response struct for ChallengeList200Response

func NewChallengeList200Response

func NewChallengeList200Response() *ChallengeList200Response

NewChallengeList200Response instantiates a new ChallengeList200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeList200ResponseWithDefaults

func NewChallengeList200ResponseWithDefaults() *ChallengeList200Response

NewChallengeList200ResponseWithDefaults instantiates a new ChallengeList200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeList200Response) GetIn

GetIn returns the In field value if set, zero value otherwise.

func (*ChallengeList200Response) GetInOk

func (o *ChallengeList200Response) GetInOk() ([]ChallengeJson, bool)

GetInOk returns a tuple with the In field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChallengeList200Response) GetOut

GetOut returns the Out field value if set, zero value otherwise.

func (*ChallengeList200Response) GetOutOk

func (o *ChallengeList200Response) GetOutOk() ([]ChallengeJson, bool)

GetOutOk returns a tuple with the Out field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChallengeList200Response) HasIn

func (o *ChallengeList200Response) HasIn() bool

HasIn returns a boolean if a field has been set.

func (*ChallengeList200Response) HasOut

func (o *ChallengeList200Response) HasOut() bool

HasOut returns a boolean if a field has been set.

func (ChallengeList200Response) MarshalJSON

func (o ChallengeList200Response) MarshalJSON() ([]byte, error)

func (*ChallengeList200Response) SetIn

SetIn gets a reference to the given []ChallengeJson and assigns it to the In field.

func (*ChallengeList200Response) SetOut

func (o *ChallengeList200Response) SetOut(v []ChallengeJson)

SetOut gets a reference to the given []ChallengeJson and assigns it to the Out field.

type ChallengeUser

type ChallengeUser struct {
	Rating      interface{} `json:"rating,omitempty"`
	Provisional interface{} `json:"provisional,omitempty"`
	Online      interface{} `json:"online,omitempty"`
}

ChallengeUser struct for ChallengeUser

func NewChallengeUser

func NewChallengeUser() *ChallengeUser

NewChallengeUser instantiates a new ChallengeUser object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChallengeUserWithDefaults

func NewChallengeUserWithDefaults() *ChallengeUser

NewChallengeUserWithDefaults instantiates a new ChallengeUser object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChallengeUser) GetOnline

func (o *ChallengeUser) GetOnline() interface{}

GetOnline returns the Online field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeUser) GetOnlineOk

func (o *ChallengeUser) GetOnlineOk() (*interface{}, bool)

GetOnlineOk returns a tuple with the Online field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeUser) GetProvisional

func (o *ChallengeUser) GetProvisional() interface{}

GetProvisional returns the Provisional field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeUser) GetProvisionalOk

func (o *ChallengeUser) GetProvisionalOk() (*interface{}, bool)

GetProvisionalOk returns a tuple with the Provisional field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeUser) GetRating

func (o *ChallengeUser) GetRating() interface{}

GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ChallengeUser) GetRatingOk

func (o *ChallengeUser) GetRatingOk() (*interface{}, bool)

GetRatingOk returns a tuple with the Rating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChallengeUser) HasOnline

func (o *ChallengeUser) HasOnline() bool

HasOnline returns a boolean if a field has been set.

func (*ChallengeUser) HasProvisional

func (o *ChallengeUser) HasProvisional() bool

HasProvisional returns a boolean if a field has been set.

func (*ChallengeUser) HasRating

func (o *ChallengeUser) HasRating() bool

HasRating returns a boolean if a field has been set.

func (ChallengeUser) MarshalJSON

func (o ChallengeUser) MarshalJSON() ([]byte, error)

func (*ChallengeUser) SetOnline

func (o *ChallengeUser) SetOnline(v interface{})

SetOnline gets a reference to the given interface{} and assigns it to the Online field.

func (*ChallengeUser) SetProvisional

func (o *ChallengeUser) SetProvisional(v interface{})

SetProvisional gets a reference to the given interface{} and assigns it to the Provisional field.

func (*ChallengeUser) SetRating

func (o *ChallengeUser) SetRating(v interface{})

SetRating gets a reference to the given interface{} and assigns it to the Rating field.

type ChallengesApiService

type ChallengesApiService service

ChallengesApiService ChallengesApi service

func (*ChallengesApiService) AdminChallengeTokens

AdminChallengeTokens Admin challenge tokens

**This endpoint can only be used by Lichess administrators. It will not work if you do not have the appropriate permissions.** Tournament organizers should instead use [OAuth](#tag/OAuth) to obtain `challenge:write` tokens from users in order to perform bulk pairing.*

Create and obtain `challenge:write` tokens for multiple users.

If a similar token already exists for a user, it is reused. This endpoint is idempotent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminChallengeTokensRequest

func (*ChallengesApiService) AdminChallengeTokensExecute

func (a *ChallengesApiService) AdminChallengeTokensExecute(r ApiAdminChallengeTokensRequest) (*http.Response, error)

Execute executes the request

func (*ChallengesApiService) ChallengeAccept

func (a *ChallengesApiService) ChallengeAccept(ctx context.Context, challengeId interface{}) ApiChallengeAcceptRequest

ChallengeAccept Accept a challenge

Accept an incoming challenge.

You should receive a `gameStart` event on the [incoming events stream](#operation/apiStreamEvent).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param challengeId
@return ApiChallengeAcceptRequest

func (*ChallengesApiService) ChallengeAcceptExecute

func (a *ChallengesApiService) ChallengeAcceptExecute(r ApiChallengeAcceptRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ChallengesApiService) ChallengeAi

ChallengeAi Challenge the AI

Start a game with Lichess AI.

You will be notified on the [event stream](#operation/apiStreamEvent) that a new game has started.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiChallengeAiRequest

func (*ChallengesApiService) ChallengeAiExecute

func (a *ChallengesApiService) ChallengeAiExecute(r ApiChallengeAiRequest) (*GameJson, *http.Response, error)

Execute executes the request

@return GameJson

func (*ChallengesApiService) ChallengeCancel

func (a *ChallengesApiService) ChallengeCancel(ctx context.Context, challengeId interface{}) ApiChallengeCancelRequest

ChallengeCancel Cancel a challenge

Cancel a challenge you sent, or aborts the game if the challenge was accepted, but the game was not yet played. Note that the ID of a game is the same as the ID of the challenge that created it.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param challengeId
@return ApiChallengeCancelRequest

func (*ChallengesApiService) ChallengeCancelExecute

func (a *ChallengesApiService) ChallengeCancelExecute(r ApiChallengeCancelRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ChallengesApiService) ChallengeCreate

func (a *ChallengesApiService) ChallengeCreate(ctx context.Context, username interface{}) ApiChallengeCreateRequest

ChallengeCreate Create a challenge

Challenge someone to play. The targeted player can choose to accept or decline.

If the challenge is accepted, you will be notified on the [event stream](#operation/apiStreamEvent) that a new game has started. The game ID will be the same as the challenge ID.

If you also have an OAuth token with `challenge:write` scope for the receiving user, you can make them accept the challenge immediately by setting the `acceptByToken` field.

Challenges for realtime games (not correspondence) expire after 20s if not accepted. To prevent that, use the `keepAliveStream` flag described below.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiChallengeCreateRequest

func (*ChallengesApiService) ChallengeCreateExecute

Execute executes the request

@return ChallengeJson

func (*ChallengesApiService) ChallengeDecline

func (a *ChallengesApiService) ChallengeDecline(ctx context.Context, challengeId interface{}) ApiChallengeDeclineRequest

ChallengeDecline Decline a challenge

Decline an incoming challenge.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param challengeId
@return ApiChallengeDeclineRequest

func (*ChallengesApiService) ChallengeDeclineExecute

func (a *ChallengesApiService) ChallengeDeclineExecute(r ApiChallengeDeclineRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ChallengesApiService) ChallengeList

ChallengeList List your challenges

Get a list of challenges created by or targeted at you.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiChallengeListRequest

func (*ChallengesApiService) ChallengeListExecute

Execute executes the request

@return ChallengeList200Response

func (*ChallengesApiService) ChallengeOpen

ChallengeOpen Open-ended challenge

Create a challenge that any 2 players can join.

Share the URL of the challenge. the first 2 players to click it will be paired for a game.

The response body also contains `whiteUrl` and `blackUrl`. You can control which color each player gets by giving them these URLs, instead of the main challenge URL.

Open challenges expire after 24h.

To directly pair 2 known players, use [this endpoint](#operation/challengeCreate) instead, with the `acceptByToken` parameter.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiChallengeOpenRequest

func (*ChallengesApiService) ChallengeOpenExecute

func (a *ChallengesApiService) ChallengeOpenExecute(r ApiChallengeOpenRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*ChallengesApiService) ChallengeStartClocks

func (a *ChallengesApiService) ChallengeStartClocks(ctx context.Context, gameId interface{}) ApiChallengeStartClocksRequest

ChallengeStartClocks Start clocks of a game

Start the clocks of a game immediately, even if a player has not yet made a move.

Requires the OAuth tokens of both players with `challenge:write` scope.

If the clocks have already started, the call will have no effect.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiChallengeStartClocksRequest

func (*ChallengesApiService) ChallengeStartClocksExecute

func (a *ChallengesApiService) ChallengeStartClocksExecute(r ApiChallengeStartClocksRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ChallengesApiService) RoundAddTime

func (a *ChallengesApiService) RoundAddTime(ctx context.Context, gameId interface{}, seconds interface{}) ApiRoundAddTimeRequest

RoundAddTime Add time to the opponent clock

Add seconds to the opponent's clock. Can be used to create games with time odds.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@param seconds How many seconds to give
@return ApiRoundAddTimeRequest

func (*ChallengesApiService) RoundAddTimeExecute

func (a *ChallengesApiService) RoundAddTimeExecute(r ApiRoundAddTimeRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type ChatLineEvent

type ChatLineEvent struct {
	Type     interface{} `json:"type"`
	Room     interface{} `json:"room"`
	Username interface{} `json:"username"`
	Text     interface{} `json:"text"`
}

ChatLineEvent struct for ChatLineEvent

func NewChatLineEvent

func NewChatLineEvent(type_ interface{}, room interface{}, username interface{}, text interface{}) *ChatLineEvent

NewChatLineEvent instantiates a new ChatLineEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChatLineEventWithDefaults

func NewChatLineEventWithDefaults() *ChatLineEvent

NewChatLineEventWithDefaults instantiates a new ChatLineEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChatLineEvent) GetRoom

func (o *ChatLineEvent) GetRoom() interface{}

GetRoom returns the Room field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChatLineEvent) GetRoomOk

func (o *ChatLineEvent) GetRoomOk() (*interface{}, bool)

GetRoomOk returns a tuple with the Room field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChatLineEvent) GetText

func (o *ChatLineEvent) GetText() interface{}

GetText returns the Text field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChatLineEvent) GetTextOk

func (o *ChatLineEvent) GetTextOk() (*interface{}, bool)

GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChatLineEvent) GetType

func (o *ChatLineEvent) GetType() interface{}

GetType returns the Type field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChatLineEvent) GetTypeOk

func (o *ChatLineEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ChatLineEvent) GetUsername

func (o *ChatLineEvent) GetUsername() interface{}

GetUsername returns the Username field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ChatLineEvent) GetUsernameOk

func (o *ChatLineEvent) GetUsernameOk() (*interface{}, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (ChatLineEvent) MarshalJSON

func (o ChatLineEvent) MarshalJSON() ([]byte, error)

func (*ChatLineEvent) SetRoom

func (o *ChatLineEvent) SetRoom(v interface{})

SetRoom sets field value

func (*ChatLineEvent) SetText

func (o *ChatLineEvent) SetText(v interface{})

SetText sets field value

func (*ChatLineEvent) SetType

func (o *ChatLineEvent) SetType(v interface{})

SetType sets field value

func (*ChatLineEvent) SetUsername

func (o *ChatLineEvent) SetUsername(v interface{})

SetUsername sets field value

type Clock

type Clock struct {
	Limit     interface{} `json:"limit,omitempty"`
	Increment interface{} `json:"increment,omitempty"`
}

Clock struct for Clock

func NewClock

func NewClock() *Clock

NewClock instantiates a new Clock object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClockWithDefaults

func NewClockWithDefaults() *Clock

NewClockWithDefaults instantiates a new Clock object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Clock) GetIncrement

func (o *Clock) GetIncrement() interface{}

GetIncrement returns the Increment field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Clock) GetIncrementOk

func (o *Clock) GetIncrementOk() (*interface{}, bool)

GetIncrementOk returns a tuple with the Increment field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Clock) GetLimit

func (o *Clock) GetLimit() interface{}

GetLimit returns the Limit field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Clock) GetLimitOk

func (o *Clock) GetLimitOk() (*interface{}, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Clock) HasIncrement

func (o *Clock) HasIncrement() bool

HasIncrement returns a boolean if a field has been set.

func (*Clock) HasLimit

func (o *Clock) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (Clock) MarshalJSON

func (o Clock) MarshalJSON() ([]byte, error)

func (*Clock) SetIncrement

func (o *Clock) SetIncrement(v interface{})

SetIncrement gets a reference to the given interface{} and assigns it to the Increment field.

func (*Clock) SetLimit

func (o *Clock) SetLimit(v interface{})

SetLimit gets a reference to the given interface{} and assigns it to the Limit field.

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type Count

type Count struct {
	All      interface{} `json:"all,omitempty"`
	Rated    interface{} `json:"rated,omitempty"`
	Ai       interface{} `json:"ai,omitempty"`
	Draw     interface{} `json:"draw,omitempty"`
	DrawH    interface{} `json:"drawH,omitempty"`
	Loss     interface{} `json:"loss,omitempty"`
	LossH    interface{} `json:"lossH,omitempty"`
	Win      interface{} `json:"win,omitempty"`
	WinH     interface{} `json:"winH,omitempty"`
	Bookmark interface{} `json:"bookmark,omitempty"`
	Playing  interface{} `json:"playing,omitempty"`
	Import   interface{} `json:"import,omitempty"`
	Me       interface{} `json:"me,omitempty"`
}

Count struct for Count

func NewCount

func NewCount() *Count

NewCount instantiates a new Count object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCountWithDefaults

func NewCountWithDefaults() *Count

NewCountWithDefaults instantiates a new Count object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Count) GetAi

func (o *Count) GetAi() interface{}

GetAi returns the Ai field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetAiOk

func (o *Count) GetAiOk() (*interface{}, bool)

GetAiOk returns a tuple with the Ai field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetAll

func (o *Count) GetAll() interface{}

GetAll returns the All field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetAllOk

func (o *Count) GetAllOk() (*interface{}, bool)

GetAllOk returns a tuple with the All field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetBookmark

func (o *Count) GetBookmark() interface{}

GetBookmark returns the Bookmark field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetBookmarkOk

func (o *Count) GetBookmarkOk() (*interface{}, bool)

GetBookmarkOk returns a tuple with the Bookmark field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetDraw

func (o *Count) GetDraw() interface{}

GetDraw returns the Draw field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetDrawH

func (o *Count) GetDrawH() interface{}

GetDrawH returns the DrawH field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetDrawHOk

func (o *Count) GetDrawHOk() (*interface{}, bool)

GetDrawHOk returns a tuple with the DrawH field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetDrawOk

func (o *Count) GetDrawOk() (*interface{}, bool)

GetDrawOk returns a tuple with the Draw field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetImport

func (o *Count) GetImport() interface{}

GetImport returns the Import field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetImportOk

func (o *Count) GetImportOk() (*interface{}, bool)

GetImportOk returns a tuple with the Import field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetLoss

func (o *Count) GetLoss() interface{}

GetLoss returns the Loss field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetLossH

func (o *Count) GetLossH() interface{}

GetLossH returns the LossH field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetLossHOk

func (o *Count) GetLossHOk() (*interface{}, bool)

GetLossHOk returns a tuple with the LossH field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetLossOk

func (o *Count) GetLossOk() (*interface{}, bool)

GetLossOk returns a tuple with the Loss field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetMe

func (o *Count) GetMe() interface{}

GetMe returns the Me field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetMeOk

func (o *Count) GetMeOk() (*interface{}, bool)

GetMeOk returns a tuple with the Me field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetPlaying

func (o *Count) GetPlaying() interface{}

GetPlaying returns the Playing field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetPlayingOk

func (o *Count) GetPlayingOk() (*interface{}, bool)

GetPlayingOk returns a tuple with the Playing field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetRated

func (o *Count) GetRated() interface{}

GetRated returns the Rated field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetRatedOk

func (o *Count) GetRatedOk() (*interface{}, bool)

GetRatedOk returns a tuple with the Rated field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetWin

func (o *Count) GetWin() interface{}

GetWin returns the Win field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetWinH

func (o *Count) GetWinH() interface{}

GetWinH returns the WinH field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Count) GetWinHOk

func (o *Count) GetWinHOk() (*interface{}, bool)

GetWinHOk returns a tuple with the WinH field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) GetWinOk

func (o *Count) GetWinOk() (*interface{}, bool)

GetWinOk returns a tuple with the Win field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Count) HasAi

func (o *Count) HasAi() bool

HasAi returns a boolean if a field has been set.

func (*Count) HasAll

func (o *Count) HasAll() bool

HasAll returns a boolean if a field has been set.

func (*Count) HasBookmark

func (o *Count) HasBookmark() bool

HasBookmark returns a boolean if a field has been set.

func (*Count) HasDraw

func (o *Count) HasDraw() bool

HasDraw returns a boolean if a field has been set.

func (*Count) HasDrawH

func (o *Count) HasDrawH() bool

HasDrawH returns a boolean if a field has been set.

func (*Count) HasImport

func (o *Count) HasImport() bool

HasImport returns a boolean if a field has been set.

func (*Count) HasLoss

func (o *Count) HasLoss() bool

HasLoss returns a boolean if a field has been set.

func (*Count) HasLossH

func (o *Count) HasLossH() bool

HasLossH returns a boolean if a field has been set.

func (*Count) HasMe

func (o *Count) HasMe() bool

HasMe returns a boolean if a field has been set.

func (*Count) HasPlaying

func (o *Count) HasPlaying() bool

HasPlaying returns a boolean if a field has been set.

func (*Count) HasRated

func (o *Count) HasRated() bool

HasRated returns a boolean if a field has been set.

func (*Count) HasWin

func (o *Count) HasWin() bool

HasWin returns a boolean if a field has been set.

func (*Count) HasWinH

func (o *Count) HasWinH() bool

HasWinH returns a boolean if a field has been set.

func (Count) MarshalJSON

func (o Count) MarshalJSON() ([]byte, error)

func (*Count) SetAi

func (o *Count) SetAi(v interface{})

SetAi gets a reference to the given interface{} and assigns it to the Ai field.

func (*Count) SetAll

func (o *Count) SetAll(v interface{})

SetAll gets a reference to the given interface{} and assigns it to the All field.

func (*Count) SetBookmark

func (o *Count) SetBookmark(v interface{})

SetBookmark gets a reference to the given interface{} and assigns it to the Bookmark field.

func (*Count) SetDraw

func (o *Count) SetDraw(v interface{})

SetDraw gets a reference to the given interface{} and assigns it to the Draw field.

func (*Count) SetDrawH

func (o *Count) SetDrawH(v interface{})

SetDrawH gets a reference to the given interface{} and assigns it to the DrawH field.

func (*Count) SetImport

func (o *Count) SetImport(v interface{})

SetImport gets a reference to the given interface{} and assigns it to the Import field.

func (*Count) SetLoss

func (o *Count) SetLoss(v interface{})

SetLoss gets a reference to the given interface{} and assigns it to the Loss field.

func (*Count) SetLossH

func (o *Count) SetLossH(v interface{})

SetLossH gets a reference to the given interface{} and assigns it to the LossH field.

func (*Count) SetMe

func (o *Count) SetMe(v interface{})

SetMe gets a reference to the given interface{} and assigns it to the Me field.

func (*Count) SetPlaying

func (o *Count) SetPlaying(v interface{})

SetPlaying gets a reference to the given interface{} and assigns it to the Playing field.

func (*Count) SetRated

func (o *Count) SetRated(v interface{})

SetRated gets a reference to the given interface{} and assigns it to the Rated field.

func (*Count) SetWin

func (o *Count) SetWin(v interface{})

SetWin gets a reference to the given interface{} and assigns it to the Win field.

func (*Count) SetWinH

func (o *Count) SetWinH(v interface{})

SetWinH gets a reference to the given interface{} and assigns it to the WinH field.

type Error

type Error struct {
	// The cause of the error.
	Error interface{} `json:"error,omitempty"`
}

Error struct for Error

func NewError

func NewError() *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetError

func (o *Error) GetError() interface{}

GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Error) GetErrorOk

func (o *Error) GetErrorOk() (*interface{}, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Error) HasError

func (o *Error) HasError() bool

HasError returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetError

func (o *Error) SetError(v interface{})

SetError gets a reference to the given interface{} and assigns it to the Error field.

type ExternalEngine

type ExternalEngine struct {
	// Unique engine registration ID.
	Id interface{} `json:"id"`
	// Display name of the engine.
	Name interface{} `json:"name"`
	// A secret token that can be used to [*request* analysis](#tag/External-engine/operation/apiExternalEngineAnalyse) from this external engine.
	ClientSecret interface{} `json:"clientSecret"`
	// The user this engine has been registered for.
	UserId interface{} `json:"userId"`
	// Maximum number of available threads.
	MaxThreads interface{} `json:"maxThreads"`
	// Maximum available hash table size, in MiB.
	MaxHash interface{} `json:"maxHash"`
	// Estimated depth of normal search.
	DefaultDepth interface{} `json:"defaultDepth"`
	// List of supported chess variants.
	Variants interface{} `json:"variants"`
	// Arbitrary data that the engine provider can use for identification or bookkeeping.  Users can read this information, but updating it requires knowing or changing the `providerSecret`.
	ProviderData interface{} `json:"providerData,omitempty"`
}

ExternalEngine struct for ExternalEngine

func NewExternalEngine

func NewExternalEngine(id interface{}, name interface{}, clientSecret interface{}, userId interface{}, maxThreads interface{}, maxHash interface{}, defaultDepth interface{}, variants interface{}) *ExternalEngine

NewExternalEngine instantiates a new ExternalEngine object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExternalEngineWithDefaults

func NewExternalEngineWithDefaults() *ExternalEngine

NewExternalEngineWithDefaults instantiates a new ExternalEngine object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExternalEngine) GetClientSecret

func (o *ExternalEngine) GetClientSecret() interface{}

GetClientSecret returns the ClientSecret field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetClientSecretOk

func (o *ExternalEngine) GetClientSecretOk() (*interface{}, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetDefaultDepth

func (o *ExternalEngine) GetDefaultDepth() interface{}

GetDefaultDepth returns the DefaultDepth field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetDefaultDepthOk

func (o *ExternalEngine) GetDefaultDepthOk() (*interface{}, bool)

GetDefaultDepthOk returns a tuple with the DefaultDepth field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetId

func (o *ExternalEngine) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetIdOk

func (o *ExternalEngine) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetMaxHash

func (o *ExternalEngine) GetMaxHash() interface{}

GetMaxHash returns the MaxHash field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetMaxHashOk

func (o *ExternalEngine) GetMaxHashOk() (*interface{}, bool)

GetMaxHashOk returns a tuple with the MaxHash field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetMaxThreads

func (o *ExternalEngine) GetMaxThreads() interface{}

GetMaxThreads returns the MaxThreads field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetMaxThreadsOk

func (o *ExternalEngine) GetMaxThreadsOk() (*interface{}, bool)

GetMaxThreadsOk returns a tuple with the MaxThreads field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetName

func (o *ExternalEngine) GetName() interface{}

GetName returns the Name field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetNameOk

func (o *ExternalEngine) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetProviderData

func (o *ExternalEngine) GetProviderData() interface{}

GetProviderData returns the ProviderData field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ExternalEngine) GetProviderDataOk

func (o *ExternalEngine) GetProviderDataOk() (*interface{}, bool)

GetProviderDataOk returns a tuple with the ProviderData field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetUserId

func (o *ExternalEngine) GetUserId() interface{}

GetUserId returns the UserId field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetUserIdOk

func (o *ExternalEngine) GetUserIdOk() (*interface{}, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) GetVariants

func (o *ExternalEngine) GetVariants() interface{}

GetVariants returns the Variants field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngine) GetVariantsOk

func (o *ExternalEngine) GetVariantsOk() (*interface{}, bool)

GetVariantsOk returns a tuple with the Variants field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngine) HasProviderData

func (o *ExternalEngine) HasProviderData() bool

HasProviderData returns a boolean if a field has been set.

func (ExternalEngine) MarshalJSON

func (o ExternalEngine) MarshalJSON() ([]byte, error)

func (*ExternalEngine) SetClientSecret

func (o *ExternalEngine) SetClientSecret(v interface{})

SetClientSecret sets field value

func (*ExternalEngine) SetDefaultDepth

func (o *ExternalEngine) SetDefaultDepth(v interface{})

SetDefaultDepth sets field value

func (*ExternalEngine) SetId

func (o *ExternalEngine) SetId(v interface{})

SetId sets field value

func (*ExternalEngine) SetMaxHash

func (o *ExternalEngine) SetMaxHash(v interface{})

SetMaxHash sets field value

func (*ExternalEngine) SetMaxThreads

func (o *ExternalEngine) SetMaxThreads(v interface{})

SetMaxThreads sets field value

func (*ExternalEngine) SetName

func (o *ExternalEngine) SetName(v interface{})

SetName sets field value

func (*ExternalEngine) SetProviderData

func (o *ExternalEngine) SetProviderData(v interface{})

SetProviderData gets a reference to the given interface{} and assigns it to the ProviderData field.

func (*ExternalEngine) SetUserId

func (o *ExternalEngine) SetUserId(v interface{})

SetUserId sets field value

func (*ExternalEngine) SetVariants

func (o *ExternalEngine) SetVariants(v interface{})

SetVariants sets field value

type ExternalEngineApiService

type ExternalEngineApiService service

ExternalEngineApiService ExternalEngineApi service

func (*ExternalEngineApiService) ApiExternalEngineAcquire

ApiExternalEngineAcquire Acquire analysis request

**Endpoint: `https://engine.lichess.ovh/api/external-engine/work`**

Wait for an analysis requests to any of the external engines that have been registered with the given `secret`.

Uses long polling.

After acquiring a request, the provider should immediately [start streaming the results](#tag/External-engine/operation/apiExternalEngineSubmit).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiExternalEngineAcquireRequest

func (*ExternalEngineApiService) ApiExternalEngineAcquireExecute

Execute executes the request

@return ApiExternalEngineAcquire200Response

func (*ExternalEngineApiService) ApiExternalEngineAnalyse

func (a *ExternalEngineApiService) ApiExternalEngineAnalyse(ctx context.Context, id interface{}) ApiApiExternalEngineAnalyseRequest

ApiExternalEngineAnalyse Analyse with external engine

**Endpoint: `https://engine.lichess.ovh/api/external-engine/{id}/analyse`**

Request analysis from an external engine.

Response content is streamed as [newline delimited JSON](#section/Introduction/Streaming-with-ND-JSON). The properties are based on the [UCI specification](https://backscattering.de/chess/uci/#engine). Analysis stops when the client goes away, the requested limit is reached, or the provider goes away.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The external engine id.
@return ApiApiExternalEngineAnalyseRequest

func (*ExternalEngineApiService) ApiExternalEngineAnalyseExecute

Execute executes the request

@return ApiExternalEngineAnalyse200Response

func (*ExternalEngineApiService) ApiExternalEngineCreate

ApiExternalEngineCreate Create external engine

Registers a new external engine for the user. It can then be selected and used on the analysis board.

After registering, the provider should start waiting for analyis requests.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiExternalEngineCreateRequest

func (*ExternalEngineApiService) ApiExternalEngineCreateExecute

Execute executes the request

@return ExternalEngine

func (*ExternalEngineApiService) ApiExternalEngineDelete

func (a *ExternalEngineApiService) ApiExternalEngineDelete(ctx context.Context, id interface{}) ApiApiExternalEngineDeleteRequest

ApiExternalEngineDelete Delete external engine

Unregisters an external engine.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The external engine id.
@return ApiApiExternalEngineDeleteRequest

func (*ExternalEngineApiService) ApiExternalEngineDeleteExecute

func (a *ExternalEngineApiService) ApiExternalEngineDeleteExecute(r ApiApiExternalEngineDeleteRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*ExternalEngineApiService) ApiExternalEngineGet

func (a *ExternalEngineApiService) ApiExternalEngineGet(ctx context.Context, id interface{}) ApiApiExternalEngineGetRequest

ApiExternalEngineGet Get external engine

Get properties and credentials of an external engine.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The external engine id.
@return ApiApiExternalEngineGetRequest

func (*ExternalEngineApiService) ApiExternalEngineGetExecute

Execute executes the request

@return ExternalEngine

func (*ExternalEngineApiService) ApiExternalEngineList

ApiExternalEngineList List external engines

Lists all external engines that have been registered for the user, and the credentials required to use them.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiExternalEngineListRequest

func (*ExternalEngineApiService) ApiExternalEngineListExecute

Execute executes the request

@return []ExternalEngine

func (*ExternalEngineApiService) ApiExternalEnginePut

func (a *ExternalEngineApiService) ApiExternalEnginePut(ctx context.Context, id interface{}) ApiApiExternalEnginePutRequest

ApiExternalEnginePut Update external engine

Updates the properties of an external engine.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The external engine id.
@return ApiApiExternalEnginePutRequest

func (*ExternalEngineApiService) ApiExternalEnginePutExecute

Execute executes the request

@return ExternalEngine

func (*ExternalEngineApiService) ApiExternalEngineSubmit

func (a *ExternalEngineApiService) ApiExternalEngineSubmit(ctx context.Context, id interface{}) ApiApiExternalEngineSubmitRequest

ApiExternalEngineSubmit Answer analysis request

**Endpoint: `https://engine.lichess.ovh/api/external-engine/work/{id}`**

Submit a stream of analysis as [UCI output](https://backscattering.de/chess/uci/#engine-info).

* The engine should always be in `UCI_Chess960` mode. * `UCI_AnalyseMode` enabled if available. * It produces `info` with at least:

  • `depth`
  • `multipv` (between 1 and 5)
  • `score`
  • `nodes`
  • `time`
  • `pv`

The server may close the connection at any time, indicating that the requester has gone away and analysis should be stopped.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiApiExternalEngineSubmitRequest

func (*ExternalEngineApiService) ApiExternalEngineSubmitExecute

func (a *ExternalEngineApiService) ApiExternalEngineSubmitExecute(r ApiApiExternalEngineSubmitRequest) (*http.Response, error)

Execute executes the request

type ExternalEngineRegistration

type ExternalEngineRegistration struct {
	// Display name of the engine.
	Name interface{} `json:"name"`
	// Maximum number of available threads.
	MaxThreads interface{} `json:"maxThreads"`
	// Maximum available hash table size, in MiB.
	MaxHash interface{} `json:"maxHash"`
	// Estimated depth of normal search.
	DefaultDepth interface{} `json:"defaultDepth"`
	// Optional list of supported chess variants.
	Variants interface{} `json:"variants,omitempty"`
	// A random token that can be used to [wait for analysis requests](#tag/External-engine/operation/apiExternalEngineAcquire) and provide analysis.  The engine provider should securely generate a random string.  The token will not be readable again, even by the user.  The analysis provider can register multiple engines with the same token, even for different users, and wait for analysis requests from any of them. In this case, the request must not be made via CORS, so that the token is not revealed to any of the users.
	ProviderSecret interface{} `json:"providerSecret"`
	// Arbitrary data that the engine provider can use for identification or bookkeeping.  Users can read this information, but updating it requires knowing or changing the `providerSecret`.
	ProviderData interface{} `json:"providerData,omitempty"`
}

ExternalEngineRegistration struct for ExternalEngineRegistration

func NewExternalEngineRegistration

func NewExternalEngineRegistration(name interface{}, maxThreads interface{}, maxHash interface{}, defaultDepth interface{}, providerSecret interface{}) *ExternalEngineRegistration

NewExternalEngineRegistration instantiates a new ExternalEngineRegistration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExternalEngineRegistrationWithDefaults

func NewExternalEngineRegistrationWithDefaults() *ExternalEngineRegistration

NewExternalEngineRegistrationWithDefaults instantiates a new ExternalEngineRegistration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExternalEngineRegistration) GetDefaultDepth

func (o *ExternalEngineRegistration) GetDefaultDepth() interface{}

GetDefaultDepth returns the DefaultDepth field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineRegistration) GetDefaultDepthOk

func (o *ExternalEngineRegistration) GetDefaultDepthOk() (*interface{}, bool)

GetDefaultDepthOk returns a tuple with the DefaultDepth field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetMaxHash

func (o *ExternalEngineRegistration) GetMaxHash() interface{}

GetMaxHash returns the MaxHash field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineRegistration) GetMaxHashOk

func (o *ExternalEngineRegistration) GetMaxHashOk() (*interface{}, bool)

GetMaxHashOk returns a tuple with the MaxHash field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetMaxThreads

func (o *ExternalEngineRegistration) GetMaxThreads() interface{}

GetMaxThreads returns the MaxThreads field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineRegistration) GetMaxThreadsOk

func (o *ExternalEngineRegistration) GetMaxThreadsOk() (*interface{}, bool)

GetMaxThreadsOk returns a tuple with the MaxThreads field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetName

func (o *ExternalEngineRegistration) GetName() interface{}

GetName returns the Name field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineRegistration) GetNameOk

func (o *ExternalEngineRegistration) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetProviderData

func (o *ExternalEngineRegistration) GetProviderData() interface{}

GetProviderData returns the ProviderData field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ExternalEngineRegistration) GetProviderDataOk

func (o *ExternalEngineRegistration) GetProviderDataOk() (*interface{}, bool)

GetProviderDataOk returns a tuple with the ProviderData field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetProviderSecret

func (o *ExternalEngineRegistration) GetProviderSecret() interface{}

GetProviderSecret returns the ProviderSecret field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineRegistration) GetProviderSecretOk

func (o *ExternalEngineRegistration) GetProviderSecretOk() (*interface{}, bool)

GetProviderSecretOk returns a tuple with the ProviderSecret field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) GetVariants

func (o *ExternalEngineRegistration) GetVariants() interface{}

GetVariants returns the Variants field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ExternalEngineRegistration) GetVariantsOk

func (o *ExternalEngineRegistration) GetVariantsOk() (*interface{}, bool)

GetVariantsOk returns a tuple with the Variants field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineRegistration) HasProviderData

func (o *ExternalEngineRegistration) HasProviderData() bool

HasProviderData returns a boolean if a field has been set.

func (*ExternalEngineRegistration) HasVariants

func (o *ExternalEngineRegistration) HasVariants() bool

HasVariants returns a boolean if a field has been set.

func (ExternalEngineRegistration) MarshalJSON

func (o ExternalEngineRegistration) MarshalJSON() ([]byte, error)

func (*ExternalEngineRegistration) SetDefaultDepth

func (o *ExternalEngineRegistration) SetDefaultDepth(v interface{})

SetDefaultDepth sets field value

func (*ExternalEngineRegistration) SetMaxHash

func (o *ExternalEngineRegistration) SetMaxHash(v interface{})

SetMaxHash sets field value

func (*ExternalEngineRegistration) SetMaxThreads

func (o *ExternalEngineRegistration) SetMaxThreads(v interface{})

SetMaxThreads sets field value

func (*ExternalEngineRegistration) SetName

func (o *ExternalEngineRegistration) SetName(v interface{})

SetName sets field value

func (*ExternalEngineRegistration) SetProviderData

func (o *ExternalEngineRegistration) SetProviderData(v interface{})

SetProviderData gets a reference to the given interface{} and assigns it to the ProviderData field.

func (*ExternalEngineRegistration) SetProviderSecret

func (o *ExternalEngineRegistration) SetProviderSecret(v interface{})

SetProviderSecret sets field value

func (*ExternalEngineRegistration) SetVariants

func (o *ExternalEngineRegistration) SetVariants(v interface{})

SetVariants gets a reference to the given interface{} and assigns it to the Variants field.

type ExternalEngineWork

type ExternalEngineWork struct {
	// Arbitary string that identifies the analysis session. Providers may wish to clear the hash table between sessions.
	SessionId interface{} `json:"sessionId"`
	// Number of threads to use for analysis.
	Threads interface{} `json:"threads"`
	// Hash table size to use for analysis, in MiB.
	Hash interface{} `json:"hash"`
	// Request an infinite search (rather than roughly aiming for `defaultDepth`).
	Infinite interface{} `json:"infinite,omitempty"`
	// Requested number of principal variations.
	MultiPv interface{} `json:"multiPv"`
	Variant UciVariant  `json:"variant"`
	// Initial position of the game.
	InitialFen interface{} `json:"initialFen"`
	// List of moves played from the initial position, in UCI notation.
	Moves interface{} `json:"moves"`
}

ExternalEngineWork struct for ExternalEngineWork

func NewExternalEngineWork

func NewExternalEngineWork(sessionId interface{}, threads interface{}, hash interface{}, multiPv interface{}, variant UciVariant, initialFen interface{}, moves interface{}) *ExternalEngineWork

NewExternalEngineWork instantiates a new ExternalEngineWork object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExternalEngineWorkWithDefaults

func NewExternalEngineWorkWithDefaults() *ExternalEngineWork

NewExternalEngineWorkWithDefaults instantiates a new ExternalEngineWork object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExternalEngineWork) GetHash

func (o *ExternalEngineWork) GetHash() interface{}

GetHash returns the Hash field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetHashOk

func (o *ExternalEngineWork) GetHashOk() (*interface{}, bool)

GetHashOk returns a tuple with the Hash field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetInfinite

func (o *ExternalEngineWork) GetInfinite() interface{}

GetInfinite returns the Infinite field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ExternalEngineWork) GetInfiniteOk

func (o *ExternalEngineWork) GetInfiniteOk() (*interface{}, bool)

GetInfiniteOk returns a tuple with the Infinite field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetInitialFen

func (o *ExternalEngineWork) GetInitialFen() interface{}

GetInitialFen returns the InitialFen field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetInitialFenOk

func (o *ExternalEngineWork) GetInitialFenOk() (*interface{}, bool)

GetInitialFenOk returns a tuple with the InitialFen field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetMoves

func (o *ExternalEngineWork) GetMoves() interface{}

GetMoves returns the Moves field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetMovesOk

func (o *ExternalEngineWork) GetMovesOk() (*interface{}, bool)

GetMovesOk returns a tuple with the Moves field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetMultiPv

func (o *ExternalEngineWork) GetMultiPv() interface{}

GetMultiPv returns the MultiPv field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetMultiPvOk

func (o *ExternalEngineWork) GetMultiPvOk() (*interface{}, bool)

GetMultiPvOk returns a tuple with the MultiPv field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetSessionId

func (o *ExternalEngineWork) GetSessionId() interface{}

GetSessionId returns the SessionId field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetSessionIdOk

func (o *ExternalEngineWork) GetSessionIdOk() (*interface{}, bool)

GetSessionIdOk returns a tuple with the SessionId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetThreads

func (o *ExternalEngineWork) GetThreads() interface{}

GetThreads returns the Threads field value If the value is explicit nil, the zero value for interface{} will be returned

func (*ExternalEngineWork) GetThreadsOk

func (o *ExternalEngineWork) GetThreadsOk() (*interface{}, bool)

GetThreadsOk returns a tuple with the Threads field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ExternalEngineWork) GetVariant

func (o *ExternalEngineWork) GetVariant() UciVariant

GetVariant returns the Variant field value

func (*ExternalEngineWork) GetVariantOk

func (o *ExternalEngineWork) GetVariantOk() (*UciVariant, bool)

GetVariantOk returns a tuple with the Variant field value and a boolean to check if the value has been set.

func (*ExternalEngineWork) HasInfinite

func (o *ExternalEngineWork) HasInfinite() bool

HasInfinite returns a boolean if a field has been set.

func (ExternalEngineWork) MarshalJSON

func (o ExternalEngineWork) MarshalJSON() ([]byte, error)

func (*ExternalEngineWork) SetHash

func (o *ExternalEngineWork) SetHash(v interface{})

SetHash sets field value

func (*ExternalEngineWork) SetInfinite

func (o *ExternalEngineWork) SetInfinite(v interface{})

SetInfinite gets a reference to the given interface{} and assigns it to the Infinite field.

func (*ExternalEngineWork) SetInitialFen

func (o *ExternalEngineWork) SetInitialFen(v interface{})

SetInitialFen sets field value

func (*ExternalEngineWork) SetMoves

func (o *ExternalEngineWork) SetMoves(v interface{})

SetMoves sets field value

func (*ExternalEngineWork) SetMultiPv

func (o *ExternalEngineWork) SetMultiPv(v interface{})

SetMultiPv sets field value

func (*ExternalEngineWork) SetSessionId

func (o *ExternalEngineWork) SetSessionId(v interface{})

SetSessionId sets field value

func (*ExternalEngineWork) SetThreads

func (o *ExternalEngineWork) SetThreads(v interface{})

SetThreads sets field value

func (*ExternalEngineWork) SetVariant

func (o *ExternalEngineWork) SetVariant(v UciVariant)

SetVariant sets field value

type GameEventInfo

type GameEventInfo struct {
	Id     interface{}          `json:"id,omitempty"`
	Source interface{}          `json:"source,omitempty"`
	Compat *GameEventInfoCompat `json:"compat,omitempty"`
}

GameEventInfo struct for GameEventInfo

func NewGameEventInfo

func NewGameEventInfo() *GameEventInfo

NewGameEventInfo instantiates a new GameEventInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameEventInfoWithDefaults

func NewGameEventInfoWithDefaults() *GameEventInfo

NewGameEventInfoWithDefaults instantiates a new GameEventInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameEventInfo) GetCompat

func (o *GameEventInfo) GetCompat() GameEventInfoCompat

GetCompat returns the Compat field value if set, zero value otherwise.

func (*GameEventInfo) GetCompatOk

func (o *GameEventInfo) GetCompatOk() (*GameEventInfoCompat, bool)

GetCompatOk returns a tuple with the Compat field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameEventInfo) GetId

func (o *GameEventInfo) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventInfo) GetIdOk

func (o *GameEventInfo) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventInfo) GetSource

func (o *GameEventInfo) GetSource() interface{}

GetSource returns the Source field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventInfo) GetSourceOk

func (o *GameEventInfo) GetSourceOk() (*interface{}, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventInfo) HasCompat

func (o *GameEventInfo) HasCompat() bool

HasCompat returns a boolean if a field has been set.

func (*GameEventInfo) HasId

func (o *GameEventInfo) HasId() bool

HasId returns a boolean if a field has been set.

func (*GameEventInfo) HasSource

func (o *GameEventInfo) HasSource() bool

HasSource returns a boolean if a field has been set.

func (GameEventInfo) MarshalJSON

func (o GameEventInfo) MarshalJSON() ([]byte, error)

func (*GameEventInfo) SetCompat

func (o *GameEventInfo) SetCompat(v GameEventInfoCompat)

SetCompat gets a reference to the given GameEventInfoCompat and assigns it to the Compat field.

func (*GameEventInfo) SetId

func (o *GameEventInfo) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*GameEventInfo) SetSource

func (o *GameEventInfo) SetSource(v interface{})

SetSource gets a reference to the given interface{} and assigns it to the Source field.

type GameEventInfoCompat

type GameEventInfoCompat struct {
	Bot   interface{} `json:"bot,omitempty"`
	Board interface{} `json:"board,omitempty"`
}

GameEventInfoCompat struct for GameEventInfoCompat

func NewGameEventInfoCompat

func NewGameEventInfoCompat() *GameEventInfoCompat

NewGameEventInfoCompat instantiates a new GameEventInfoCompat object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameEventInfoCompatWithDefaults

func NewGameEventInfoCompatWithDefaults() *GameEventInfoCompat

NewGameEventInfoCompatWithDefaults instantiates a new GameEventInfoCompat object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameEventInfoCompat) GetBoard

func (o *GameEventInfoCompat) GetBoard() interface{}

GetBoard returns the Board field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventInfoCompat) GetBoardOk

func (o *GameEventInfoCompat) GetBoardOk() (*interface{}, bool)

GetBoardOk returns a tuple with the Board field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventInfoCompat) GetBot

func (o *GameEventInfoCompat) GetBot() interface{}

GetBot returns the Bot field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventInfoCompat) GetBotOk

func (o *GameEventInfoCompat) GetBotOk() (*interface{}, bool)

GetBotOk returns a tuple with the Bot field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventInfoCompat) HasBoard

func (o *GameEventInfoCompat) HasBoard() bool

HasBoard returns a boolean if a field has been set.

func (*GameEventInfoCompat) HasBot

func (o *GameEventInfoCompat) HasBot() bool

HasBot returns a boolean if a field has been set.

func (GameEventInfoCompat) MarshalJSON

func (o GameEventInfoCompat) MarshalJSON() ([]byte, error)

func (*GameEventInfoCompat) SetBoard

func (o *GameEventInfoCompat) SetBoard(v interface{})

SetBoard gets a reference to the given interface{} and assigns it to the Board field.

func (*GameEventInfoCompat) SetBot

func (o *GameEventInfoCompat) SetBot(v interface{})

SetBot gets a reference to the given interface{} and assigns it to the Bot field.

type GameEventPlayer

type GameEventPlayer struct {
	AiLevel     interface{} `json:"aiLevel,omitempty"`
	Id          interface{} `json:"id,omitempty"`
	Name        interface{} `json:"name,omitempty"`
	Title       interface{} `json:"title,omitempty"`
	Rating      interface{} `json:"rating,omitempty"`
	Provisional interface{} `json:"provisional,omitempty"`
}

GameEventPlayer struct for GameEventPlayer

func NewGameEventPlayer

func NewGameEventPlayer() *GameEventPlayer

NewGameEventPlayer instantiates a new GameEventPlayer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameEventPlayerWithDefaults

func NewGameEventPlayerWithDefaults() *GameEventPlayer

NewGameEventPlayerWithDefaults instantiates a new GameEventPlayer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameEventPlayer) GetAiLevel

func (o *GameEventPlayer) GetAiLevel() interface{}

GetAiLevel returns the AiLevel field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetAiLevelOk

func (o *GameEventPlayer) GetAiLevelOk() (*interface{}, bool)

GetAiLevelOk returns a tuple with the AiLevel field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) GetId

func (o *GameEventPlayer) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetIdOk

func (o *GameEventPlayer) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) GetName

func (o *GameEventPlayer) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetNameOk

func (o *GameEventPlayer) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) GetProvisional

func (o *GameEventPlayer) GetProvisional() interface{}

GetProvisional returns the Provisional field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetProvisionalOk

func (o *GameEventPlayer) GetProvisionalOk() (*interface{}, bool)

GetProvisionalOk returns a tuple with the Provisional field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) GetRating

func (o *GameEventPlayer) GetRating() interface{}

GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetRatingOk

func (o *GameEventPlayer) GetRatingOk() (*interface{}, bool)

GetRatingOk returns a tuple with the Rating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) GetTitle

func (o *GameEventPlayer) GetTitle() interface{}

GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameEventPlayer) GetTitleOk

func (o *GameEventPlayer) GetTitleOk() (*interface{}, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameEventPlayer) HasAiLevel

func (o *GameEventPlayer) HasAiLevel() bool

HasAiLevel returns a boolean if a field has been set.

func (*GameEventPlayer) HasId

func (o *GameEventPlayer) HasId() bool

HasId returns a boolean if a field has been set.

func (*GameEventPlayer) HasName

func (o *GameEventPlayer) HasName() bool

HasName returns a boolean if a field has been set.

func (*GameEventPlayer) HasProvisional

func (o *GameEventPlayer) HasProvisional() bool

HasProvisional returns a boolean if a field has been set.

func (*GameEventPlayer) HasRating

func (o *GameEventPlayer) HasRating() bool

HasRating returns a boolean if a field has been set.

func (*GameEventPlayer) HasTitle

func (o *GameEventPlayer) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (GameEventPlayer) MarshalJSON

func (o GameEventPlayer) MarshalJSON() ([]byte, error)

func (*GameEventPlayer) SetAiLevel

func (o *GameEventPlayer) SetAiLevel(v interface{})

SetAiLevel gets a reference to the given interface{} and assigns it to the AiLevel field.

func (*GameEventPlayer) SetId

func (o *GameEventPlayer) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*GameEventPlayer) SetName

func (o *GameEventPlayer) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*GameEventPlayer) SetProvisional

func (o *GameEventPlayer) SetProvisional(v interface{})

SetProvisional gets a reference to the given interface{} and assigns it to the Provisional field.

func (*GameEventPlayer) SetRating

func (o *GameEventPlayer) SetRating(v interface{})

SetRating gets a reference to the given interface{} and assigns it to the Rating field.

func (*GameEventPlayer) SetTitle

func (o *GameEventPlayer) SetTitle(v interface{})

SetTitle gets a reference to the given interface{} and assigns it to the Title field.

type GameFinishEvent

type GameFinishEvent struct {
	Type interface{}    `json:"type,omitempty"`
	Game *GameEventInfo `json:"game,omitempty"`
}

GameFinishEvent struct for GameFinishEvent

func NewGameFinishEvent

func NewGameFinishEvent() *GameFinishEvent

NewGameFinishEvent instantiates a new GameFinishEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameFinishEventWithDefaults

func NewGameFinishEventWithDefaults() *GameFinishEvent

NewGameFinishEventWithDefaults instantiates a new GameFinishEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameFinishEvent) GetGame

func (o *GameFinishEvent) GetGame() GameEventInfo

GetGame returns the Game field value if set, zero value otherwise.

func (*GameFinishEvent) GetGameOk

func (o *GameFinishEvent) GetGameOk() (*GameEventInfo, bool)

GetGameOk returns a tuple with the Game field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameFinishEvent) GetType

func (o *GameFinishEvent) GetType() interface{}

GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameFinishEvent) GetTypeOk

func (o *GameFinishEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFinishEvent) HasGame

func (o *GameFinishEvent) HasGame() bool

HasGame returns a boolean if a field has been set.

func (*GameFinishEvent) HasType

func (o *GameFinishEvent) HasType() bool

HasType returns a boolean if a field has been set.

func (GameFinishEvent) MarshalJSON

func (o GameFinishEvent) MarshalJSON() ([]byte, error)

func (*GameFinishEvent) SetGame

func (o *GameFinishEvent) SetGame(v GameEventInfo)

SetGame gets a reference to the given GameEventInfo and assigns it to the Game field.

func (*GameFinishEvent) SetType

func (o *GameFinishEvent) SetType(v interface{})

SetType gets a reference to the given interface{} and assigns it to the Type field.

type GameFullEvent

type GameFullEvent struct {
	Type         interface{}       `json:"type"`
	Id           interface{}       `json:"id"`
	Variant      Variant           `json:"variant"`
	Clock        interface{}       `json:"clock"`
	Speed        Speed             `json:"speed"`
	Perf         GameFullEventPerf `json:"perf"`
	Rated        interface{}       `json:"rated"`
	CreatedAt    interface{}       `json:"createdAt"`
	White        GameEventPlayer   `json:"white"`
	Black        GameEventPlayer   `json:"black"`
	InitialFen   interface{}       `json:"initialFen"`
	State        GameStateEvent    `json:"state"`
	TournamentId interface{}       `json:"tournamentId,omitempty"`
}

GameFullEvent struct for GameFullEvent

func NewGameFullEvent

func NewGameFullEvent(type_ interface{}, id interface{}, variant Variant, clock interface{}, speed Speed, perf GameFullEventPerf, rated interface{}, createdAt interface{}, white GameEventPlayer, black GameEventPlayer, initialFen interface{}, state GameStateEvent) *GameFullEvent

NewGameFullEvent instantiates a new GameFullEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameFullEventWithDefaults

func NewGameFullEventWithDefaults() *GameFullEvent

NewGameFullEventWithDefaults instantiates a new GameFullEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameFullEvent) GetBlack

func (o *GameFullEvent) GetBlack() GameEventPlayer

GetBlack returns the Black field value

func (*GameFullEvent) GetBlackOk

func (o *GameFullEvent) GetBlackOk() (*GameEventPlayer, bool)

GetBlackOk returns a tuple with the Black field value and a boolean to check if the value has been set.

func (*GameFullEvent) GetClock

func (o *GameFullEvent) GetClock() interface{}

GetClock returns the Clock field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetClockOk

func (o *GameFullEvent) GetClockOk() (*interface{}, bool)

GetClockOk returns a tuple with the Clock field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetCreatedAt

func (o *GameFullEvent) GetCreatedAt() interface{}

GetCreatedAt returns the CreatedAt field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetCreatedAtOk

func (o *GameFullEvent) GetCreatedAtOk() (*interface{}, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetId

func (o *GameFullEvent) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetIdOk

func (o *GameFullEvent) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetInitialFen

func (o *GameFullEvent) GetInitialFen() interface{}

GetInitialFen returns the InitialFen field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetInitialFenOk

func (o *GameFullEvent) GetInitialFenOk() (*interface{}, bool)

GetInitialFenOk returns a tuple with the InitialFen field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetPerf

func (o *GameFullEvent) GetPerf() GameFullEventPerf

GetPerf returns the Perf field value

func (*GameFullEvent) GetPerfOk

func (o *GameFullEvent) GetPerfOk() (*GameFullEventPerf, bool)

GetPerfOk returns a tuple with the Perf field value and a boolean to check if the value has been set.

func (*GameFullEvent) GetRated

func (o *GameFullEvent) GetRated() interface{}

GetRated returns the Rated field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetRatedOk

func (o *GameFullEvent) GetRatedOk() (*interface{}, bool)

GetRatedOk returns a tuple with the Rated field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetSpeed

func (o *GameFullEvent) GetSpeed() Speed

GetSpeed returns the Speed field value

func (*GameFullEvent) GetSpeedOk

func (o *GameFullEvent) GetSpeedOk() (*Speed, bool)

GetSpeedOk returns a tuple with the Speed field value and a boolean to check if the value has been set.

func (*GameFullEvent) GetState

func (o *GameFullEvent) GetState() GameStateEvent

GetState returns the State field value

func (*GameFullEvent) GetStateOk

func (o *GameFullEvent) GetStateOk() (*GameStateEvent, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*GameFullEvent) GetTournamentId

func (o *GameFullEvent) GetTournamentId() interface{}

GetTournamentId returns the TournamentId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameFullEvent) GetTournamentIdOk

func (o *GameFullEvent) GetTournamentIdOk() (*interface{}, bool)

GetTournamentIdOk returns a tuple with the TournamentId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetType

func (o *GameFullEvent) GetType() interface{}

GetType returns the Type field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameFullEvent) GetTypeOk

func (o *GameFullEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEvent) GetVariant

func (o *GameFullEvent) GetVariant() Variant

GetVariant returns the Variant field value

func (*GameFullEvent) GetVariantOk

func (o *GameFullEvent) GetVariantOk() (*Variant, bool)

GetVariantOk returns a tuple with the Variant field value and a boolean to check if the value has been set.

func (*GameFullEvent) GetWhite

func (o *GameFullEvent) GetWhite() GameEventPlayer

GetWhite returns the White field value

func (*GameFullEvent) GetWhiteOk

func (o *GameFullEvent) GetWhiteOk() (*GameEventPlayer, bool)

GetWhiteOk returns a tuple with the White field value and a boolean to check if the value has been set.

func (*GameFullEvent) HasTournamentId

func (o *GameFullEvent) HasTournamentId() bool

HasTournamentId returns a boolean if a field has been set.

func (GameFullEvent) MarshalJSON

func (o GameFullEvent) MarshalJSON() ([]byte, error)

func (*GameFullEvent) SetBlack

func (o *GameFullEvent) SetBlack(v GameEventPlayer)

SetBlack sets field value

func (*GameFullEvent) SetClock

func (o *GameFullEvent) SetClock(v interface{})

SetClock sets field value

func (*GameFullEvent) SetCreatedAt

func (o *GameFullEvent) SetCreatedAt(v interface{})

SetCreatedAt sets field value

func (*GameFullEvent) SetId

func (o *GameFullEvent) SetId(v interface{})

SetId sets field value

func (*GameFullEvent) SetInitialFen

func (o *GameFullEvent) SetInitialFen(v interface{})

SetInitialFen sets field value

func (*GameFullEvent) SetPerf

func (o *GameFullEvent) SetPerf(v GameFullEventPerf)

SetPerf sets field value

func (*GameFullEvent) SetRated

func (o *GameFullEvent) SetRated(v interface{})

SetRated sets field value

func (*GameFullEvent) SetSpeed

func (o *GameFullEvent) SetSpeed(v Speed)

SetSpeed sets field value

func (*GameFullEvent) SetState

func (o *GameFullEvent) SetState(v GameStateEvent)

SetState sets field value

func (*GameFullEvent) SetTournamentId

func (o *GameFullEvent) SetTournamentId(v interface{})

SetTournamentId gets a reference to the given interface{} and assigns it to the TournamentId field.

func (*GameFullEvent) SetType

func (o *GameFullEvent) SetType(v interface{})

SetType sets field value

func (*GameFullEvent) SetVariant

func (o *GameFullEvent) SetVariant(v Variant)

SetVariant sets field value

func (*GameFullEvent) SetWhite

func (o *GameFullEvent) SetWhite(v GameEventPlayer)

SetWhite sets field value

type GameFullEventPerf

type GameFullEventPerf struct {
	// Translated perf name (e.g. \"Classical\" or \"Blitz\")
	Name interface{} `json:"name,omitempty"`
}

GameFullEventPerf struct for GameFullEventPerf

func NewGameFullEventPerf

func NewGameFullEventPerf() *GameFullEventPerf

NewGameFullEventPerf instantiates a new GameFullEventPerf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameFullEventPerfWithDefaults

func NewGameFullEventPerfWithDefaults() *GameFullEventPerf

NewGameFullEventPerfWithDefaults instantiates a new GameFullEventPerf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameFullEventPerf) GetName

func (o *GameFullEventPerf) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameFullEventPerf) GetNameOk

func (o *GameFullEventPerf) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameFullEventPerf) HasName

func (o *GameFullEventPerf) HasName() bool

HasName returns a boolean if a field has been set.

func (GameFullEventPerf) MarshalJSON

func (o GameFullEventPerf) MarshalJSON() ([]byte, error)

func (*GameFullEventPerf) SetName

func (o *GameFullEventPerf) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

type GameJson

type GameJson struct {
	Id          interface{}      `json:"id"`
	Rated       interface{}      `json:"rated"`
	Variant     VariantKey       `json:"variant"`
	Speed       Speed            `json:"speed"`
	Perf        interface{}      `json:"perf"`
	CreatedAt   interface{}      `json:"createdAt"`
	LastMoveAt  interface{}      `json:"lastMoveAt"`
	Status      GameStatus       `json:"status"`
	Players     GameJsonPlayers  `json:"players"`
	InitialFen  interface{}      `json:"initialFen,omitempty"`
	Winner      interface{}      `json:"winner,omitempty"`
	Opening     *GameJsonOpening `json:"opening,omitempty"`
	Moves       interface{}      `json:"moves,omitempty"`
	Pgn         interface{}      `json:"pgn,omitempty"`
	DaysPerTurn interface{}      `json:"daysPerTurn,omitempty"`
	Analysis    interface{}      `json:"analysis,omitempty"`
	Tournament  interface{}      `json:"tournament,omitempty"`
	Swiss       interface{}      `json:"swiss,omitempty"`
	Clock       *GameJsonClock   `json:"clock,omitempty"`
}

GameJson struct for GameJson

func NewGameJson

func NewGameJson(id interface{}, rated interface{}, variant VariantKey, speed Speed, perf interface{}, createdAt interface{}, lastMoveAt interface{}, status GameStatus, players GameJsonPlayers) *GameJson

NewGameJson instantiates a new GameJson object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameJsonWithDefaults

func NewGameJsonWithDefaults() *GameJson

NewGameJsonWithDefaults instantiates a new GameJson object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameJson) GetAnalysis

func (o *GameJson) GetAnalysis() interface{}

GetAnalysis returns the Analysis field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetAnalysisOk

func (o *GameJson) GetAnalysisOk() (*interface{}, bool)

GetAnalysisOk returns a tuple with the Analysis field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetClock

func (o *GameJson) GetClock() GameJsonClock

GetClock returns the Clock field value if set, zero value otherwise.

func (*GameJson) GetClockOk

func (o *GameJson) GetClockOk() (*GameJsonClock, bool)

GetClockOk returns a tuple with the Clock field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameJson) GetCreatedAt

func (o *GameJson) GetCreatedAt() interface{}

GetCreatedAt returns the CreatedAt field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameJson) GetCreatedAtOk

func (o *GameJson) GetCreatedAtOk() (*interface{}, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetDaysPerTurn

func (o *GameJson) GetDaysPerTurn() interface{}

GetDaysPerTurn returns the DaysPerTurn field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetDaysPerTurnOk

func (o *GameJson) GetDaysPerTurnOk() (*interface{}, bool)

GetDaysPerTurnOk returns a tuple with the DaysPerTurn field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetId

func (o *GameJson) GetId() interface{}

GetId returns the Id field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameJson) GetIdOk

func (o *GameJson) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetInitialFen

func (o *GameJson) GetInitialFen() interface{}

GetInitialFen returns the InitialFen field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetInitialFenOk

func (o *GameJson) GetInitialFenOk() (*interface{}, bool)

GetInitialFenOk returns a tuple with the InitialFen field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetLastMoveAt

func (o *GameJson) GetLastMoveAt() interface{}

GetLastMoveAt returns the LastMoveAt field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameJson) GetLastMoveAtOk

func (o *GameJson) GetLastMoveAtOk() (*interface{}, bool)

GetLastMoveAtOk returns a tuple with the LastMoveAt field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetMoves

func (o *GameJson) GetMoves() interface{}

GetMoves returns the Moves field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetMovesOk

func (o *GameJson) GetMovesOk() (*interface{}, bool)

GetMovesOk returns a tuple with the Moves field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetOpening

func (o *GameJson) GetOpening() GameJsonOpening

GetOpening returns the Opening field value if set, zero value otherwise.

func (*GameJson) GetOpeningOk

func (o *GameJson) GetOpeningOk() (*GameJsonOpening, bool)

GetOpeningOk returns a tuple with the Opening field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameJson) GetPerf

func (o *GameJson) GetPerf() interface{}

GetPerf returns the Perf field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameJson) GetPerfOk

func (o *GameJson) GetPerfOk() (*interface{}, bool)

GetPerfOk returns a tuple with the Perf field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetPgn

func (o *GameJson) GetPgn() interface{}

GetPgn returns the Pgn field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetPgnOk

func (o *GameJson) GetPgnOk() (*interface{}, bool)

GetPgnOk returns a tuple with the Pgn field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetPlayers

func (o *GameJson) GetPlayers() GameJsonPlayers

GetPlayers returns the Players field value

func (*GameJson) GetPlayersOk

func (o *GameJson) GetPlayersOk() (*GameJsonPlayers, bool)

GetPlayersOk returns a tuple with the Players field value and a boolean to check if the value has been set.

func (*GameJson) GetRated

func (o *GameJson) GetRated() interface{}

GetRated returns the Rated field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameJson) GetRatedOk

func (o *GameJson) GetRatedOk() (*interface{}, bool)

GetRatedOk returns a tuple with the Rated field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetSpeed

func (o *GameJson) GetSpeed() Speed

GetSpeed returns the Speed field value

func (*GameJson) GetSpeedOk

func (o *GameJson) GetSpeedOk() (*Speed, bool)

GetSpeedOk returns a tuple with the Speed field value and a boolean to check if the value has been set.

func (*GameJson) GetStatus

func (o *GameJson) GetStatus() GameStatus

GetStatus returns the Status field value

func (*GameJson) GetStatusOk

func (o *GameJson) GetStatusOk() (*GameStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*GameJson) GetSwiss

func (o *GameJson) GetSwiss() interface{}

GetSwiss returns the Swiss field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetSwissOk

func (o *GameJson) GetSwissOk() (*interface{}, bool)

GetSwissOk returns a tuple with the Swiss field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetTournament

func (o *GameJson) GetTournament() interface{}

GetTournament returns the Tournament field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetTournamentOk

func (o *GameJson) GetTournamentOk() (*interface{}, bool)

GetTournamentOk returns a tuple with the Tournament field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) GetVariant

func (o *GameJson) GetVariant() VariantKey

GetVariant returns the Variant field value

func (*GameJson) GetVariantOk

func (o *GameJson) GetVariantOk() (*VariantKey, bool)

GetVariantOk returns a tuple with the Variant field value and a boolean to check if the value has been set.

func (*GameJson) GetWinner

func (o *GameJson) GetWinner() interface{}

GetWinner returns the Winner field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJson) GetWinnerOk

func (o *GameJson) GetWinnerOk() (*interface{}, bool)

GetWinnerOk returns a tuple with the Winner field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJson) HasAnalysis

func (o *GameJson) HasAnalysis() bool

HasAnalysis returns a boolean if a field has been set.

func (*GameJson) HasClock

func (o *GameJson) HasClock() bool

HasClock returns a boolean if a field has been set.

func (*GameJson) HasDaysPerTurn

func (o *GameJson) HasDaysPerTurn() bool

HasDaysPerTurn returns a boolean if a field has been set.

func (*GameJson) HasInitialFen

func (o *GameJson) HasInitialFen() bool

HasInitialFen returns a boolean if a field has been set.

func (*GameJson) HasMoves

func (o *GameJson) HasMoves() bool

HasMoves returns a boolean if a field has been set.

func (*GameJson) HasOpening

func (o *GameJson) HasOpening() bool

HasOpening returns a boolean if a field has been set.

func (*GameJson) HasPgn

func (o *GameJson) HasPgn() bool

HasPgn returns a boolean if a field has been set.

func (*GameJson) HasSwiss

func (o *GameJson) HasSwiss() bool

HasSwiss returns a boolean if a field has been set.

func (*GameJson) HasTournament

func (o *GameJson) HasTournament() bool

HasTournament returns a boolean if a field has been set.

func (*GameJson) HasWinner

func (o *GameJson) HasWinner() bool

HasWinner returns a boolean if a field has been set.

func (GameJson) MarshalJSON

func (o GameJson) MarshalJSON() ([]byte, error)

func (*GameJson) SetAnalysis

func (o *GameJson) SetAnalysis(v interface{})

SetAnalysis gets a reference to the given interface{} and assigns it to the Analysis field.

func (*GameJson) SetClock

func (o *GameJson) SetClock(v GameJsonClock)

SetClock gets a reference to the given GameJsonClock and assigns it to the Clock field.

func (*GameJson) SetCreatedAt

func (o *GameJson) SetCreatedAt(v interface{})

SetCreatedAt sets field value

func (*GameJson) SetDaysPerTurn

func (o *GameJson) SetDaysPerTurn(v interface{})

SetDaysPerTurn gets a reference to the given interface{} and assigns it to the DaysPerTurn field.

func (*GameJson) SetId

func (o *GameJson) SetId(v interface{})

SetId sets field value

func (*GameJson) SetInitialFen

func (o *GameJson) SetInitialFen(v interface{})

SetInitialFen gets a reference to the given interface{} and assigns it to the InitialFen field.

func (*GameJson) SetLastMoveAt

func (o *GameJson) SetLastMoveAt(v interface{})

SetLastMoveAt sets field value

func (*GameJson) SetMoves

func (o *GameJson) SetMoves(v interface{})

SetMoves gets a reference to the given interface{} and assigns it to the Moves field.

func (*GameJson) SetOpening

func (o *GameJson) SetOpening(v GameJsonOpening)

SetOpening gets a reference to the given GameJsonOpening and assigns it to the Opening field.

func (*GameJson) SetPerf

func (o *GameJson) SetPerf(v interface{})

SetPerf sets field value

func (*GameJson) SetPgn

func (o *GameJson) SetPgn(v interface{})

SetPgn gets a reference to the given interface{} and assigns it to the Pgn field.

func (*GameJson) SetPlayers

func (o *GameJson) SetPlayers(v GameJsonPlayers)

SetPlayers sets field value

func (*GameJson) SetRated

func (o *GameJson) SetRated(v interface{})

SetRated sets field value

func (*GameJson) SetSpeed

func (o *GameJson) SetSpeed(v Speed)

SetSpeed sets field value

func (*GameJson) SetStatus

func (o *GameJson) SetStatus(v GameStatus)

SetStatus sets field value

func (*GameJson) SetSwiss

func (o *GameJson) SetSwiss(v interface{})

SetSwiss gets a reference to the given interface{} and assigns it to the Swiss field.

func (*GameJson) SetTournament

func (o *GameJson) SetTournament(v interface{})

SetTournament gets a reference to the given interface{} and assigns it to the Tournament field.

func (*GameJson) SetVariant

func (o *GameJson) SetVariant(v VariantKey)

SetVariant sets field value

func (*GameJson) SetWinner

func (o *GameJson) SetWinner(v interface{})

SetWinner gets a reference to the given interface{} and assigns it to the Winner field.

type GameJsonClock

type GameJsonClock struct {
	Initial   interface{} `json:"initial,omitempty"`
	Increment interface{} `json:"increment,omitempty"`
	TotalTime interface{} `json:"totalTime,omitempty"`
}

GameJsonClock struct for GameJsonClock

func NewGameJsonClock

func NewGameJsonClock() *GameJsonClock

NewGameJsonClock instantiates a new GameJsonClock object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameJsonClockWithDefaults

func NewGameJsonClockWithDefaults() *GameJsonClock

NewGameJsonClockWithDefaults instantiates a new GameJsonClock object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameJsonClock) GetIncrement

func (o *GameJsonClock) GetIncrement() interface{}

GetIncrement returns the Increment field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonClock) GetIncrementOk

func (o *GameJsonClock) GetIncrementOk() (*interface{}, bool)

GetIncrementOk returns a tuple with the Increment field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonClock) GetInitial

func (o *GameJsonClock) GetInitial() interface{}

GetInitial returns the Initial field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonClock) GetInitialOk

func (o *GameJsonClock) GetInitialOk() (*interface{}, bool)

GetInitialOk returns a tuple with the Initial field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonClock) GetTotalTime

func (o *GameJsonClock) GetTotalTime() interface{}

GetTotalTime returns the TotalTime field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonClock) GetTotalTimeOk

func (o *GameJsonClock) GetTotalTimeOk() (*interface{}, bool)

GetTotalTimeOk returns a tuple with the TotalTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonClock) HasIncrement

func (o *GameJsonClock) HasIncrement() bool

HasIncrement returns a boolean if a field has been set.

func (*GameJsonClock) HasInitial

func (o *GameJsonClock) HasInitial() bool

HasInitial returns a boolean if a field has been set.

func (*GameJsonClock) HasTotalTime

func (o *GameJsonClock) HasTotalTime() bool

HasTotalTime returns a boolean if a field has been set.

func (GameJsonClock) MarshalJSON

func (o GameJsonClock) MarshalJSON() ([]byte, error)

func (*GameJsonClock) SetIncrement

func (o *GameJsonClock) SetIncrement(v interface{})

SetIncrement gets a reference to the given interface{} and assigns it to the Increment field.

func (*GameJsonClock) SetInitial

func (o *GameJsonClock) SetInitial(v interface{})

SetInitial gets a reference to the given interface{} and assigns it to the Initial field.

func (*GameJsonClock) SetTotalTime

func (o *GameJsonClock) SetTotalTime(v interface{})

SetTotalTime gets a reference to the given interface{} and assigns it to the TotalTime field.

type GameJsonOpening

type GameJsonOpening struct {
	Eco  interface{} `json:"eco,omitempty"`
	Name interface{} `json:"name,omitempty"`
	Ply  interface{} `json:"ply,omitempty"`
}

GameJsonOpening struct for GameJsonOpening

func NewGameJsonOpening

func NewGameJsonOpening() *GameJsonOpening

NewGameJsonOpening instantiates a new GameJsonOpening object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameJsonOpeningWithDefaults

func NewGameJsonOpeningWithDefaults() *GameJsonOpening

NewGameJsonOpeningWithDefaults instantiates a new GameJsonOpening object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameJsonOpening) GetEco

func (o *GameJsonOpening) GetEco() interface{}

GetEco returns the Eco field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonOpening) GetEcoOk

func (o *GameJsonOpening) GetEcoOk() (*interface{}, bool)

GetEcoOk returns a tuple with the Eco field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonOpening) GetName

func (o *GameJsonOpening) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonOpening) GetNameOk

func (o *GameJsonOpening) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonOpening) GetPly

func (o *GameJsonOpening) GetPly() interface{}

GetPly returns the Ply field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameJsonOpening) GetPlyOk

func (o *GameJsonOpening) GetPlyOk() (*interface{}, bool)

GetPlyOk returns a tuple with the Ply field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameJsonOpening) HasEco

func (o *GameJsonOpening) HasEco() bool

HasEco returns a boolean if a field has been set.

func (*GameJsonOpening) HasName

func (o *GameJsonOpening) HasName() bool

HasName returns a boolean if a field has been set.

func (*GameJsonOpening) HasPly

func (o *GameJsonOpening) HasPly() bool

HasPly returns a boolean if a field has been set.

func (GameJsonOpening) MarshalJSON

func (o GameJsonOpening) MarshalJSON() ([]byte, error)

func (*GameJsonOpening) SetEco

func (o *GameJsonOpening) SetEco(v interface{})

SetEco gets a reference to the given interface{} and assigns it to the Eco field.

func (*GameJsonOpening) SetName

func (o *GameJsonOpening) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*GameJsonOpening) SetPly

func (o *GameJsonOpening) SetPly(v interface{})

SetPly gets a reference to the given interface{} and assigns it to the Ply field.

type GameJsonPlayers

type GameJsonPlayers struct {
	White *GameUser `json:"white,omitempty"`
	Black *GameUser `json:"black,omitempty"`
}

GameJsonPlayers struct for GameJsonPlayers

func NewGameJsonPlayers

func NewGameJsonPlayers() *GameJsonPlayers

NewGameJsonPlayers instantiates a new GameJsonPlayers object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameJsonPlayersWithDefaults

func NewGameJsonPlayersWithDefaults() *GameJsonPlayers

NewGameJsonPlayersWithDefaults instantiates a new GameJsonPlayers object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameJsonPlayers) GetBlack

func (o *GameJsonPlayers) GetBlack() GameUser

GetBlack returns the Black field value if set, zero value otherwise.

func (*GameJsonPlayers) GetBlackOk

func (o *GameJsonPlayers) GetBlackOk() (*GameUser, bool)

GetBlackOk returns a tuple with the Black field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameJsonPlayers) GetWhite

func (o *GameJsonPlayers) GetWhite() GameUser

GetWhite returns the White field value if set, zero value otherwise.

func (*GameJsonPlayers) GetWhiteOk

func (o *GameJsonPlayers) GetWhiteOk() (*GameUser, bool)

GetWhiteOk returns a tuple with the White field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameJsonPlayers) HasBlack

func (o *GameJsonPlayers) HasBlack() bool

HasBlack returns a boolean if a field has been set.

func (*GameJsonPlayers) HasWhite

func (o *GameJsonPlayers) HasWhite() bool

HasWhite returns a boolean if a field has been set.

func (GameJsonPlayers) MarshalJSON

func (o GameJsonPlayers) MarshalJSON() ([]byte, error)

func (*GameJsonPlayers) SetBlack

func (o *GameJsonPlayers) SetBlack(v GameUser)

SetBlack gets a reference to the given GameUser and assigns it to the Black field.

func (*GameJsonPlayers) SetWhite

func (o *GameJsonPlayers) SetWhite(v GameUser)

SetWhite gets a reference to the given GameUser and assigns it to the White field.

type GameStartEvent

type GameStartEvent struct {
	Type interface{}    `json:"type,omitempty"`
	Game *GameEventInfo `json:"game,omitempty"`
}

GameStartEvent struct for GameStartEvent

func NewGameStartEvent

func NewGameStartEvent() *GameStartEvent

NewGameStartEvent instantiates a new GameStartEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameStartEventWithDefaults

func NewGameStartEventWithDefaults() *GameStartEvent

NewGameStartEventWithDefaults instantiates a new GameStartEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameStartEvent) GetGame

func (o *GameStartEvent) GetGame() GameEventInfo

GetGame returns the Game field value if set, zero value otherwise.

func (*GameStartEvent) GetGameOk

func (o *GameStartEvent) GetGameOk() (*GameEventInfo, bool)

GetGameOk returns a tuple with the Game field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameStartEvent) GetType

func (o *GameStartEvent) GetType() interface{}

GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStartEvent) GetTypeOk

func (o *GameStartEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStartEvent) HasGame

func (o *GameStartEvent) HasGame() bool

HasGame returns a boolean if a field has been set.

func (*GameStartEvent) HasType

func (o *GameStartEvent) HasType() bool

HasType returns a boolean if a field has been set.

func (GameStartEvent) MarshalJSON

func (o GameStartEvent) MarshalJSON() ([]byte, error)

func (*GameStartEvent) SetGame

func (o *GameStartEvent) SetGame(v GameEventInfo)

SetGame gets a reference to the given GameEventInfo and assigns it to the Game field.

func (*GameStartEvent) SetType

func (o *GameStartEvent) SetType(v interface{})

SetType gets a reference to the given interface{} and assigns it to the Type field.

type GameStateEvent

type GameStateEvent struct {
	Type interface{} `json:"type"`
	// Current moves in UCI format
	Moves interface{} `json:"moves"`
	// Integer of milliseconds White has left on the clock
	Wtime interface{} `json:"wtime"`
	// Integer of milliseconds Black has left on the clock
	Btime interface{} `json:"btime"`
	// Integer of White Fisher increment.
	Winc interface{} `json:"winc"`
	// Integer of Black Fisher increment.
	Binc   interface{} `json:"binc"`
	Status GameStatus  `json:"status"`
	// Color of the winner, if any
	Winner interface{} `json:"winner,omitempty"`
	// true if white is offering draw, else omitted
	Wdraw interface{} `json:"wdraw,omitempty"`
	// true if black is offering draw, else omitted
	Bdraw interface{} `json:"bdraw,omitempty"`
	// true if white is proposing takeback, else omitted
	Wtakeback interface{} `json:"wtakeback,omitempty"`
	// true if black is proposing takeback, else omitted
	Btakeback interface{} `json:"btakeback,omitempty"`
}

GameStateEvent struct for GameStateEvent

func NewGameStateEvent

func NewGameStateEvent(type_ interface{}, moves interface{}, wtime interface{}, btime interface{}, winc interface{}, binc interface{}, status GameStatus) *GameStateEvent

NewGameStateEvent instantiates a new GameStateEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameStateEventWithDefaults

func NewGameStateEventWithDefaults() *GameStateEvent

NewGameStateEventWithDefaults instantiates a new GameStateEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameStateEvent) GetBdraw

func (o *GameStateEvent) GetBdraw() interface{}

GetBdraw returns the Bdraw field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStateEvent) GetBdrawOk

func (o *GameStateEvent) GetBdrawOk() (*interface{}, bool)

GetBdrawOk returns a tuple with the Bdraw field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetBinc

func (o *GameStateEvent) GetBinc() interface{}

GetBinc returns the Binc field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetBincOk

func (o *GameStateEvent) GetBincOk() (*interface{}, bool)

GetBincOk returns a tuple with the Binc field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetBtakeback

func (o *GameStateEvent) GetBtakeback() interface{}

GetBtakeback returns the Btakeback field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStateEvent) GetBtakebackOk

func (o *GameStateEvent) GetBtakebackOk() (*interface{}, bool)

GetBtakebackOk returns a tuple with the Btakeback field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetBtime

func (o *GameStateEvent) GetBtime() interface{}

GetBtime returns the Btime field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetBtimeOk

func (o *GameStateEvent) GetBtimeOk() (*interface{}, bool)

GetBtimeOk returns a tuple with the Btime field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetMoves

func (o *GameStateEvent) GetMoves() interface{}

GetMoves returns the Moves field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetMovesOk

func (o *GameStateEvent) GetMovesOk() (*interface{}, bool)

GetMovesOk returns a tuple with the Moves field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetStatus

func (o *GameStateEvent) GetStatus() GameStatus

GetStatus returns the Status field value

func (*GameStateEvent) GetStatusOk

func (o *GameStateEvent) GetStatusOk() (*GameStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*GameStateEvent) GetType

func (o *GameStateEvent) GetType() interface{}

GetType returns the Type field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetTypeOk

func (o *GameStateEvent) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetWdraw

func (o *GameStateEvent) GetWdraw() interface{}

GetWdraw returns the Wdraw field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStateEvent) GetWdrawOk

func (o *GameStateEvent) GetWdrawOk() (*interface{}, bool)

GetWdrawOk returns a tuple with the Wdraw field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetWinc

func (o *GameStateEvent) GetWinc() interface{}

GetWinc returns the Winc field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetWincOk

func (o *GameStateEvent) GetWincOk() (*interface{}, bool)

GetWincOk returns a tuple with the Winc field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetWinner

func (o *GameStateEvent) GetWinner() interface{}

GetWinner returns the Winner field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStateEvent) GetWinnerOk

func (o *GameStateEvent) GetWinnerOk() (*interface{}, bool)

GetWinnerOk returns a tuple with the Winner field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetWtakeback

func (o *GameStateEvent) GetWtakeback() interface{}

GetWtakeback returns the Wtakeback field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameStateEvent) GetWtakebackOk

func (o *GameStateEvent) GetWtakebackOk() (*interface{}, bool)

GetWtakebackOk returns a tuple with the Wtakeback field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) GetWtime

func (o *GameStateEvent) GetWtime() interface{}

GetWtime returns the Wtime field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameStateEvent) GetWtimeOk

func (o *GameStateEvent) GetWtimeOk() (*interface{}, bool)

GetWtimeOk returns a tuple with the Wtime field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameStateEvent) HasBdraw

func (o *GameStateEvent) HasBdraw() bool

HasBdraw returns a boolean if a field has been set.

func (*GameStateEvent) HasBtakeback

func (o *GameStateEvent) HasBtakeback() bool

HasBtakeback returns a boolean if a field has been set.

func (*GameStateEvent) HasWdraw

func (o *GameStateEvent) HasWdraw() bool

HasWdraw returns a boolean if a field has been set.

func (*GameStateEvent) HasWinner

func (o *GameStateEvent) HasWinner() bool

HasWinner returns a boolean if a field has been set.

func (*GameStateEvent) HasWtakeback

func (o *GameStateEvent) HasWtakeback() bool

HasWtakeback returns a boolean if a field has been set.

func (GameStateEvent) MarshalJSON

func (o GameStateEvent) MarshalJSON() ([]byte, error)

func (*GameStateEvent) SetBdraw

func (o *GameStateEvent) SetBdraw(v interface{})

SetBdraw gets a reference to the given interface{} and assigns it to the Bdraw field.

func (*GameStateEvent) SetBinc

func (o *GameStateEvent) SetBinc(v interface{})

SetBinc sets field value

func (*GameStateEvent) SetBtakeback

func (o *GameStateEvent) SetBtakeback(v interface{})

SetBtakeback gets a reference to the given interface{} and assigns it to the Btakeback field.

func (*GameStateEvent) SetBtime

func (o *GameStateEvent) SetBtime(v interface{})

SetBtime sets field value

func (*GameStateEvent) SetMoves

func (o *GameStateEvent) SetMoves(v interface{})

SetMoves sets field value

func (*GameStateEvent) SetStatus

func (o *GameStateEvent) SetStatus(v GameStatus)

SetStatus sets field value

func (*GameStateEvent) SetType

func (o *GameStateEvent) SetType(v interface{})

SetType sets field value

func (*GameStateEvent) SetWdraw

func (o *GameStateEvent) SetWdraw(v interface{})

SetWdraw gets a reference to the given interface{} and assigns it to the Wdraw field.

func (*GameStateEvent) SetWinc

func (o *GameStateEvent) SetWinc(v interface{})

SetWinc sets field value

func (*GameStateEvent) SetWinner

func (o *GameStateEvent) SetWinner(v interface{})

SetWinner gets a reference to the given interface{} and assigns it to the Winner field.

func (*GameStateEvent) SetWtakeback

func (o *GameStateEvent) SetWtakeback(v interface{})

SetWtakeback gets a reference to the given interface{} and assigns it to the Wtakeback field.

func (*GameStateEvent) SetWtime

func (o *GameStateEvent) SetWtime(v interface{})

SetWtime sets field value

type GameStatus

type GameStatus struct {
}

GameStatus Game status code. https://github.com/ornicar/scalachess/blob/0a7d6f2c63b1ca06cd3c958ed3264e738af5c5f6/src/main/scala/Status.scala#L16-L28

func NewGameStatus

func NewGameStatus() *GameStatus

NewGameStatus instantiates a new GameStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameStatusWithDefaults

func NewGameStatusWithDefaults() *GameStatus

NewGameStatusWithDefaults instantiates a new GameStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (GameStatus) MarshalJSON

func (o GameStatus) MarshalJSON() ([]byte, error)

type GameUser

type GameUser struct {
	User        *LightUser        `json:"user,omitempty"`
	Rating      interface{}       `json:"rating,omitempty"`
	RatingDiff  interface{}       `json:"ratingDiff,omitempty"`
	Name        interface{}       `json:"name,omitempty"`
	Provisional interface{}       `json:"provisional,omitempty"`
	AiLevel     interface{}       `json:"aiLevel,omitempty"`
	Analysis    *GameUserAnalysis `json:"analysis,omitempty"`
	Team        interface{}       `json:"team,omitempty"`
}

GameUser struct for GameUser

func NewGameUser

func NewGameUser() *GameUser

NewGameUser instantiates a new GameUser object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameUserWithDefaults

func NewGameUserWithDefaults() *GameUser

NewGameUserWithDefaults instantiates a new GameUser object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameUser) GetAiLevel

func (o *GameUser) GetAiLevel() interface{}

GetAiLevel returns the AiLevel field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetAiLevelOk

func (o *GameUser) GetAiLevelOk() (*interface{}, bool)

GetAiLevelOk returns a tuple with the AiLevel field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetAnalysis

func (o *GameUser) GetAnalysis() GameUserAnalysis

GetAnalysis returns the Analysis field value if set, zero value otherwise.

func (*GameUser) GetAnalysisOk

func (o *GameUser) GetAnalysisOk() (*GameUserAnalysis, bool)

GetAnalysisOk returns a tuple with the Analysis field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameUser) GetName

func (o *GameUser) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetNameOk

func (o *GameUser) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetProvisional

func (o *GameUser) GetProvisional() interface{}

GetProvisional returns the Provisional field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetProvisionalOk

func (o *GameUser) GetProvisionalOk() (*interface{}, bool)

GetProvisionalOk returns a tuple with the Provisional field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetRating

func (o *GameUser) GetRating() interface{}

GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetRatingDiff

func (o *GameUser) GetRatingDiff() interface{}

GetRatingDiff returns the RatingDiff field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetRatingDiffOk

func (o *GameUser) GetRatingDiffOk() (*interface{}, bool)

GetRatingDiffOk returns a tuple with the RatingDiff field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetRatingOk

func (o *GameUser) GetRatingOk() (*interface{}, bool)

GetRatingOk returns a tuple with the Rating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetTeam

func (o *GameUser) GetTeam() interface{}

GetTeam returns the Team field value if set, zero value otherwise (both if not set or set to explicit null).

func (*GameUser) GetTeamOk

func (o *GameUser) GetTeamOk() (*interface{}, bool)

GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUser) GetUser

func (o *GameUser) GetUser() LightUser

GetUser returns the User field value if set, zero value otherwise.

func (*GameUser) GetUserOk

func (o *GameUser) GetUserOk() (*LightUser, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GameUser) HasAiLevel

func (o *GameUser) HasAiLevel() bool

HasAiLevel returns a boolean if a field has been set.

func (*GameUser) HasAnalysis

func (o *GameUser) HasAnalysis() bool

HasAnalysis returns a boolean if a field has been set.

func (*GameUser) HasName

func (o *GameUser) HasName() bool

HasName returns a boolean if a field has been set.

func (*GameUser) HasProvisional

func (o *GameUser) HasProvisional() bool

HasProvisional returns a boolean if a field has been set.

func (*GameUser) HasRating

func (o *GameUser) HasRating() bool

HasRating returns a boolean if a field has been set.

func (*GameUser) HasRatingDiff

func (o *GameUser) HasRatingDiff() bool

HasRatingDiff returns a boolean if a field has been set.

func (*GameUser) HasTeam

func (o *GameUser) HasTeam() bool

HasTeam returns a boolean if a field has been set.

func (*GameUser) HasUser

func (o *GameUser) HasUser() bool

HasUser returns a boolean if a field has been set.

func (GameUser) MarshalJSON

func (o GameUser) MarshalJSON() ([]byte, error)

func (*GameUser) SetAiLevel

func (o *GameUser) SetAiLevel(v interface{})

SetAiLevel gets a reference to the given interface{} and assigns it to the AiLevel field.

func (*GameUser) SetAnalysis

func (o *GameUser) SetAnalysis(v GameUserAnalysis)

SetAnalysis gets a reference to the given GameUserAnalysis and assigns it to the Analysis field.

func (*GameUser) SetName

func (o *GameUser) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*GameUser) SetProvisional

func (o *GameUser) SetProvisional(v interface{})

SetProvisional gets a reference to the given interface{} and assigns it to the Provisional field.

func (*GameUser) SetRating

func (o *GameUser) SetRating(v interface{})

SetRating gets a reference to the given interface{} and assigns it to the Rating field.

func (*GameUser) SetRatingDiff

func (o *GameUser) SetRatingDiff(v interface{})

SetRatingDiff gets a reference to the given interface{} and assigns it to the RatingDiff field.

func (*GameUser) SetTeam

func (o *GameUser) SetTeam(v interface{})

SetTeam gets a reference to the given interface{} and assigns it to the Team field.

func (*GameUser) SetUser

func (o *GameUser) SetUser(v LightUser)

SetUser gets a reference to the given LightUser and assigns it to the User field.

type GameUserAnalysis

type GameUserAnalysis struct {
	Inaccuracy interface{} `json:"inaccuracy"`
	Mistake    interface{} `json:"mistake"`
	Blunder    interface{} `json:"blunder"`
	Acpl       interface{} `json:"acpl"`
}

GameUserAnalysis struct for GameUserAnalysis

func NewGameUserAnalysis

func NewGameUserAnalysis(inaccuracy interface{}, mistake interface{}, blunder interface{}, acpl interface{}) *GameUserAnalysis

NewGameUserAnalysis instantiates a new GameUserAnalysis object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGameUserAnalysisWithDefaults

func NewGameUserAnalysisWithDefaults() *GameUserAnalysis

NewGameUserAnalysisWithDefaults instantiates a new GameUserAnalysis object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GameUserAnalysis) GetAcpl

func (o *GameUserAnalysis) GetAcpl() interface{}

GetAcpl returns the Acpl field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameUserAnalysis) GetAcplOk

func (o *GameUserAnalysis) GetAcplOk() (*interface{}, bool)

GetAcplOk returns a tuple with the Acpl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUserAnalysis) GetBlunder

func (o *GameUserAnalysis) GetBlunder() interface{}

GetBlunder returns the Blunder field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameUserAnalysis) GetBlunderOk

func (o *GameUserAnalysis) GetBlunderOk() (*interface{}, bool)

GetBlunderOk returns a tuple with the Blunder field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUserAnalysis) GetInaccuracy

func (o *GameUserAnalysis) GetInaccuracy() interface{}

GetInaccuracy returns the Inaccuracy field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameUserAnalysis) GetInaccuracyOk

func (o *GameUserAnalysis) GetInaccuracyOk() (*interface{}, bool)

GetInaccuracyOk returns a tuple with the Inaccuracy field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*GameUserAnalysis) GetMistake

func (o *GameUserAnalysis) GetMistake() interface{}

GetMistake returns the Mistake field value If the value is explicit nil, the zero value for interface{} will be returned

func (*GameUserAnalysis) GetMistakeOk

func (o *GameUserAnalysis) GetMistakeOk() (*interface{}, bool)

GetMistakeOk returns a tuple with the Mistake field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (GameUserAnalysis) MarshalJSON

func (o GameUserAnalysis) MarshalJSON() ([]byte, error)

func (*GameUserAnalysis) SetAcpl

func (o *GameUserAnalysis) SetAcpl(v interface{})

SetAcpl sets field value

func (*GameUserAnalysis) SetBlunder

func (o *GameUserAnalysis) SetBlunder(v interface{})

SetBlunder sets field value

func (*GameUserAnalysis) SetInaccuracy

func (o *GameUserAnalysis) SetInaccuracy(v interface{})

SetInaccuracy sets field value

func (*GameUserAnalysis) SetMistake

func (o *GameUserAnalysis) SetMistake(v interface{})

SetMistake sets field value

type GamesApiService

type GamesApiService service

GamesApiService GamesApi service

func (*GamesApiService) ApiAccountPlaying

func (a *GamesApiService) ApiAccountPlaying(ctx context.Context) ApiApiAccountPlayingRequest

ApiAccountPlaying Get my ongoing games

Get the ongoing games of the current user. Real-time and correspondence games are included. The most urgent games are listed first.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiAccountPlayingRequest

func (*GamesApiService) ApiAccountPlayingExecute

func (a *GamesApiService) ApiAccountPlayingExecute(r ApiApiAccountPlayingRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) ApiGamesUser

func (a *GamesApiService) ApiGamesUser(ctx context.Context, username interface{}) ApiApiGamesUserRequest

ApiGamesUser Export games of a user

Download all games of any user in PGN or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format.

Games are sorted by reverse chronological order (most recent first).

We recommend streaming the response, for it can be very long. <https://lichess.org/@/german11> for instance has more than 500,000 games.

The game stream is throttled, depending on who is making the request:

  • Anonymous request: 20 games per second

  • [OAuth2 authenticated](#section/Authentication) request: 30 games per second

  • Authenticated, downloading your own games: 60 games per second

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param username The user name. @return ApiApiGamesUserRequest

func (*GamesApiService) ApiGamesUserExecute

func (a *GamesApiService) ApiGamesUserExecute(r ApiApiGamesUserRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) ApiUserCurrentGame

func (a *GamesApiService) ApiUserCurrentGame(ctx context.Context, username interface{}) ApiApiUserCurrentGameRequest

ApiUserCurrentGame Export ongoing game of a user

Download the ongoing game, or the last game played, of a user. Available in either PGN or JSON format. If the game is ongoing, the 3 last moves are omitted.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiApiUserCurrentGameRequest

func (*GamesApiService) ApiUserCurrentGameExecute

func (a *GamesApiService) ApiUserCurrentGameExecute(r ApiApiUserCurrentGameRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) GameImport

GameImport Import one game

Import a game from PGN. See <https://lichess.org/paste>.

Rate limiting: 200 games per hour for OAuth requests, 100 games per hour for anonymous requests.

To broadcast ongoing games, consider [pushing to a broadcast instead](#operation/broadcastPush).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameImportRequest

func (*GamesApiService) GameImportExecute

func (a *GamesApiService) GameImportExecute(r ApiGameImportRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) GamePgn

func (a *GamesApiService) GamePgn(ctx context.Context, gameId interface{}) ApiGamePgnRequest

GamePgn Export one game

Download one game in either PGN or JSON format.

Ongoing games have their last 3 moves omitted, after move 5.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId The game ID (8 characters).
@return ApiGamePgnRequest

func (*GamesApiService) GamePgnExecute

func (a *GamesApiService) GamePgnExecute(r ApiGamePgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) GamesByIds

func (a *GamesApiService) GamesByIds(ctx context.Context, streamId interface{}) ApiGamesByIdsRequest

GamesByIds Stream games by IDs

Creates a stream of games from an arbitrary streamId, and a list of game IDs.

The stream first outputs the games that already exists, then emits an event each time a game is started or finished.

Games are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

Maximum number of games: 500 for anonymous requests, or 1000 for [OAuth2 authenticated](#section/Authentication) requests.

While the stream is open, it is possible to [add new game IDs to watch](#operation/gamesByIdsAdd).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param streamId
@return ApiGamesByIdsRequest

func (*GamesApiService) GamesByIdsAdd

func (a *GamesApiService) GamesByIdsAdd(ctx context.Context, streamId interface{}) ApiGamesByIdsAddRequest

GamesByIdsAdd Add game IDs to stream

Add new game IDs for [an existing stream](#operation/gamesByIds) to watch. The stream will immediately outputs the games that already exists, then emit an event each time a game is started or finished.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param streamId
@return ApiGamesByIdsAddRequest

func (*GamesApiService) GamesByIdsAddExecute

func (a *GamesApiService) GamesByIdsAddExecute(r ApiGamesByIdsAddRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*GamesApiService) GamesByIdsExecute

func (a *GamesApiService) GamesByIdsExecute(r ApiGamesByIdsRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) GamesByUsers

GamesByUsers Stream games of users

Stream the games played between a list of users, in real time. Only games where **both players** are part of the list are included.

The stream emits an event each time a game is started or finished.

To also get all current ongoing games at the beginning of the stream, use the `withCurrentGames` flag.

Games are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

Maximum number of users: 300.

The method is `POST` so a longer list of IDs can be sent in the request body.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGamesByUsersRequest

func (*GamesApiService) GamesByUsersExecute

func (a *GamesApiService) GamesByUsersExecute(r ApiGamesByUsersRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) GamesExportIds

GamesExportIds Export games by IDs

Download games by IDs in PGN or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format, depending on the request Accept header.

Games are sorted by reverse chronological order (most recent first)

The method is `POST` so a longer list of IDs can be sent in the request body.

300 IDs can be submitted.

Ongoing games have their last 3 moves omitted, after move 5.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGamesExportIdsRequest

func (*GamesApiService) GamesExportIdsExecute

func (a *GamesApiService) GamesExportIdsExecute(r ApiGamesExportIdsRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*GamesApiService) StreamGame

func (a *GamesApiService) StreamGame(ctx context.Context, id interface{}) ApiStreamGameRequest

StreamGame Stream moves of a game

Stream positions and moves of any ongoing game, in [ndjson](#section/Introduction/Streaming-with-ND-JSON).

A description of the game is sent as a first message. Then a message is sent each time a move is played. Finally a description of the game is sent when it finishes, and the stream is closed.

After move 5, the stream intentionally remains 3 moves behind the game status, as to prevent cheat bots from using this API.

No more than 8 game streams can be opened at the same time from the same IP address.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiStreamGameRequest

func (*GamesApiService) StreamGameExecute

func (a *GamesApiService) StreamGameExecute(r ApiStreamGameRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type LightUser

type LightUser struct {
	Name   interface{} `json:"name,omitempty"`
	Title  interface{} `json:"title,omitempty"`
	Patron interface{} `json:"patron,omitempty"`
	Id     interface{} `json:"id,omitempty"`
}

LightUser struct for LightUser

func NewLightUser

func NewLightUser() *LightUser

NewLightUser instantiates a new LightUser object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLightUserWithDefaults

func NewLightUserWithDefaults() *LightUser

NewLightUserWithDefaults instantiates a new LightUser object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LightUser) GetId

func (o *LightUser) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*LightUser) GetIdOk

func (o *LightUser) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*LightUser) GetName

func (o *LightUser) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*LightUser) GetNameOk

func (o *LightUser) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*LightUser) GetPatron

func (o *LightUser) GetPatron() interface{}

GetPatron returns the Patron field value if set, zero value otherwise (both if not set or set to explicit null).

func (*LightUser) GetPatronOk

func (o *LightUser) GetPatronOk() (*interface{}, bool)

GetPatronOk returns a tuple with the Patron field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*LightUser) GetTitle

func (o *LightUser) GetTitle() interface{}

GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).

func (*LightUser) GetTitleOk

func (o *LightUser) GetTitleOk() (*interface{}, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*LightUser) HasId

func (o *LightUser) HasId() bool

HasId returns a boolean if a field has been set.

func (*LightUser) HasName

func (o *LightUser) HasName() bool

HasName returns a boolean if a field has been set.

func (*LightUser) HasPatron

func (o *LightUser) HasPatron() bool

HasPatron returns a boolean if a field has been set.

func (*LightUser) HasTitle

func (o *LightUser) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (LightUser) MarshalJSON

func (o LightUser) MarshalJSON() ([]byte, error)

func (*LightUser) SetId

func (o *LightUser) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*LightUser) SetName

func (o *LightUser) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*LightUser) SetPatron

func (o *LightUser) SetPatron(v interface{})

SetPatron gets a reference to the given interface{} and assigns it to the Patron field.

func (*LightUser) SetTitle

func (o *LightUser) SetTitle(v interface{})

SetTitle gets a reference to the given interface{} and assigns it to the Title field.

type MessagingApiService

type MessagingApiService service

MessagingApiService MessagingApi service

func (*MessagingApiService) InboxUsername

func (a *MessagingApiService) InboxUsername(ctx context.Context, username interface{}) ApiInboxUsernameRequest

InboxUsername Send a private message

Send a private message to another player.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiInboxUsernameRequest

func (*MessagingApiService) InboxUsernameExecute

func (a *MessagingApiService) InboxUsernameExecute(r ApiInboxUsernameRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type Move

type Move struct {
	Uci      interface{} `json:"uci,omitempty"`
	San      interface{} `json:"san,omitempty"`
	Category interface{} `json:"category,omitempty"`
	// DTZ50” with rounding or null if unknown
	Dtz interface{} `json:"dtz,omitempty"`
	// DTZ50” (only if guaranteed to be not rounded) or null if unknown
	PreciseDtz interface{} `json:"precise_dtz,omitempty"`
	// Distance to mate (only for positions with not more than 5 pieces)
	Dtm                  interface{} `json:"dtm,omitempty"`
	Zeroing              interface{} `json:"zeroing,omitempty"`
	Checkmate            interface{} `json:"checkmate,omitempty"`
	Stalemate            interface{} `json:"stalemate,omitempty"`
	VariantWin           interface{} `json:"variant_win,omitempty"`
	VariantLoss          interface{} `json:"variant_loss,omitempty"`
	InsufficientMaterial interface{} `json:"insufficient_material,omitempty"`
}

Move struct for Move

func NewMove

func NewMove() *Move

NewMove instantiates a new Move object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMoveWithDefaults

func NewMoveWithDefaults() *Move

NewMoveWithDefaults instantiates a new Move object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Move) GetCategory

func (o *Move) GetCategory() interface{}

GetCategory returns the Category field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetCategoryOk

func (o *Move) GetCategoryOk() (*interface{}, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetCheckmate

func (o *Move) GetCheckmate() interface{}

GetCheckmate returns the Checkmate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetCheckmateOk

func (o *Move) GetCheckmateOk() (*interface{}, bool)

GetCheckmateOk returns a tuple with the Checkmate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetDtm

func (o *Move) GetDtm() interface{}

GetDtm returns the Dtm field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetDtmOk

func (o *Move) GetDtmOk() (*interface{}, bool)

GetDtmOk returns a tuple with the Dtm field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetDtz

func (o *Move) GetDtz() interface{}

GetDtz returns the Dtz field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetDtzOk

func (o *Move) GetDtzOk() (*interface{}, bool)

GetDtzOk returns a tuple with the Dtz field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetInsufficientMaterial

func (o *Move) GetInsufficientMaterial() interface{}

GetInsufficientMaterial returns the InsufficientMaterial field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetInsufficientMaterialOk

func (o *Move) GetInsufficientMaterialOk() (*interface{}, bool)

GetInsufficientMaterialOk returns a tuple with the InsufficientMaterial field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetPreciseDtz

func (o *Move) GetPreciseDtz() interface{}

GetPreciseDtz returns the PreciseDtz field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetPreciseDtzOk

func (o *Move) GetPreciseDtzOk() (*interface{}, bool)

GetPreciseDtzOk returns a tuple with the PreciseDtz field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetSan

func (o *Move) GetSan() interface{}

GetSan returns the San field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetSanOk

func (o *Move) GetSanOk() (*interface{}, bool)

GetSanOk returns a tuple with the San field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetStalemate

func (o *Move) GetStalemate() interface{}

GetStalemate returns the Stalemate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetStalemateOk

func (o *Move) GetStalemateOk() (*interface{}, bool)

GetStalemateOk returns a tuple with the Stalemate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetUci

func (o *Move) GetUci() interface{}

GetUci returns the Uci field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetUciOk

func (o *Move) GetUciOk() (*interface{}, bool)

GetUciOk returns a tuple with the Uci field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetVariantLoss

func (o *Move) GetVariantLoss() interface{}

GetVariantLoss returns the VariantLoss field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetVariantLossOk

func (o *Move) GetVariantLossOk() (*interface{}, bool)

GetVariantLossOk returns a tuple with the VariantLoss field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetVariantWin

func (o *Move) GetVariantWin() interface{}

GetVariantWin returns the VariantWin field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetVariantWinOk

func (o *Move) GetVariantWinOk() (*interface{}, bool)

GetVariantWinOk returns a tuple with the VariantWin field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) GetZeroing

func (o *Move) GetZeroing() interface{}

GetZeroing returns the Zeroing field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Move) GetZeroingOk

func (o *Move) GetZeroingOk() (*interface{}, bool)

GetZeroingOk returns a tuple with the Zeroing field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Move) HasCategory

func (o *Move) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*Move) HasCheckmate

func (o *Move) HasCheckmate() bool

HasCheckmate returns a boolean if a field has been set.

func (*Move) HasDtm

func (o *Move) HasDtm() bool

HasDtm returns a boolean if a field has been set.

func (*Move) HasDtz

func (o *Move) HasDtz() bool

HasDtz returns a boolean if a field has been set.

func (*Move) HasInsufficientMaterial

func (o *Move) HasInsufficientMaterial() bool

HasInsufficientMaterial returns a boolean if a field has been set.

func (*Move) HasPreciseDtz

func (o *Move) HasPreciseDtz() bool

HasPreciseDtz returns a boolean if a field has been set.

func (*Move) HasSan

func (o *Move) HasSan() bool

HasSan returns a boolean if a field has been set.

func (*Move) HasStalemate

func (o *Move) HasStalemate() bool

HasStalemate returns a boolean if a field has been set.

func (*Move) HasUci

func (o *Move) HasUci() bool

HasUci returns a boolean if a field has been set.

func (*Move) HasVariantLoss

func (o *Move) HasVariantLoss() bool

HasVariantLoss returns a boolean if a field has been set.

func (*Move) HasVariantWin

func (o *Move) HasVariantWin() bool

HasVariantWin returns a boolean if a field has been set.

func (*Move) HasZeroing

func (o *Move) HasZeroing() bool

HasZeroing returns a boolean if a field has been set.

func (Move) MarshalJSON

func (o Move) MarshalJSON() ([]byte, error)

func (*Move) SetCategory

func (o *Move) SetCategory(v interface{})

SetCategory gets a reference to the given interface{} and assigns it to the Category field.

func (*Move) SetCheckmate

func (o *Move) SetCheckmate(v interface{})

SetCheckmate gets a reference to the given interface{} and assigns it to the Checkmate field.

func (*Move) SetDtm

func (o *Move) SetDtm(v interface{})

SetDtm gets a reference to the given interface{} and assigns it to the Dtm field.

func (*Move) SetDtz

func (o *Move) SetDtz(v interface{})

SetDtz gets a reference to the given interface{} and assigns it to the Dtz field.

func (*Move) SetInsufficientMaterial

func (o *Move) SetInsufficientMaterial(v interface{})

SetInsufficientMaterial gets a reference to the given interface{} and assigns it to the InsufficientMaterial field.

func (*Move) SetPreciseDtz

func (o *Move) SetPreciseDtz(v interface{})

SetPreciseDtz gets a reference to the given interface{} and assigns it to the PreciseDtz field.

func (*Move) SetSan

func (o *Move) SetSan(v interface{})

SetSan gets a reference to the given interface{} and assigns it to the San field.

func (*Move) SetStalemate

func (o *Move) SetStalemate(v interface{})

SetStalemate gets a reference to the given interface{} and assigns it to the Stalemate field.

func (*Move) SetUci

func (o *Move) SetUci(v interface{})

SetUci gets a reference to the given interface{} and assigns it to the Uci field.

func (*Move) SetVariantLoss

func (o *Move) SetVariantLoss(v interface{})

SetVariantLoss gets a reference to the given interface{} and assigns it to the VariantLoss field.

func (*Move) SetVariantWin

func (o *Move) SetVariantWin(v interface{})

SetVariantWin gets a reference to the given interface{} and assigns it to the VariantWin field.

func (*Move) SetZeroing

func (o *Move) SetZeroing(v interface{})

SetZeroing gets a reference to the given interface{} and assigns it to the Zeroing field.

type NotFound

type NotFound struct {
	Error interface{} `json:"error,omitempty"`
}

NotFound struct for NotFound

func NewNotFound

func NewNotFound() *NotFound

NewNotFound instantiates a new NotFound object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNotFoundWithDefaults

func NewNotFoundWithDefaults() *NotFound

NewNotFoundWithDefaults instantiates a new NotFound object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NotFound) GetError

func (o *NotFound) GetError() interface{}

GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).

func (*NotFound) GetErrorOk

func (o *NotFound) GetErrorOk() (*interface{}, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*NotFound) HasError

func (o *NotFound) HasError() bool

HasError returns a boolean if a field has been set.

func (NotFound) MarshalJSON

func (o NotFound) MarshalJSON() ([]byte, error)

func (*NotFound) SetError

func (o *NotFound) SetError(v interface{})

SetError gets a reference to the given interface{} and assigns it to the Error field.

type NullableAccount200Response

type NullableAccount200Response struct {
	// contains filtered or unexported fields
}

func NewNullableAccount200Response

func NewNullableAccount200Response(val *Account200Response) *NullableAccount200Response

func (NullableAccount200Response) Get

func (NullableAccount200Response) IsSet

func (v NullableAccount200Response) IsSet() bool

func (NullableAccount200Response) MarshalJSON

func (v NullableAccount200Response) MarshalJSON() ([]byte, error)

func (*NullableAccount200Response) Set

func (*NullableAccount200Response) UnmarshalJSON

func (v *NullableAccount200Response) UnmarshalJSON(src []byte) error

func (*NullableAccount200Response) Unset

func (v *NullableAccount200Response) Unset()

type NullableAccountEmail200Response

type NullableAccountEmail200Response struct {
	// contains filtered or unexported fields
}

func (NullableAccountEmail200Response) Get

func (NullableAccountEmail200Response) IsSet

func (NullableAccountEmail200Response) MarshalJSON

func (v NullableAccountEmail200Response) MarshalJSON() ([]byte, error)

func (*NullableAccountEmail200Response) Set

func (*NullableAccountEmail200Response) UnmarshalJSON

func (v *NullableAccountEmail200Response) UnmarshalJSON(src []byte) error

func (*NullableAccountEmail200Response) Unset

type NullableAccountKid200Response

type NullableAccountKid200Response struct {
	// contains filtered or unexported fields
}

func (NullableAccountKid200Response) Get

func (NullableAccountKid200Response) IsSet

func (NullableAccountKid200Response) MarshalJSON

func (v NullableAccountKid200Response) MarshalJSON() ([]byte, error)

func (*NullableAccountKid200Response) Set

func (*NullableAccountKid200Response) UnmarshalJSON

func (v *NullableAccountKid200Response) UnmarshalJSON(src []byte) error

func (*NullableAccountKid200Response) Unset

func (v *NullableAccountKid200Response) Unset()

type NullableApiExternalEngineAcquire200Response

type NullableApiExternalEngineAcquire200Response struct {
	// contains filtered or unexported fields
}

func (NullableApiExternalEngineAcquire200Response) Get

func (NullableApiExternalEngineAcquire200Response) IsSet

func (NullableApiExternalEngineAcquire200Response) MarshalJSON

func (*NullableApiExternalEngineAcquire200Response) Set

func (*NullableApiExternalEngineAcquire200Response) UnmarshalJSON

func (v *NullableApiExternalEngineAcquire200Response) UnmarshalJSON(src []byte) error

func (*NullableApiExternalEngineAcquire200Response) Unset

type NullableApiExternalEngineAcquireRequest

type NullableApiExternalEngineAcquireRequest struct {
	// contains filtered or unexported fields
}

func (NullableApiExternalEngineAcquireRequest) Get

func (NullableApiExternalEngineAcquireRequest) IsSet

func (NullableApiExternalEngineAcquireRequest) MarshalJSON

func (v NullableApiExternalEngineAcquireRequest) MarshalJSON() ([]byte, error)

func (*NullableApiExternalEngineAcquireRequest) Set

func (*NullableApiExternalEngineAcquireRequest) UnmarshalJSON

func (v *NullableApiExternalEngineAcquireRequest) UnmarshalJSON(src []byte) error

func (*NullableApiExternalEngineAcquireRequest) Unset

type NullableApiExternalEngineAnalyse200Response

type NullableApiExternalEngineAnalyse200Response struct {
	// contains filtered or unexported fields
}

func (NullableApiExternalEngineAnalyse200Response) Get

func (NullableApiExternalEngineAnalyse200Response) IsSet

func (NullableApiExternalEngineAnalyse200Response) MarshalJSON

func (*NullableApiExternalEngineAnalyse200Response) Set

func (*NullableApiExternalEngineAnalyse200Response) UnmarshalJSON

func (v *NullableApiExternalEngineAnalyse200Response) UnmarshalJSON(src []byte) error

func (*NullableApiExternalEngineAnalyse200Response) Unset

type NullableApiExternalEngineAnalyse200ResponsePvsInner

type NullableApiExternalEngineAnalyse200ResponsePvsInner struct {
	// contains filtered or unexported fields
}

func (NullableApiExternalEngineAnalyse200ResponsePvsInner) Get

func (NullableApiExternalEngineAnalyse200ResponsePvsInner) IsSet

func (NullableApiExternalEngineAnalyse200ResponsePvsInner) MarshalJSON

func (*NullableApiExternalEngineAnalyse200ResponsePvsInner) Set

func (*NullableApiExternalEngineAnalyse200ResponsePvsInner) UnmarshalJSON

func (*NullableApiExternalEngineAnalyse200ResponsePvsInner) Unset

type NullableApiExternalEngineAnalyseRequest

type NullableApiExternalEngineAnalyseRequest struct {
	// contains filtered or unexported fields
}

func (NullableApiExternalEngineAnalyseRequest) Get

func (NullableApiExternalEngineAnalyseRequest) IsSet

func (NullableApiExternalEngineAnalyseRequest) MarshalJSON

func (v NullableApiExternalEngineAnalyseRequest) MarshalJSON() ([]byte, error)

func (*NullableApiExternalEngineAnalyseRequest) Set

func (*NullableApiExternalEngineAnalyseRequest) UnmarshalJSON

func (v *NullableApiExternalEngineAnalyseRequest) UnmarshalJSON(src []byte) error

func (*NullableApiExternalEngineAnalyseRequest) Unset

type NullableApiUsersStatus200ResponseInner

type NullableApiUsersStatus200ResponseInner struct {
	// contains filtered or unexported fields
}

func (NullableApiUsersStatus200ResponseInner) Get

func (NullableApiUsersStatus200ResponseInner) IsSet

func (NullableApiUsersStatus200ResponseInner) MarshalJSON

func (v NullableApiUsersStatus200ResponseInner) MarshalJSON() ([]byte, error)

func (*NullableApiUsersStatus200ResponseInner) Set

func (*NullableApiUsersStatus200ResponseInner) UnmarshalJSON

func (v *NullableApiUsersStatus200ResponseInner) UnmarshalJSON(src []byte) error

func (*NullableApiUsersStatus200ResponseInner) Unset

type NullableArenaTournaments

type NullableArenaTournaments struct {
	// contains filtered or unexported fields
}

func NewNullableArenaTournaments

func NewNullableArenaTournaments(val *ArenaTournaments) *NullableArenaTournaments

func (NullableArenaTournaments) Get

func (NullableArenaTournaments) IsSet

func (v NullableArenaTournaments) IsSet() bool

func (NullableArenaTournaments) MarshalJSON

func (v NullableArenaTournaments) MarshalJSON() ([]byte, error)

func (*NullableArenaTournaments) Set

func (*NullableArenaTournaments) UnmarshalJSON

func (v *NullableArenaTournaments) UnmarshalJSON(src []byte) error

func (*NullableArenaTournaments) Unset

func (v *NullableArenaTournaments) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableChallengeCanceledEvent

type NullableChallengeCanceledEvent struct {
	// contains filtered or unexported fields
}

func (NullableChallengeCanceledEvent) Get

func (NullableChallengeCanceledEvent) IsSet

func (NullableChallengeCanceledEvent) MarshalJSON

func (v NullableChallengeCanceledEvent) MarshalJSON() ([]byte, error)

func (*NullableChallengeCanceledEvent) Set

func (*NullableChallengeCanceledEvent) UnmarshalJSON

func (v *NullableChallengeCanceledEvent) UnmarshalJSON(src []byte) error

func (*NullableChallengeCanceledEvent) Unset

func (v *NullableChallengeCanceledEvent) Unset()

type NullableChallengeCanceledJson

type NullableChallengeCanceledJson struct {
	// contains filtered or unexported fields
}

func (NullableChallengeCanceledJson) Get

func (NullableChallengeCanceledJson) IsSet

func (NullableChallengeCanceledJson) MarshalJSON

func (v NullableChallengeCanceledJson) MarshalJSON() ([]byte, error)

func (*NullableChallengeCanceledJson) Set

func (*NullableChallengeCanceledJson) UnmarshalJSON

func (v *NullableChallengeCanceledJson) UnmarshalJSON(src []byte) error

func (*NullableChallengeCanceledJson) Unset

func (v *NullableChallengeCanceledJson) Unset()

type NullableChallengeDeclinedEvent

type NullableChallengeDeclinedEvent struct {
	// contains filtered or unexported fields
}

func (NullableChallengeDeclinedEvent) Get

func (NullableChallengeDeclinedEvent) IsSet

func (NullableChallengeDeclinedEvent) MarshalJSON

func (v NullableChallengeDeclinedEvent) MarshalJSON() ([]byte, error)

func (*NullableChallengeDeclinedEvent) Set

func (*NullableChallengeDeclinedEvent) UnmarshalJSON

func (v *NullableChallengeDeclinedEvent) UnmarshalJSON(src []byte) error

func (*NullableChallengeDeclinedEvent) Unset

func (v *NullableChallengeDeclinedEvent) Unset()

type NullableChallengeEvent

type NullableChallengeEvent struct {
	// contains filtered or unexported fields
}

func NewNullableChallengeEvent

func NewNullableChallengeEvent(val *ChallengeEvent) *NullableChallengeEvent

func (NullableChallengeEvent) Get

func (NullableChallengeEvent) IsSet

func (v NullableChallengeEvent) IsSet() bool

func (NullableChallengeEvent) MarshalJSON

func (v NullableChallengeEvent) MarshalJSON() ([]byte, error)

func (*NullableChallengeEvent) Set

func (*NullableChallengeEvent) UnmarshalJSON

func (v *NullableChallengeEvent) UnmarshalJSON(src []byte) error

func (*NullableChallengeEvent) Unset

func (v *NullableChallengeEvent) Unset()

type NullableChallengeJson

type NullableChallengeJson struct {
	// contains filtered or unexported fields
}

func NewNullableChallengeJson

func NewNullableChallengeJson(val *ChallengeJson) *NullableChallengeJson

func (NullableChallengeJson) Get

func (NullableChallengeJson) IsSet

func (v NullableChallengeJson) IsSet() bool

func (NullableChallengeJson) MarshalJSON

func (v NullableChallengeJson) MarshalJSON() ([]byte, error)

func (*NullableChallengeJson) Set

func (v *NullableChallengeJson) Set(val *ChallengeJson)

func (*NullableChallengeJson) UnmarshalJSON

func (v *NullableChallengeJson) UnmarshalJSON(src []byte) error

func (*NullableChallengeJson) Unset

func (v *NullableChallengeJson) Unset()

type NullableChallengeJsonPerf

type NullableChallengeJsonPerf struct {
	// contains filtered or unexported fields
}

func NewNullableChallengeJsonPerf

func NewNullableChallengeJsonPerf(val *ChallengeJsonPerf) *NullableChallengeJsonPerf

func (NullableChallengeJsonPerf) Get

func (NullableChallengeJsonPerf) IsSet

func (v NullableChallengeJsonPerf) IsSet() bool

func (NullableChallengeJsonPerf) MarshalJSON

func (v NullableChallengeJsonPerf) MarshalJSON() ([]byte, error)

func (*NullableChallengeJsonPerf) Set

func (*NullableChallengeJsonPerf) UnmarshalJSON

func (v *NullableChallengeJsonPerf) UnmarshalJSON(src []byte) error

func (*NullableChallengeJsonPerf) Unset

func (v *NullableChallengeJsonPerf) Unset()

type NullableChallengeList200Response

type NullableChallengeList200Response struct {
	// contains filtered or unexported fields
}

func (NullableChallengeList200Response) Get

func (NullableChallengeList200Response) IsSet

func (NullableChallengeList200Response) MarshalJSON

func (v NullableChallengeList200Response) MarshalJSON() ([]byte, error)

func (*NullableChallengeList200Response) Set

func (*NullableChallengeList200Response) UnmarshalJSON

func (v *NullableChallengeList200Response) UnmarshalJSON(src []byte) error

func (*NullableChallengeList200Response) Unset

type NullableChallengeUser

type NullableChallengeUser struct {
	// contains filtered or unexported fields
}

func NewNullableChallengeUser

func NewNullableChallengeUser(val *ChallengeUser) *NullableChallengeUser

func (NullableChallengeUser) Get

func (NullableChallengeUser) IsSet

func (v NullableChallengeUser) IsSet() bool

func (NullableChallengeUser) MarshalJSON

func (v NullableChallengeUser) MarshalJSON() ([]byte, error)

func (*NullableChallengeUser) Set

func (v *NullableChallengeUser) Set(val *ChallengeUser)

func (*NullableChallengeUser) UnmarshalJSON

func (v *NullableChallengeUser) UnmarshalJSON(src []byte) error

func (*NullableChallengeUser) Unset

func (v *NullableChallengeUser) Unset()

type NullableChatLineEvent

type NullableChatLineEvent struct {
	// contains filtered or unexported fields
}

func NewNullableChatLineEvent

func NewNullableChatLineEvent(val *ChatLineEvent) *NullableChatLineEvent

func (NullableChatLineEvent) Get

func (NullableChatLineEvent) IsSet

func (v NullableChatLineEvent) IsSet() bool

func (NullableChatLineEvent) MarshalJSON

func (v NullableChatLineEvent) MarshalJSON() ([]byte, error)

func (*NullableChatLineEvent) Set

func (v *NullableChatLineEvent) Set(val *ChatLineEvent)

func (*NullableChatLineEvent) UnmarshalJSON

func (v *NullableChatLineEvent) UnmarshalJSON(src []byte) error

func (*NullableChatLineEvent) Unset

func (v *NullableChatLineEvent) Unset()

type NullableClock

type NullableClock struct {
	// contains filtered or unexported fields
}

func NewNullableClock

func NewNullableClock(val *Clock) *NullableClock

func (NullableClock) Get

func (v NullableClock) Get() *Clock

func (NullableClock) IsSet

func (v NullableClock) IsSet() bool

func (NullableClock) MarshalJSON

func (v NullableClock) MarshalJSON() ([]byte, error)

func (*NullableClock) Set

func (v *NullableClock) Set(val *Clock)

func (*NullableClock) UnmarshalJSON

func (v *NullableClock) UnmarshalJSON(src []byte) error

func (*NullableClock) Unset

func (v *NullableClock) Unset()

type NullableCount

type NullableCount struct {
	// contains filtered or unexported fields
}

func NewNullableCount

func NewNullableCount(val *Count) *NullableCount

func (NullableCount) Get

func (v NullableCount) Get() *Count

func (NullableCount) IsSet

func (v NullableCount) IsSet() bool

func (NullableCount) MarshalJSON

func (v NullableCount) MarshalJSON() ([]byte, error)

func (*NullableCount) Set

func (v *NullableCount) Set(val *Count)

func (*NullableCount) UnmarshalJSON

func (v *NullableCount) UnmarshalJSON(src []byte) error

func (*NullableCount) Unset

func (v *NullableCount) Unset()

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableExternalEngine

type NullableExternalEngine struct {
	// contains filtered or unexported fields
}

func NewNullableExternalEngine

func NewNullableExternalEngine(val *ExternalEngine) *NullableExternalEngine

func (NullableExternalEngine) Get

func (NullableExternalEngine) IsSet

func (v NullableExternalEngine) IsSet() bool

func (NullableExternalEngine) MarshalJSON

func (v NullableExternalEngine) MarshalJSON() ([]byte, error)

func (*NullableExternalEngine) Set

func (*NullableExternalEngine) UnmarshalJSON

func (v *NullableExternalEngine) UnmarshalJSON(src []byte) error

func (*NullableExternalEngine) Unset

func (v *NullableExternalEngine) Unset()

type NullableExternalEngineRegistration

type NullableExternalEngineRegistration struct {
	// contains filtered or unexported fields
}

func (NullableExternalEngineRegistration) Get

func (NullableExternalEngineRegistration) IsSet

func (NullableExternalEngineRegistration) MarshalJSON

func (v NullableExternalEngineRegistration) MarshalJSON() ([]byte, error)

func (*NullableExternalEngineRegistration) Set

func (*NullableExternalEngineRegistration) UnmarshalJSON

func (v *NullableExternalEngineRegistration) UnmarshalJSON(src []byte) error

func (*NullableExternalEngineRegistration) Unset

type NullableExternalEngineWork

type NullableExternalEngineWork struct {
	// contains filtered or unexported fields
}

func NewNullableExternalEngineWork

func NewNullableExternalEngineWork(val *ExternalEngineWork) *NullableExternalEngineWork

func (NullableExternalEngineWork) Get

func (NullableExternalEngineWork) IsSet

func (v NullableExternalEngineWork) IsSet() bool

func (NullableExternalEngineWork) MarshalJSON

func (v NullableExternalEngineWork) MarshalJSON() ([]byte, error)

func (*NullableExternalEngineWork) Set

func (*NullableExternalEngineWork) UnmarshalJSON

func (v *NullableExternalEngineWork) UnmarshalJSON(src []byte) error

func (*NullableExternalEngineWork) Unset

func (v *NullableExternalEngineWork) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGameEventInfo

type NullableGameEventInfo struct {
	// contains filtered or unexported fields
}

func NewNullableGameEventInfo

func NewNullableGameEventInfo(val *GameEventInfo) *NullableGameEventInfo

func (NullableGameEventInfo) Get

func (NullableGameEventInfo) IsSet

func (v NullableGameEventInfo) IsSet() bool

func (NullableGameEventInfo) MarshalJSON

func (v NullableGameEventInfo) MarshalJSON() ([]byte, error)

func (*NullableGameEventInfo) Set

func (v *NullableGameEventInfo) Set(val *GameEventInfo)

func (*NullableGameEventInfo) UnmarshalJSON

func (v *NullableGameEventInfo) UnmarshalJSON(src []byte) error

func (*NullableGameEventInfo) Unset

func (v *NullableGameEventInfo) Unset()

type NullableGameEventInfoCompat

type NullableGameEventInfoCompat struct {
	// contains filtered or unexported fields
}

func NewNullableGameEventInfoCompat

func NewNullableGameEventInfoCompat(val *GameEventInfoCompat) *NullableGameEventInfoCompat

func (NullableGameEventInfoCompat) Get

func (NullableGameEventInfoCompat) IsSet

func (NullableGameEventInfoCompat) MarshalJSON

func (v NullableGameEventInfoCompat) MarshalJSON() ([]byte, error)

func (*NullableGameEventInfoCompat) Set

func (*NullableGameEventInfoCompat) UnmarshalJSON

func (v *NullableGameEventInfoCompat) UnmarshalJSON(src []byte) error

func (*NullableGameEventInfoCompat) Unset

func (v *NullableGameEventInfoCompat) Unset()

type NullableGameEventPlayer

type NullableGameEventPlayer struct {
	// contains filtered or unexported fields
}

func NewNullableGameEventPlayer

func NewNullableGameEventPlayer(val *GameEventPlayer) *NullableGameEventPlayer

func (NullableGameEventPlayer) Get

func (NullableGameEventPlayer) IsSet

func (v NullableGameEventPlayer) IsSet() bool

func (NullableGameEventPlayer) MarshalJSON

func (v NullableGameEventPlayer) MarshalJSON() ([]byte, error)

func (*NullableGameEventPlayer) Set

func (*NullableGameEventPlayer) UnmarshalJSON

func (v *NullableGameEventPlayer) UnmarshalJSON(src []byte) error

func (*NullableGameEventPlayer) Unset

func (v *NullableGameEventPlayer) Unset()

type NullableGameFinishEvent

type NullableGameFinishEvent struct {
	// contains filtered or unexported fields
}

func NewNullableGameFinishEvent

func NewNullableGameFinishEvent(val *GameFinishEvent) *NullableGameFinishEvent

func (NullableGameFinishEvent) Get

func (NullableGameFinishEvent) IsSet

func (v NullableGameFinishEvent) IsSet() bool

func (NullableGameFinishEvent) MarshalJSON

func (v NullableGameFinishEvent) MarshalJSON() ([]byte, error)

func (*NullableGameFinishEvent) Set

func (*NullableGameFinishEvent) UnmarshalJSON

func (v *NullableGameFinishEvent) UnmarshalJSON(src []byte) error

func (*NullableGameFinishEvent) Unset

func (v *NullableGameFinishEvent) Unset()

type NullableGameFullEvent

type NullableGameFullEvent struct {
	// contains filtered or unexported fields
}

func NewNullableGameFullEvent

func NewNullableGameFullEvent(val *GameFullEvent) *NullableGameFullEvent

func (NullableGameFullEvent) Get

func (NullableGameFullEvent) IsSet

func (v NullableGameFullEvent) IsSet() bool

func (NullableGameFullEvent) MarshalJSON

func (v NullableGameFullEvent) MarshalJSON() ([]byte, error)

func (*NullableGameFullEvent) Set

func (v *NullableGameFullEvent) Set(val *GameFullEvent)

func (*NullableGameFullEvent) UnmarshalJSON

func (v *NullableGameFullEvent) UnmarshalJSON(src []byte) error

func (*NullableGameFullEvent) Unset

func (v *NullableGameFullEvent) Unset()

type NullableGameFullEventPerf

type NullableGameFullEventPerf struct {
	// contains filtered or unexported fields
}

func NewNullableGameFullEventPerf

func NewNullableGameFullEventPerf(val *GameFullEventPerf) *NullableGameFullEventPerf

func (NullableGameFullEventPerf) Get

func (NullableGameFullEventPerf) IsSet

func (v NullableGameFullEventPerf) IsSet() bool

func (NullableGameFullEventPerf) MarshalJSON

func (v NullableGameFullEventPerf) MarshalJSON() ([]byte, error)

func (*NullableGameFullEventPerf) Set

func (*NullableGameFullEventPerf) UnmarshalJSON

func (v *NullableGameFullEventPerf) UnmarshalJSON(src []byte) error

func (*NullableGameFullEventPerf) Unset

func (v *NullableGameFullEventPerf) Unset()

type NullableGameJson

type NullableGameJson struct {
	// contains filtered or unexported fields
}

func NewNullableGameJson

func NewNullableGameJson(val *GameJson) *NullableGameJson

func (NullableGameJson) Get

func (v NullableGameJson) Get() *GameJson

func (NullableGameJson) IsSet

func (v NullableGameJson) IsSet() bool

func (NullableGameJson) MarshalJSON

func (v NullableGameJson) MarshalJSON() ([]byte, error)

func (*NullableGameJson) Set

func (v *NullableGameJson) Set(val *GameJson)

func (*NullableGameJson) UnmarshalJSON

func (v *NullableGameJson) UnmarshalJSON(src []byte) error

func (*NullableGameJson) Unset

func (v *NullableGameJson) Unset()

type NullableGameJsonClock

type NullableGameJsonClock struct {
	// contains filtered or unexported fields
}

func NewNullableGameJsonClock

func NewNullableGameJsonClock(val *GameJsonClock) *NullableGameJsonClock

func (NullableGameJsonClock) Get

func (NullableGameJsonClock) IsSet

func (v NullableGameJsonClock) IsSet() bool

func (NullableGameJsonClock) MarshalJSON

func (v NullableGameJsonClock) MarshalJSON() ([]byte, error)

func (*NullableGameJsonClock) Set

func (v *NullableGameJsonClock) Set(val *GameJsonClock)

func (*NullableGameJsonClock) UnmarshalJSON

func (v *NullableGameJsonClock) UnmarshalJSON(src []byte) error

func (*NullableGameJsonClock) Unset

func (v *NullableGameJsonClock) Unset()

type NullableGameJsonOpening

type NullableGameJsonOpening struct {
	// contains filtered or unexported fields
}

func NewNullableGameJsonOpening

func NewNullableGameJsonOpening(val *GameJsonOpening) *NullableGameJsonOpening

func (NullableGameJsonOpening) Get

func (NullableGameJsonOpening) IsSet

func (v NullableGameJsonOpening) IsSet() bool

func (NullableGameJsonOpening) MarshalJSON

func (v NullableGameJsonOpening) MarshalJSON() ([]byte, error)

func (*NullableGameJsonOpening) Set

func (*NullableGameJsonOpening) UnmarshalJSON

func (v *NullableGameJsonOpening) UnmarshalJSON(src []byte) error

func (*NullableGameJsonOpening) Unset

func (v *NullableGameJsonOpening) Unset()

type NullableGameJsonPlayers

type NullableGameJsonPlayers struct {
	// contains filtered or unexported fields
}

func NewNullableGameJsonPlayers

func NewNullableGameJsonPlayers(val *GameJsonPlayers) *NullableGameJsonPlayers

func (NullableGameJsonPlayers) Get

func (NullableGameJsonPlayers) IsSet

func (v NullableGameJsonPlayers) IsSet() bool

func (NullableGameJsonPlayers) MarshalJSON

func (v NullableGameJsonPlayers) MarshalJSON() ([]byte, error)

func (*NullableGameJsonPlayers) Set

func (*NullableGameJsonPlayers) UnmarshalJSON

func (v *NullableGameJsonPlayers) UnmarshalJSON(src []byte) error

func (*NullableGameJsonPlayers) Unset

func (v *NullableGameJsonPlayers) Unset()

type NullableGameStartEvent

type NullableGameStartEvent struct {
	// contains filtered or unexported fields
}

func NewNullableGameStartEvent

func NewNullableGameStartEvent(val *GameStartEvent) *NullableGameStartEvent

func (NullableGameStartEvent) Get

func (NullableGameStartEvent) IsSet

func (v NullableGameStartEvent) IsSet() bool

func (NullableGameStartEvent) MarshalJSON

func (v NullableGameStartEvent) MarshalJSON() ([]byte, error)

func (*NullableGameStartEvent) Set

func (*NullableGameStartEvent) UnmarshalJSON

func (v *NullableGameStartEvent) UnmarshalJSON(src []byte) error

func (*NullableGameStartEvent) Unset

func (v *NullableGameStartEvent) Unset()

type NullableGameStateEvent

type NullableGameStateEvent struct {
	// contains filtered or unexported fields
}

func NewNullableGameStateEvent

func NewNullableGameStateEvent(val *GameStateEvent) *NullableGameStateEvent

func (NullableGameStateEvent) Get

func (NullableGameStateEvent) IsSet

func (v NullableGameStateEvent) IsSet() bool

func (NullableGameStateEvent) MarshalJSON

func (v NullableGameStateEvent) MarshalJSON() ([]byte, error)

func (*NullableGameStateEvent) Set

func (*NullableGameStateEvent) UnmarshalJSON

func (v *NullableGameStateEvent) UnmarshalJSON(src []byte) error

func (*NullableGameStateEvent) Unset

func (v *NullableGameStateEvent) Unset()

type NullableGameStatus

type NullableGameStatus struct {
	// contains filtered or unexported fields
}

func NewNullableGameStatus

func NewNullableGameStatus(val *GameStatus) *NullableGameStatus

func (NullableGameStatus) Get

func (v NullableGameStatus) Get() *GameStatus

func (NullableGameStatus) IsSet

func (v NullableGameStatus) IsSet() bool

func (NullableGameStatus) MarshalJSON

func (v NullableGameStatus) MarshalJSON() ([]byte, error)

func (*NullableGameStatus) Set

func (v *NullableGameStatus) Set(val *GameStatus)

func (*NullableGameStatus) UnmarshalJSON

func (v *NullableGameStatus) UnmarshalJSON(src []byte) error

func (*NullableGameStatus) Unset

func (v *NullableGameStatus) Unset()

type NullableGameUser

type NullableGameUser struct {
	// contains filtered or unexported fields
}

func NewNullableGameUser

func NewNullableGameUser(val *GameUser) *NullableGameUser

func (NullableGameUser) Get

func (v NullableGameUser) Get() *GameUser

func (NullableGameUser) IsSet

func (v NullableGameUser) IsSet() bool

func (NullableGameUser) MarshalJSON

func (v NullableGameUser) MarshalJSON() ([]byte, error)

func (*NullableGameUser) Set

func (v *NullableGameUser) Set(val *GameUser)

func (*NullableGameUser) UnmarshalJSON

func (v *NullableGameUser) UnmarshalJSON(src []byte) error

func (*NullableGameUser) Unset

func (v *NullableGameUser) Unset()

type NullableGameUserAnalysis

type NullableGameUserAnalysis struct {
	// contains filtered or unexported fields
}

func NewNullableGameUserAnalysis

func NewNullableGameUserAnalysis(val *GameUserAnalysis) *NullableGameUserAnalysis

func (NullableGameUserAnalysis) Get

func (NullableGameUserAnalysis) IsSet

func (v NullableGameUserAnalysis) IsSet() bool

func (NullableGameUserAnalysis) MarshalJSON

func (v NullableGameUserAnalysis) MarshalJSON() ([]byte, error)

func (*NullableGameUserAnalysis) Set

func (*NullableGameUserAnalysis) UnmarshalJSON

func (v *NullableGameUserAnalysis) UnmarshalJSON(src []byte) error

func (*NullableGameUserAnalysis) Unset

func (v *NullableGameUserAnalysis) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLightUser

type NullableLightUser struct {
	// contains filtered or unexported fields
}

func NewNullableLightUser

func NewNullableLightUser(val *LightUser) *NullableLightUser

func (NullableLightUser) Get

func (v NullableLightUser) Get() *LightUser

func (NullableLightUser) IsSet

func (v NullableLightUser) IsSet() bool

func (NullableLightUser) MarshalJSON

func (v NullableLightUser) MarshalJSON() ([]byte, error)

func (*NullableLightUser) Set

func (v *NullableLightUser) Set(val *LightUser)

func (*NullableLightUser) UnmarshalJSON

func (v *NullableLightUser) UnmarshalJSON(src []byte) error

func (*NullableLightUser) Unset

func (v *NullableLightUser) Unset()

type NullableMove

type NullableMove struct {
	// contains filtered or unexported fields
}

func NewNullableMove

func NewNullableMove(val *Move) *NullableMove

func (NullableMove) Get

func (v NullableMove) Get() *Move

func (NullableMove) IsSet

func (v NullableMove) IsSet() bool

func (NullableMove) MarshalJSON

func (v NullableMove) MarshalJSON() ([]byte, error)

func (*NullableMove) Set

func (v *NullableMove) Set(val *Move)

func (*NullableMove) UnmarshalJSON

func (v *NullableMove) UnmarshalJSON(src []byte) error

func (*NullableMove) Unset

func (v *NullableMove) Unset()

type NullableNotFound

type NullableNotFound struct {
	// contains filtered or unexported fields
}

func NewNullableNotFound

func NewNullableNotFound(val *NotFound) *NullableNotFound

func (NullableNotFound) Get

func (v NullableNotFound) Get() *NotFound

func (NullableNotFound) IsSet

func (v NullableNotFound) IsSet() bool

func (NullableNotFound) MarshalJSON

func (v NullableNotFound) MarshalJSON() ([]byte, error)

func (*NullableNotFound) Set

func (v *NullableNotFound) Set(val *NotFound)

func (*NullableNotFound) UnmarshalJSON

func (v *NullableNotFound) UnmarshalJSON(src []byte) error

func (*NullableNotFound) Unset

func (v *NullableNotFound) Unset()

type NullableOAuthError

type NullableOAuthError struct {
	// contains filtered or unexported fields
}

func NewNullableOAuthError

func NewNullableOAuthError(val *OAuthError) *NullableOAuthError

func (NullableOAuthError) Get

func (v NullableOAuthError) Get() *OAuthError

func (NullableOAuthError) IsSet

func (v NullableOAuthError) IsSet() bool

func (NullableOAuthError) MarshalJSON

func (v NullableOAuthError) MarshalJSON() ([]byte, error)

func (*NullableOAuthError) Set

func (v *NullableOAuthError) Set(val *OAuthError)

func (*NullableOAuthError) UnmarshalJSON

func (v *NullableOAuthError) UnmarshalJSON(src []byte) error

func (*NullableOAuthError) Unset

func (v *NullableOAuthError) Unset()

type NullableOk

type NullableOk struct {
	// contains filtered or unexported fields
}

func NewNullableOk

func NewNullableOk(val *Ok) *NullableOk

func (NullableOk) Get

func (v NullableOk) Get() *Ok

func (NullableOk) IsSet

func (v NullableOk) IsSet() bool

func (NullableOk) MarshalJSON

func (v NullableOk) MarshalJSON() ([]byte, error)

func (*NullableOk) Set

func (v *NullableOk) Set(val *Ok)

func (*NullableOk) UnmarshalJSON

func (v *NullableOk) UnmarshalJSON(src []byte) error

func (*NullableOk) Unset

func (v *NullableOk) Unset()

type NullableOpponentGone

type NullableOpponentGone struct {
	// contains filtered or unexported fields
}

func NewNullableOpponentGone

func NewNullableOpponentGone(val *OpponentGone) *NullableOpponentGone

func (NullableOpponentGone) Get

func (NullableOpponentGone) IsSet

func (v NullableOpponentGone) IsSet() bool

func (NullableOpponentGone) MarshalJSON

func (v NullableOpponentGone) MarshalJSON() ([]byte, error)

func (*NullableOpponentGone) Set

func (v *NullableOpponentGone) Set(val *OpponentGone)

func (*NullableOpponentGone) UnmarshalJSON

func (v *NullableOpponentGone) UnmarshalJSON(src []byte) error

func (*NullableOpponentGone) Unset

func (v *NullableOpponentGone) Unset()

type NullablePerf

type NullablePerf struct {
	// contains filtered or unexported fields
}

func NewNullablePerf

func NewNullablePerf(val *Perf) *NullablePerf

func (NullablePerf) Get

func (v NullablePerf) Get() *Perf

func (NullablePerf) IsSet

func (v NullablePerf) IsSet() bool

func (NullablePerf) MarshalJSON

func (v NullablePerf) MarshalJSON() ([]byte, error)

func (*NullablePerf) Set

func (v *NullablePerf) Set(val *Perf)

func (*NullablePerf) UnmarshalJSON

func (v *NullablePerf) UnmarshalJSON(src []byte) error

func (*NullablePerf) Unset

func (v *NullablePerf) Unset()

type NullablePerfType

type NullablePerfType struct {
	// contains filtered or unexported fields
}

func NewNullablePerfType

func NewNullablePerfType(val *PerfType) *NullablePerfType

func (NullablePerfType) Get

func (v NullablePerfType) Get() *PerfType

func (NullablePerfType) IsSet

func (v NullablePerfType) IsSet() bool

func (NullablePerfType) MarshalJSON

func (v NullablePerfType) MarshalJSON() ([]byte, error)

func (*NullablePerfType) Set

func (v *NullablePerfType) Set(val *PerfType)

func (*NullablePerfType) UnmarshalJSON

func (v *NullablePerfType) UnmarshalJSON(src []byte) error

func (*NullablePerfType) Unset

func (v *NullablePerfType) Unset()

type NullablePerfs

type NullablePerfs struct {
	// contains filtered or unexported fields
}

func NewNullablePerfs

func NewNullablePerfs(val *Perfs) *NullablePerfs

func (NullablePerfs) Get

func (v NullablePerfs) Get() *Perfs

func (NullablePerfs) IsSet

func (v NullablePerfs) IsSet() bool

func (NullablePerfs) MarshalJSON

func (v NullablePerfs) MarshalJSON() ([]byte, error)

func (*NullablePerfs) Set

func (v *NullablePerfs) Set(val *Perfs)

func (*NullablePerfs) UnmarshalJSON

func (v *NullablePerfs) UnmarshalJSON(src []byte) error

func (*NullablePerfs) Unset

func (v *NullablePerfs) Unset()

type NullablePlayTime

type NullablePlayTime struct {
	// contains filtered or unexported fields
}

func NewNullablePlayTime

func NewNullablePlayTime(val *PlayTime) *NullablePlayTime

func (NullablePlayTime) Get

func (v NullablePlayTime) Get() *PlayTime

func (NullablePlayTime) IsSet

func (v NullablePlayTime) IsSet() bool

func (NullablePlayTime) MarshalJSON

func (v NullablePlayTime) MarshalJSON() ([]byte, error)

func (*NullablePlayTime) Set

func (v *NullablePlayTime) Set(val *PlayTime)

func (*NullablePlayTime) UnmarshalJSON

func (v *NullablePlayTime) UnmarshalJSON(src []byte) error

func (*NullablePlayTime) Unset

func (v *NullablePlayTime) Unset()

type NullableProfile

type NullableProfile struct {
	// contains filtered or unexported fields
}

func NewNullableProfile

func NewNullableProfile(val *Profile) *NullableProfile

func (NullableProfile) Get

func (v NullableProfile) Get() *Profile

func (NullableProfile) IsSet

func (v NullableProfile) IsSet() bool

func (NullableProfile) MarshalJSON

func (v NullableProfile) MarshalJSON() ([]byte, error)

func (*NullableProfile) Set

func (v *NullableProfile) Set(val *Profile)

func (*NullableProfile) UnmarshalJSON

func (v *NullableProfile) UnmarshalJSON(src []byte) error

func (*NullableProfile) Unset

func (v *NullableProfile) Unset()

type NullablePuzzleRoundJson

type NullablePuzzleRoundJson struct {
	// contains filtered or unexported fields
}

func NewNullablePuzzleRoundJson

func NewNullablePuzzleRoundJson(val *PuzzleRoundJson) *NullablePuzzleRoundJson

func (NullablePuzzleRoundJson) Get

func (NullablePuzzleRoundJson) IsSet

func (v NullablePuzzleRoundJson) IsSet() bool

func (NullablePuzzleRoundJson) MarshalJSON

func (v NullablePuzzleRoundJson) MarshalJSON() ([]byte, error)

func (*NullablePuzzleRoundJson) Set

func (*NullablePuzzleRoundJson) UnmarshalJSON

func (v *NullablePuzzleRoundJson) UnmarshalJSON(src []byte) error

func (*NullablePuzzleRoundJson) Unset

func (v *NullablePuzzleRoundJson) Unset()

type NullableSpeed

type NullableSpeed struct {
	// contains filtered or unexported fields
}

func NewNullableSpeed

func NewNullableSpeed(val *Speed) *NullableSpeed

func (NullableSpeed) Get

func (v NullableSpeed) Get() *Speed

func (NullableSpeed) IsSet

func (v NullableSpeed) IsSet() bool

func (NullableSpeed) MarshalJSON

func (v NullableSpeed) MarshalJSON() ([]byte, error)

func (*NullableSpeed) Set

func (v *NullableSpeed) Set(val *Speed)

func (*NullableSpeed) UnmarshalJSON

func (v *NullableSpeed) UnmarshalJSON(src []byte) error

func (*NullableSpeed) Unset

func (v *NullableSpeed) Unset()

type NullableStormPerf

type NullableStormPerf struct {
	// contains filtered or unexported fields
}

func NewNullableStormPerf

func NewNullableStormPerf(val *StormPerf) *NullableStormPerf

func (NullableStormPerf) Get

func (v NullableStormPerf) Get() *StormPerf

func (NullableStormPerf) IsSet

func (v NullableStormPerf) IsSet() bool

func (NullableStormPerf) MarshalJSON

func (v NullableStormPerf) MarshalJSON() ([]byte, error)

func (*NullableStormPerf) Set

func (v *NullableStormPerf) Set(val *StormPerf)

func (*NullableStormPerf) UnmarshalJSON

func (v *NullableStormPerf) UnmarshalJSON(src []byte) error

func (*NullableStormPerf) Unset

func (v *NullableStormPerf) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSwissUnauthorisedEdit

type NullableSwissUnauthorisedEdit struct {
	// contains filtered or unexported fields
}

func (NullableSwissUnauthorisedEdit) Get

func (NullableSwissUnauthorisedEdit) IsSet

func (NullableSwissUnauthorisedEdit) MarshalJSON

func (v NullableSwissUnauthorisedEdit) MarshalJSON() ([]byte, error)

func (*NullableSwissUnauthorisedEdit) Set

func (*NullableSwissUnauthorisedEdit) UnmarshalJSON

func (v *NullableSwissUnauthorisedEdit) UnmarshalJSON(src []byte) error

func (*NullableSwissUnauthorisedEdit) Unset

func (v *NullableSwissUnauthorisedEdit) Unset()

type NullableTablebaseJson

type NullableTablebaseJson struct {
	// contains filtered or unexported fields
}

func NewNullableTablebaseJson

func NewNullableTablebaseJson(val *TablebaseJson) *NullableTablebaseJson

func (NullableTablebaseJson) Get

func (NullableTablebaseJson) IsSet

func (v NullableTablebaseJson) IsSet() bool

func (NullableTablebaseJson) MarshalJSON

func (v NullableTablebaseJson) MarshalJSON() ([]byte, error)

func (*NullableTablebaseJson) Set

func (v *NullableTablebaseJson) Set(val *TablebaseJson)

func (*NullableTablebaseJson) UnmarshalJSON

func (v *NullableTablebaseJson) UnmarshalJSON(src []byte) error

func (*NullableTablebaseJson) Unset

func (v *NullableTablebaseJson) Unset()

type NullableTeam

type NullableTeam struct {
	// contains filtered or unexported fields
}

func NewNullableTeam

func NewNullableTeam(val *Team) *NullableTeam

func (NullableTeam) Get

func (v NullableTeam) Get() *Team

func (NullableTeam) IsSet

func (v NullableTeam) IsSet() bool

func (NullableTeam) MarshalJSON

func (v NullableTeam) MarshalJSON() ([]byte, error)

func (*NullableTeam) Set

func (v *NullableTeam) Set(val *Team)

func (*NullableTeam) UnmarshalJSON

func (v *NullableTeam) UnmarshalJSON(src []byte) error

func (*NullableTeam) Unset

func (v *NullableTeam) Unset()

type NullableTeamAll200Response

type NullableTeamAll200Response struct {
	// contains filtered or unexported fields
}

func NewNullableTeamAll200Response

func NewNullableTeamAll200Response(val *TeamAll200Response) *NullableTeamAll200Response

func (NullableTeamAll200Response) Get

func (NullableTeamAll200Response) IsSet

func (v NullableTeamAll200Response) IsSet() bool

func (NullableTeamAll200Response) MarshalJSON

func (v NullableTeamAll200Response) MarshalJSON() ([]byte, error)

func (*NullableTeamAll200Response) Set

func (*NullableTeamAll200Response) UnmarshalJSON

func (v *NullableTeamAll200Response) UnmarshalJSON(src []byte) error

func (*NullableTeamAll200Response) Unset

func (v *NullableTeamAll200Response) Unset()

type NullableTeamRequest

type NullableTeamRequest struct {
	// contains filtered or unexported fields
}

func NewNullableTeamRequest

func NewNullableTeamRequest(val *TeamRequest) *NullableTeamRequest

func (NullableTeamRequest) Get

func (NullableTeamRequest) IsSet

func (v NullableTeamRequest) IsSet() bool

func (NullableTeamRequest) MarshalJSON

func (v NullableTeamRequest) MarshalJSON() ([]byte, error)

func (*NullableTeamRequest) Set

func (v *NullableTeamRequest) Set(val *TeamRequest)

func (*NullableTeamRequest) UnmarshalJSON

func (v *NullableTeamRequest) UnmarshalJSON(src []byte) error

func (*NullableTeamRequest) Unset

func (v *NullableTeamRequest) Unset()

type NullableTeamRequestWithUser

type NullableTeamRequestWithUser struct {
	// contains filtered or unexported fields
}

func NewNullableTeamRequestWithUser

func NewNullableTeamRequestWithUser(val *TeamRequestWithUser) *NullableTeamRequestWithUser

func (NullableTeamRequestWithUser) Get

func (NullableTeamRequestWithUser) IsSet

func (NullableTeamRequestWithUser) MarshalJSON

func (v NullableTeamRequestWithUser) MarshalJSON() ([]byte, error)

func (*NullableTeamRequestWithUser) Set

func (*NullableTeamRequestWithUser) UnmarshalJSON

func (v *NullableTeamRequestWithUser) UnmarshalJSON(src []byte) error

func (*NullableTeamRequestWithUser) Unset

func (v *NullableTeamRequestWithUser) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTitle

type NullableTitle struct {
	// contains filtered or unexported fields
}

func NewNullableTitle

func NewNullableTitle(val *Title) *NullableTitle

func (NullableTitle) Get

func (v NullableTitle) Get() *Title

func (NullableTitle) IsSet

func (v NullableTitle) IsSet() bool

func (NullableTitle) MarshalJSON

func (v NullableTitle) MarshalJSON() ([]byte, error)

func (*NullableTitle) Set

func (v *NullableTitle) Set(val *Title)

func (*NullableTitle) UnmarshalJSON

func (v *NullableTitle) UnmarshalJSON(src []byte) error

func (*NullableTitle) Unset

func (v *NullableTitle) Unset()

type NullableUciVariant

type NullableUciVariant struct {
	// contains filtered or unexported fields
}

func NewNullableUciVariant

func NewNullableUciVariant(val *UciVariant) *NullableUciVariant

func (NullableUciVariant) Get

func (v NullableUciVariant) Get() *UciVariant

func (NullableUciVariant) IsSet

func (v NullableUciVariant) IsSet() bool

func (NullableUciVariant) MarshalJSON

func (v NullableUciVariant) MarshalJSON() ([]byte, error)

func (*NullableUciVariant) Set

func (v *NullableUciVariant) Set(val *UciVariant)

func (*NullableUciVariant) UnmarshalJSON

func (v *NullableUciVariant) UnmarshalJSON(src []byte) error

func (*NullableUciVariant) Unset

func (v *NullableUciVariant) Unset()

type NullableUser

type NullableUser struct {
	// contains filtered or unexported fields
}

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

func (v NullableUser) MarshalJSON() ([]byte, error)

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

func (v *NullableUser) UnmarshalJSON(src []byte) error

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableUserPreferences

type NullableUserPreferences struct {
	// contains filtered or unexported fields
}

func NewNullableUserPreferences

func NewNullableUserPreferences(val *UserPreferences) *NullableUserPreferences

func (NullableUserPreferences) Get

func (NullableUserPreferences) IsSet

func (v NullableUserPreferences) IsSet() bool

func (NullableUserPreferences) MarshalJSON

func (v NullableUserPreferences) MarshalJSON() ([]byte, error)

func (*NullableUserPreferences) Set

func (*NullableUserPreferences) UnmarshalJSON

func (v *NullableUserPreferences) UnmarshalJSON(src []byte) error

func (*NullableUserPreferences) Unset

func (v *NullableUserPreferences) Unset()

type NullableVariant

type NullableVariant struct {
	// contains filtered or unexported fields
}

func NewNullableVariant

func NewNullableVariant(val *Variant) *NullableVariant

func (NullableVariant) Get

func (v NullableVariant) Get() *Variant

func (NullableVariant) IsSet

func (v NullableVariant) IsSet() bool

func (NullableVariant) MarshalJSON

func (v NullableVariant) MarshalJSON() ([]byte, error)

func (*NullableVariant) Set

func (v *NullableVariant) Set(val *Variant)

func (*NullableVariant) UnmarshalJSON

func (v *NullableVariant) UnmarshalJSON(src []byte) error

func (*NullableVariant) Unset

func (v *NullableVariant) Unset()

type NullableVariantKey

type NullableVariantKey struct {
	// contains filtered or unexported fields
}

func NewNullableVariantKey

func NewNullableVariantKey(val *VariantKey) *NullableVariantKey

func (NullableVariantKey) Get

func (v NullableVariantKey) Get() *VariantKey

func (NullableVariantKey) IsSet

func (v NullableVariantKey) IsSet() bool

func (NullableVariantKey) MarshalJSON

func (v NullableVariantKey) MarshalJSON() ([]byte, error)

func (*NullableVariantKey) Set

func (v *NullableVariantKey) Set(val *VariantKey)

func (*NullableVariantKey) UnmarshalJSON

func (v *NullableVariantKey) UnmarshalJSON(src []byte) error

func (*NullableVariantKey) Unset

func (v *NullableVariantKey) Unset()

type OAuthApiService

type OAuthApiService service

OAuthApiService OAuthApi service

func (*OAuthApiService) ApiToken

ApiToken Obtain access token

OAuth2 token endpoint. Exchanges an authorization code for an access token.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiTokenRequest

func (*OAuthApiService) ApiTokenDelete

ApiTokenDelete Revoke access token

Revokes the access token sent as Bearer for this request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiTokenDeleteRequest

func (*OAuthApiService) ApiTokenDeleteExecute

func (a *OAuthApiService) ApiTokenDeleteExecute(r ApiApiTokenDeleteRequest) (*http.Response, error)

Execute executes the request

func (*OAuthApiService) ApiTokenExecute

func (a *OAuthApiService) ApiTokenExecute(r ApiApiTokenRequest) (*http.Response, error)

Execute executes the request

func (*OAuthApiService) Oauth

Oauth Request authorization code

OAuth2 authorization endpoint.

Start the OAuth2 Authorization Code Flow with PKCE by securely generating two random strings unique to each authorization request: * `code_verifier` * `state`

Store these in session storage. Make sure not to reveal `code_verifier` to eavesdroppers. Do not show it in URLs, do not abuse `state` to store it, do not send it over insecure connections. However it is fine if the user themselves can extract `code_verifier`, which will always be possible for fully client-side apps.

Then send the user to this endpoint. They will be prompted to grant authorization and then be redirected back to the given `redirect_uri`.

If the authorization failed, the following query string parameters will be appended to the redirection:

  • `error`, in particular with value `access_denied` if the user cancelled authorization
  • `error_description` to aid debugging
  • `state`, exactly as passed in the `state` parameter

If the authorization succeeded, the following query string parameters will be appended to the redirection: * `code`, containing a fresh short-lived authorization code * `state`, exactly as passed in the `state` parameter

Next, to defend against cross site request forgery, check that the returned `state` matches the `state` you originally generated.

Finally, continue by using the authorization code to [obtain an access token](#operation/apiToken).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOauthRequest

func (*OAuthApiService) OauthExecute

func (a *OAuthApiService) OauthExecute(r ApiOauthRequest) (*http.Response, error)

Execute executes the request

func (*OAuthApiService) TokenTest

TokenTest Test multiple OAuth tokens

For up to 1000 OAuth tokens, returns their associated user ID and scopes, or `null` if the token is invalid.

The method is `POST` so a longer list of tokens can be sent in the request body.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTokenTestRequest

func (*OAuthApiService) TokenTestExecute

func (a *OAuthApiService) TokenTestExecute(r ApiTokenTestRequest) ([]map[string]interface{}, *http.Response, error)

Execute executes the request

@return []map[string]interface{}

type OAuthError

type OAuthError struct {
	// The cause of the error.
	Error interface{} `json:"error,omitempty"`
	// The reason why the request was rejected.
	ErrorDescription interface{} `json:"error_description,omitempty"`
}

OAuthError struct for OAuthError

func NewOAuthError

func NewOAuthError() *OAuthError

NewOAuthError instantiates a new OAuthError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOAuthErrorWithDefaults

func NewOAuthErrorWithDefaults() *OAuthError

NewOAuthErrorWithDefaults instantiates a new OAuthError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OAuthError) GetError

func (o *OAuthError) GetError() interface{}

GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OAuthError) GetErrorDescription

func (o *OAuthError) GetErrorDescription() interface{}

GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OAuthError) GetErrorDescriptionOk

func (o *OAuthError) GetErrorDescriptionOk() (*interface{}, bool)

GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OAuthError) GetErrorOk

func (o *OAuthError) GetErrorOk() (*interface{}, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OAuthError) HasError

func (o *OAuthError) HasError() bool

HasError returns a boolean if a field has been set.

func (*OAuthError) HasErrorDescription

func (o *OAuthError) HasErrorDescription() bool

HasErrorDescription returns a boolean if a field has been set.

func (OAuthError) MarshalJSON

func (o OAuthError) MarshalJSON() ([]byte, error)

func (*OAuthError) SetError

func (o *OAuthError) SetError(v interface{})

SetError gets a reference to the given interface{} and assigns it to the Error field.

func (*OAuthError) SetErrorDescription

func (o *OAuthError) SetErrorDescription(v interface{})

SetErrorDescription gets a reference to the given interface{} and assigns it to the ErrorDescription field.

type Ok

type Ok struct {
	Ok interface{} `json:"ok,omitempty"`
}

Ok struct for Ok

func NewOk

func NewOk() *Ok

NewOk instantiates a new Ok object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOkWithDefaults

func NewOkWithDefaults() *Ok

NewOkWithDefaults instantiates a new Ok object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Ok) GetOk

func (o *Ok) GetOk() interface{}

GetOk returns the Ok field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Ok) GetOkOk

func (o *Ok) GetOkOk() (*interface{}, bool)

GetOkOk returns a tuple with the Ok field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Ok) HasOk

func (o *Ok) HasOk() bool

HasOk returns a boolean if a field has been set.

func (Ok) MarshalJSON

func (o Ok) MarshalJSON() ([]byte, error)

func (*Ok) SetOk

func (o *Ok) SetOk(v interface{})

SetOk gets a reference to the given interface{} and assigns it to the Ok field.

type OpeningExplorerApiService

type OpeningExplorerApiService service

OpeningExplorerApiService OpeningExplorerApi service

func (*OpeningExplorerApiService) OpeningExplorerLichess

OpeningExplorerLichess Lichess games

**Endpoint: <https://explorer.lichess.ovh/lichess>**

Games sampled from all Lichess players.

Example: `curl https://explorer.lichess.ovh/lichess?variant=standard&speeds=blitz,rapid,classical&ratings=2200,2500&fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR%20w%20KQkq%20-%200%201`

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOpeningExplorerLichessRequest

func (*OpeningExplorerApiService) OpeningExplorerLichessExecute

func (a *OpeningExplorerApiService) OpeningExplorerLichessExecute(r ApiOpeningExplorerLichessRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*OpeningExplorerApiService) OpeningExplorerLichessHistory

OpeningExplorerLichessHistory Lichess games history

**Endpoint: <https://explorer.lichess.ovh/lichess/history>**

Opening statistics of games sampled from all Lichess players, grouped by month. Starts with the first month that has any data, or at `since` if given.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOpeningExplorerLichessHistoryRequest

func (*OpeningExplorerApiService) OpeningExplorerLichessHistoryExecute

func (a *OpeningExplorerApiService) OpeningExplorerLichessHistoryExecute(r ApiOpeningExplorerLichessHistoryRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*OpeningExplorerApiService) OpeningExplorerMaster

OpeningExplorerMaster Masters database

**Endpoint: <https://explorer.lichess.ovh/masters>**

Example: `curl https://explorer.lichess.ovh/masters?play=d2d4,d7d5,c2c4,c7c6,c4d5`

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOpeningExplorerMasterRequest

func (*OpeningExplorerApiService) OpeningExplorerMasterExecute

func (a *OpeningExplorerApiService) OpeningExplorerMasterExecute(r ApiOpeningExplorerMasterRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*OpeningExplorerApiService) OpeningExplorerMasterGame

func (a *OpeningExplorerApiService) OpeningExplorerMasterGame(ctx context.Context, gameId interface{}) ApiOpeningExplorerMasterGameRequest

OpeningExplorerMasterGame OTB master game

**Endpoint: `https://explorer.lichess.ovh/masters/pgn/{gameId}`**

Example: `curl https://explorer.lichess.ovh/masters/pgn/aAbqI4ey`

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gameId
@return ApiOpeningExplorerMasterGameRequest

func (*OpeningExplorerApiService) OpeningExplorerMasterGameExecute

func (a *OpeningExplorerApiService) OpeningExplorerMasterGameExecute(r ApiOpeningExplorerMasterGameRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*OpeningExplorerApiService) OpeningExplorerPlayer

OpeningExplorerPlayer Player games

**Endpoint: <https://explorer.lichess.ovh/player>**

Games of a Lichess player.

Responds with a stream of [newline delimited JSON](#section/Introduction/Streaming-with-ND-JSON). Will start indexing on demand, immediately respond with the current results, and stream more updates until indexing is complete. The stream is throttled and deduplicated. Empty lines may be sent to avoid timeouts.

Will index new games at most once per minute, and revisit previously ongoing games at most once every day.

Example: `curl https://explorer.lichess.ovh/player?player=revoof&color=white&play=d2d4,d7d5&recentGames=1`

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOpeningExplorerPlayerRequest

func (*OpeningExplorerApiService) OpeningExplorerPlayerExecute

func (a *OpeningExplorerApiService) OpeningExplorerPlayerExecute(r ApiOpeningExplorerPlayerRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type OpponentGone

type OpponentGone struct {
	Type              interface{} `json:"type"`
	Gone              interface{} `json:"gone"`
	ClaimWinInSeconds interface{} `json:"claimWinInSeconds,omitempty"`
}

OpponentGone struct for OpponentGone

func NewOpponentGone

func NewOpponentGone(type_ interface{}, gone interface{}) *OpponentGone

NewOpponentGone instantiates a new OpponentGone object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOpponentGoneWithDefaults

func NewOpponentGoneWithDefaults() *OpponentGone

NewOpponentGoneWithDefaults instantiates a new OpponentGone object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OpponentGone) GetClaimWinInSeconds

func (o *OpponentGone) GetClaimWinInSeconds() interface{}

GetClaimWinInSeconds returns the ClaimWinInSeconds field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OpponentGone) GetClaimWinInSecondsOk

func (o *OpponentGone) GetClaimWinInSecondsOk() (*interface{}, bool)

GetClaimWinInSecondsOk returns a tuple with the ClaimWinInSeconds field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OpponentGone) GetGone

func (o *OpponentGone) GetGone() interface{}

GetGone returns the Gone field value If the value is explicit nil, the zero value for interface{} will be returned

func (*OpponentGone) GetGoneOk

func (o *OpponentGone) GetGoneOk() (*interface{}, bool)

GetGoneOk returns a tuple with the Gone field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OpponentGone) GetType

func (o *OpponentGone) GetType() interface{}

GetType returns the Type field value If the value is explicit nil, the zero value for interface{} will be returned

func (*OpponentGone) GetTypeOk

func (o *OpponentGone) GetTypeOk() (*interface{}, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OpponentGone) HasClaimWinInSeconds

func (o *OpponentGone) HasClaimWinInSeconds() bool

HasClaimWinInSeconds returns a boolean if a field has been set.

func (OpponentGone) MarshalJSON

func (o OpponentGone) MarshalJSON() ([]byte, error)

func (*OpponentGone) SetClaimWinInSeconds

func (o *OpponentGone) SetClaimWinInSeconds(v interface{})

SetClaimWinInSeconds gets a reference to the given interface{} and assigns it to the ClaimWinInSeconds field.

func (*OpponentGone) SetGone

func (o *OpponentGone) SetGone(v interface{})

SetGone sets field value

func (*OpponentGone) SetType

func (o *OpponentGone) SetType(v interface{})

SetType sets field value

type Perf

type Perf struct {
	Games  interface{} `json:"games,omitempty"`
	Rating interface{} `json:"rating,omitempty"`
	Rd     interface{} `json:"rd,omitempty"`
	Prog   interface{} `json:"prog,omitempty"`
	Prov   interface{} `json:"prov,omitempty"`
}

Perf struct for Perf

func NewPerf

func NewPerf() *Perf

NewPerf instantiates a new Perf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPerfWithDefaults

func NewPerfWithDefaults() *Perf

NewPerfWithDefaults instantiates a new Perf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Perf) GetGames

func (o *Perf) GetGames() interface{}

GetGames returns the Games field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Perf) GetGamesOk

func (o *Perf) GetGamesOk() (*interface{}, bool)

GetGamesOk returns a tuple with the Games field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Perf) GetProg

func (o *Perf) GetProg() interface{}

GetProg returns the Prog field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Perf) GetProgOk

func (o *Perf) GetProgOk() (*interface{}, bool)

GetProgOk returns a tuple with the Prog field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Perf) GetProv

func (o *Perf) GetProv() interface{}

GetProv returns the Prov field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Perf) GetProvOk

func (o *Perf) GetProvOk() (*interface{}, bool)

GetProvOk returns a tuple with the Prov field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Perf) GetRating

func (o *Perf) GetRating() interface{}

GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Perf) GetRatingOk

func (o *Perf) GetRatingOk() (*interface{}, bool)

GetRatingOk returns a tuple with the Rating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Perf) GetRd

func (o *Perf) GetRd() interface{}

GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Perf) GetRdOk

func (o *Perf) GetRdOk() (*interface{}, bool)

GetRdOk returns a tuple with the Rd field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Perf) HasGames

func (o *Perf) HasGames() bool

HasGames returns a boolean if a field has been set.

func (*Perf) HasProg

func (o *Perf) HasProg() bool

HasProg returns a boolean if a field has been set.

func (*Perf) HasProv

func (o *Perf) HasProv() bool

HasProv returns a boolean if a field has been set.

func (*Perf) HasRating

func (o *Perf) HasRating() bool

HasRating returns a boolean if a field has been set.

func (*Perf) HasRd

func (o *Perf) HasRd() bool

HasRd returns a boolean if a field has been set.

func (Perf) MarshalJSON

func (o Perf) MarshalJSON() ([]byte, error)

func (*Perf) SetGames

func (o *Perf) SetGames(v interface{})

SetGames gets a reference to the given interface{} and assigns it to the Games field.

func (*Perf) SetProg

func (o *Perf) SetProg(v interface{})

SetProg gets a reference to the given interface{} and assigns it to the Prog field.

func (*Perf) SetProv

func (o *Perf) SetProv(v interface{})

SetProv gets a reference to the given interface{} and assigns it to the Prov field.

func (*Perf) SetRating

func (o *Perf) SetRating(v interface{})

SetRating gets a reference to the given interface{} and assigns it to the Rating field.

func (*Perf) SetRd

func (o *Perf) SetRd(v interface{})

SetRd gets a reference to the given interface{} and assigns it to the Rd field.

type PerfType

type PerfType struct {
}

PerfType struct for PerfType

func NewPerfType

func NewPerfType() *PerfType

NewPerfType instantiates a new PerfType object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPerfTypeWithDefaults

func NewPerfTypeWithDefaults() *PerfType

NewPerfTypeWithDefaults instantiates a new PerfType object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (PerfType) MarshalJSON

func (o PerfType) MarshalJSON() ([]byte, error)

type Perfs

type Perfs struct {
	Chess960       *Perf      `json:"chess960,omitempty"`
	Atomic         *Perf      `json:"atomic,omitempty"`
	RacingKings    *Perf      `json:"racingKings,omitempty"`
	UltraBullet    *Perf      `json:"ultraBullet,omitempty"`
	Blitz          *Perf      `json:"blitz,omitempty"`
	KingOfTheHill  *Perf      `json:"kingOfTheHill,omitempty"`
	Bullet         *Perf      `json:"bullet,omitempty"`
	Correspondence *Perf      `json:"correspondence,omitempty"`
	Horde          *Perf      `json:"horde,omitempty"`
	Puzzle         *Perf      `json:"puzzle,omitempty"`
	Classical      *Perf      `json:"classical,omitempty"`
	Rapid          *Perf      `json:"rapid,omitempty"`
	Storm          *StormPerf `json:"storm,omitempty"`
}

Perfs struct for Perfs

func NewPerfs

func NewPerfs() *Perfs

NewPerfs instantiates a new Perfs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPerfsWithDefaults

func NewPerfsWithDefaults() *Perfs

NewPerfsWithDefaults instantiates a new Perfs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Perfs) GetAtomic

func (o *Perfs) GetAtomic() Perf

GetAtomic returns the Atomic field value if set, zero value otherwise.

func (*Perfs) GetAtomicOk

func (o *Perfs) GetAtomicOk() (*Perf, bool)

GetAtomicOk returns a tuple with the Atomic field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetBlitz

func (o *Perfs) GetBlitz() Perf

GetBlitz returns the Blitz field value if set, zero value otherwise.

func (*Perfs) GetBlitzOk

func (o *Perfs) GetBlitzOk() (*Perf, bool)

GetBlitzOk returns a tuple with the Blitz field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetBullet

func (o *Perfs) GetBullet() Perf

GetBullet returns the Bullet field value if set, zero value otherwise.

func (*Perfs) GetBulletOk

func (o *Perfs) GetBulletOk() (*Perf, bool)

GetBulletOk returns a tuple with the Bullet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetChess960

func (o *Perfs) GetChess960() Perf

GetChess960 returns the Chess960 field value if set, zero value otherwise.

func (*Perfs) GetChess960Ok

func (o *Perfs) GetChess960Ok() (*Perf, bool)

GetChess960Ok returns a tuple with the Chess960 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetClassical

func (o *Perfs) GetClassical() Perf

GetClassical returns the Classical field value if set, zero value otherwise.

func (*Perfs) GetClassicalOk

func (o *Perfs) GetClassicalOk() (*Perf, bool)

GetClassicalOk returns a tuple with the Classical field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetCorrespondence

func (o *Perfs) GetCorrespondence() Perf

GetCorrespondence returns the Correspondence field value if set, zero value otherwise.

func (*Perfs) GetCorrespondenceOk

func (o *Perfs) GetCorrespondenceOk() (*Perf, bool)

GetCorrespondenceOk returns a tuple with the Correspondence field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetHorde

func (o *Perfs) GetHorde() Perf

GetHorde returns the Horde field value if set, zero value otherwise.

func (*Perfs) GetHordeOk

func (o *Perfs) GetHordeOk() (*Perf, bool)

GetHordeOk returns a tuple with the Horde field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetKingOfTheHill

func (o *Perfs) GetKingOfTheHill() Perf

GetKingOfTheHill returns the KingOfTheHill field value if set, zero value otherwise.

func (*Perfs) GetKingOfTheHillOk

func (o *Perfs) GetKingOfTheHillOk() (*Perf, bool)

GetKingOfTheHillOk returns a tuple with the KingOfTheHill field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetPuzzle

func (o *Perfs) GetPuzzle() Perf

GetPuzzle returns the Puzzle field value if set, zero value otherwise.

func (*Perfs) GetPuzzleOk

func (o *Perfs) GetPuzzleOk() (*Perf, bool)

GetPuzzleOk returns a tuple with the Puzzle field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetRacingKings

func (o *Perfs) GetRacingKings() Perf

GetRacingKings returns the RacingKings field value if set, zero value otherwise.

func (*Perfs) GetRacingKingsOk

func (o *Perfs) GetRacingKingsOk() (*Perf, bool)

GetRacingKingsOk returns a tuple with the RacingKings field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetRapid

func (o *Perfs) GetRapid() Perf

GetRapid returns the Rapid field value if set, zero value otherwise.

func (*Perfs) GetRapidOk

func (o *Perfs) GetRapidOk() (*Perf, bool)

GetRapidOk returns a tuple with the Rapid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetStorm

func (o *Perfs) GetStorm() StormPerf

GetStorm returns the Storm field value if set, zero value otherwise.

func (*Perfs) GetStormOk

func (o *Perfs) GetStormOk() (*StormPerf, bool)

GetStormOk returns a tuple with the Storm field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) GetUltraBullet

func (o *Perfs) GetUltraBullet() Perf

GetUltraBullet returns the UltraBullet field value if set, zero value otherwise.

func (*Perfs) GetUltraBulletOk

func (o *Perfs) GetUltraBulletOk() (*Perf, bool)

GetUltraBulletOk returns a tuple with the UltraBullet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Perfs) HasAtomic

func (o *Perfs) HasAtomic() bool

HasAtomic returns a boolean if a field has been set.

func (*Perfs) HasBlitz

func (o *Perfs) HasBlitz() bool

HasBlitz returns a boolean if a field has been set.

func (*Perfs) HasBullet

func (o *Perfs) HasBullet() bool

HasBullet returns a boolean if a field has been set.

func (*Perfs) HasChess960

func (o *Perfs) HasChess960() bool

HasChess960 returns a boolean if a field has been set.

func (*Perfs) HasClassical

func (o *Perfs) HasClassical() bool

HasClassical returns a boolean if a field has been set.

func (*Perfs) HasCorrespondence

func (o *Perfs) HasCorrespondence() bool

HasCorrespondence returns a boolean if a field has been set.

func (*Perfs) HasHorde

func (o *Perfs) HasHorde() bool

HasHorde returns a boolean if a field has been set.

func (*Perfs) HasKingOfTheHill

func (o *Perfs) HasKingOfTheHill() bool

HasKingOfTheHill returns a boolean if a field has been set.

func (*Perfs) HasPuzzle

func (o *Perfs) HasPuzzle() bool

HasPuzzle returns a boolean if a field has been set.

func (*Perfs) HasRacingKings

func (o *Perfs) HasRacingKings() bool

HasRacingKings returns a boolean if a field has been set.

func (*Perfs) HasRapid

func (o *Perfs) HasRapid() bool

HasRapid returns a boolean if a field has been set.

func (*Perfs) HasStorm

func (o *Perfs) HasStorm() bool

HasStorm returns a boolean if a field has been set.

func (*Perfs) HasUltraBullet

func (o *Perfs) HasUltraBullet() bool

HasUltraBullet returns a boolean if a field has been set.

func (Perfs) MarshalJSON

func (o Perfs) MarshalJSON() ([]byte, error)

func (*Perfs) SetAtomic

func (o *Perfs) SetAtomic(v Perf)

SetAtomic gets a reference to the given Perf and assigns it to the Atomic field.

func (*Perfs) SetBlitz

func (o *Perfs) SetBlitz(v Perf)

SetBlitz gets a reference to the given Perf and assigns it to the Blitz field.

func (*Perfs) SetBullet

func (o *Perfs) SetBullet(v Perf)

SetBullet gets a reference to the given Perf and assigns it to the Bullet field.

func (*Perfs) SetChess960

func (o *Perfs) SetChess960(v Perf)

SetChess960 gets a reference to the given Perf and assigns it to the Chess960 field.

func (*Perfs) SetClassical

func (o *Perfs) SetClassical(v Perf)

SetClassical gets a reference to the given Perf and assigns it to the Classical field.

func (*Perfs) SetCorrespondence

func (o *Perfs) SetCorrespondence(v Perf)

SetCorrespondence gets a reference to the given Perf and assigns it to the Correspondence field.

func (*Perfs) SetHorde

func (o *Perfs) SetHorde(v Perf)

SetHorde gets a reference to the given Perf and assigns it to the Horde field.

func (*Perfs) SetKingOfTheHill

func (o *Perfs) SetKingOfTheHill(v Perf)

SetKingOfTheHill gets a reference to the given Perf and assigns it to the KingOfTheHill field.

func (*Perfs) SetPuzzle

func (o *Perfs) SetPuzzle(v Perf)

SetPuzzle gets a reference to the given Perf and assigns it to the Puzzle field.

func (*Perfs) SetRacingKings

func (o *Perfs) SetRacingKings(v Perf)

SetRacingKings gets a reference to the given Perf and assigns it to the RacingKings field.

func (*Perfs) SetRapid

func (o *Perfs) SetRapid(v Perf)

SetRapid gets a reference to the given Perf and assigns it to the Rapid field.

func (*Perfs) SetStorm

func (o *Perfs) SetStorm(v StormPerf)

SetStorm gets a reference to the given StormPerf and assigns it to the Storm field.

func (*Perfs) SetUltraBullet

func (o *Perfs) SetUltraBullet(v Perf)

SetUltraBullet gets a reference to the given Perf and assigns it to the UltraBullet field.

type PlayTime

type PlayTime struct {
	Total interface{} `json:"total,omitempty"`
	Tv    interface{} `json:"tv,omitempty"`
}

PlayTime struct for PlayTime

func NewPlayTime

func NewPlayTime() *PlayTime

NewPlayTime instantiates a new PlayTime object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPlayTimeWithDefaults

func NewPlayTimeWithDefaults() *PlayTime

NewPlayTimeWithDefaults instantiates a new PlayTime object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PlayTime) GetTotal

func (o *PlayTime) GetTotal() interface{}

GetTotal returns the Total field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PlayTime) GetTotalOk

func (o *PlayTime) GetTotalOk() (*interface{}, bool)

GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PlayTime) GetTv

func (o *PlayTime) GetTv() interface{}

GetTv returns the Tv field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PlayTime) GetTvOk

func (o *PlayTime) GetTvOk() (*interface{}, bool)

GetTvOk returns a tuple with the Tv field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PlayTime) HasTotal

func (o *PlayTime) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (*PlayTime) HasTv

func (o *PlayTime) HasTv() bool

HasTv returns a boolean if a field has been set.

func (PlayTime) MarshalJSON

func (o PlayTime) MarshalJSON() ([]byte, error)

func (*PlayTime) SetTotal

func (o *PlayTime) SetTotal(v interface{})

SetTotal gets a reference to the given interface{} and assigns it to the Total field.

func (*PlayTime) SetTv

func (o *PlayTime) SetTv(v interface{})

SetTv gets a reference to the given interface{} and assigns it to the Tv field.

type Profile

type Profile struct {
	Country    interface{} `json:"country,omitempty"`
	Location   interface{} `json:"location,omitempty"`
	Bio        interface{} `json:"bio,omitempty"`
	FirstName  interface{} `json:"firstName,omitempty"`
	LastName   interface{} `json:"lastName,omitempty"`
	FideRating interface{} `json:"fideRating,omitempty"`
	UscfRating interface{} `json:"uscfRating,omitempty"`
	EcfRating  interface{} `json:"ecfRating,omitempty"`
	Links      interface{} `json:"links,omitempty"`
}

Profile struct for Profile

func NewProfile

func NewProfile() *Profile

NewProfile instantiates a new Profile object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProfileWithDefaults

func NewProfileWithDefaults() *Profile

NewProfileWithDefaults instantiates a new Profile object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Profile) GetBio

func (o *Profile) GetBio() interface{}

GetBio returns the Bio field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetBioOk

func (o *Profile) GetBioOk() (*interface{}, bool)

GetBioOk returns a tuple with the Bio field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetCountry

func (o *Profile) GetCountry() interface{}

GetCountry returns the Country field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetCountryOk

func (o *Profile) GetCountryOk() (*interface{}, bool)

GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetEcfRating

func (o *Profile) GetEcfRating() interface{}

GetEcfRating returns the EcfRating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetEcfRatingOk

func (o *Profile) GetEcfRatingOk() (*interface{}, bool)

GetEcfRatingOk returns a tuple with the EcfRating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetFideRating

func (o *Profile) GetFideRating() interface{}

GetFideRating returns the FideRating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetFideRatingOk

func (o *Profile) GetFideRatingOk() (*interface{}, bool)

GetFideRatingOk returns a tuple with the FideRating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetFirstName

func (o *Profile) GetFirstName() interface{}

GetFirstName returns the FirstName field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetFirstNameOk

func (o *Profile) GetFirstNameOk() (*interface{}, bool)

GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetLastName

func (o *Profile) GetLastName() interface{}

GetLastName returns the LastName field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetLastNameOk

func (o *Profile) GetLastNameOk() (*interface{}, bool)

GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *Profile) GetLinks() interface{}

GetLinks returns the Links field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetLinksOk

func (o *Profile) GetLinksOk() (*interface{}, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetLocation

func (o *Profile) GetLocation() interface{}

GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetLocationOk

func (o *Profile) GetLocationOk() (*interface{}, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) GetUscfRating

func (o *Profile) GetUscfRating() interface{}

GetUscfRating returns the UscfRating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Profile) GetUscfRatingOk

func (o *Profile) GetUscfRatingOk() (*interface{}, bool)

GetUscfRatingOk returns a tuple with the UscfRating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Profile) HasBio

func (o *Profile) HasBio() bool

HasBio returns a boolean if a field has been set.

func (*Profile) HasCountry

func (o *Profile) HasCountry() bool

HasCountry returns a boolean if a field has been set.

func (*Profile) HasEcfRating

func (o *Profile) HasEcfRating() bool

HasEcfRating returns a boolean if a field has been set.

func (*Profile) HasFideRating

func (o *Profile) HasFideRating() bool

HasFideRating returns a boolean if a field has been set.

func (*Profile) HasFirstName

func (o *Profile) HasFirstName() bool

HasFirstName returns a boolean if a field has been set.

func (*Profile) HasLastName

func (o *Profile) HasLastName() bool

HasLastName returns a boolean if a field has been set.

func (o *Profile) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Profile) HasLocation

func (o *Profile) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*Profile) HasUscfRating

func (o *Profile) HasUscfRating() bool

HasUscfRating returns a boolean if a field has been set.

func (Profile) MarshalJSON

func (o Profile) MarshalJSON() ([]byte, error)

func (*Profile) SetBio

func (o *Profile) SetBio(v interface{})

SetBio gets a reference to the given interface{} and assigns it to the Bio field.

func (*Profile) SetCountry

func (o *Profile) SetCountry(v interface{})

SetCountry gets a reference to the given interface{} and assigns it to the Country field.

func (*Profile) SetEcfRating

func (o *Profile) SetEcfRating(v interface{})

SetEcfRating gets a reference to the given interface{} and assigns it to the EcfRating field.

func (*Profile) SetFideRating

func (o *Profile) SetFideRating(v interface{})

SetFideRating gets a reference to the given interface{} and assigns it to the FideRating field.

func (*Profile) SetFirstName

func (o *Profile) SetFirstName(v interface{})

SetFirstName gets a reference to the given interface{} and assigns it to the FirstName field.

func (*Profile) SetLastName

func (o *Profile) SetLastName(v interface{})

SetLastName gets a reference to the given interface{} and assigns it to the LastName field.

func (o *Profile) SetLinks(v interface{})

SetLinks gets a reference to the given interface{} and assigns it to the Links field.

func (*Profile) SetLocation

func (o *Profile) SetLocation(v interface{})

SetLocation gets a reference to the given interface{} and assigns it to the Location field.

func (*Profile) SetUscfRating

func (o *Profile) SetUscfRating(v interface{})

SetUscfRating gets a reference to the given interface{} and assigns it to the UscfRating field.

type PuzzleRoundJson

type PuzzleRoundJson struct {
	Id           interface{} `json:"id,omitempty"`
	Date         interface{} `json:"date,omitempty"`
	Win          interface{} `json:"win,omitempty"`
	PuzzleRating interface{} `json:"puzzleRating,omitempty"`
}

PuzzleRoundJson struct for PuzzleRoundJson

func NewPuzzleRoundJson

func NewPuzzleRoundJson() *PuzzleRoundJson

NewPuzzleRoundJson instantiates a new PuzzleRoundJson object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPuzzleRoundJsonWithDefaults

func NewPuzzleRoundJsonWithDefaults() *PuzzleRoundJson

NewPuzzleRoundJsonWithDefaults instantiates a new PuzzleRoundJson object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PuzzleRoundJson) GetDate

func (o *PuzzleRoundJson) GetDate() interface{}

GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PuzzleRoundJson) GetDateOk

func (o *PuzzleRoundJson) GetDateOk() (*interface{}, bool)

GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PuzzleRoundJson) GetId

func (o *PuzzleRoundJson) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PuzzleRoundJson) GetIdOk

func (o *PuzzleRoundJson) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PuzzleRoundJson) GetPuzzleRating

func (o *PuzzleRoundJson) GetPuzzleRating() interface{}

GetPuzzleRating returns the PuzzleRating field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PuzzleRoundJson) GetPuzzleRatingOk

func (o *PuzzleRoundJson) GetPuzzleRatingOk() (*interface{}, bool)

GetPuzzleRatingOk returns a tuple with the PuzzleRating field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PuzzleRoundJson) GetWin

func (o *PuzzleRoundJson) GetWin() interface{}

GetWin returns the Win field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PuzzleRoundJson) GetWinOk

func (o *PuzzleRoundJson) GetWinOk() (*interface{}, bool)

GetWinOk returns a tuple with the Win field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PuzzleRoundJson) HasDate

func (o *PuzzleRoundJson) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*PuzzleRoundJson) HasId

func (o *PuzzleRoundJson) HasId() bool

HasId returns a boolean if a field has been set.

func (*PuzzleRoundJson) HasPuzzleRating

func (o *PuzzleRoundJson) HasPuzzleRating() bool

HasPuzzleRating returns a boolean if a field has been set.

func (*PuzzleRoundJson) HasWin

func (o *PuzzleRoundJson) HasWin() bool

HasWin returns a boolean if a field has been set.

func (PuzzleRoundJson) MarshalJSON

func (o PuzzleRoundJson) MarshalJSON() ([]byte, error)

func (*PuzzleRoundJson) SetDate

func (o *PuzzleRoundJson) SetDate(v interface{})

SetDate gets a reference to the given interface{} and assigns it to the Date field.

func (*PuzzleRoundJson) SetId

func (o *PuzzleRoundJson) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*PuzzleRoundJson) SetPuzzleRating

func (o *PuzzleRoundJson) SetPuzzleRating(v interface{})

SetPuzzleRating gets a reference to the given interface{} and assigns it to the PuzzleRating field.

func (*PuzzleRoundJson) SetWin

func (o *PuzzleRoundJson) SetWin(v interface{})

SetWin gets a reference to the given interface{} and assigns it to the Win field.

type PuzzlesApiService

type PuzzlesApiService service

PuzzlesApiService PuzzlesApi service

func (*PuzzlesApiService) ApiPuzzleActivity

ApiPuzzleActivity Get your puzzle activity

Download your puzzle activity in [ndjson](#section/Introduction/Streaming-with-ND-JSON) format.

Puzzle activity is sorted by reverse chronological order (most recent first)

We recommend streaming the response, for it can be very long.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiPuzzleActivityRequest

func (*PuzzlesApiService) ApiPuzzleActivityExecute

func (a *PuzzlesApiService) ApiPuzzleActivityExecute(r ApiApiPuzzleActivityRequest) (*PuzzleRoundJson, *http.Response, error)

Execute executes the request

@return PuzzleRoundJson

func (*PuzzlesApiService) ApiPuzzleDaily

ApiPuzzleDaily Get the daily puzzle

Get the daily Lichess puzzle in JSON format.

Alternatively, you can [post it in your slack workspace](https://lichess.org/daily-puzzle-slack).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiPuzzleDailyRequest

func (*PuzzlesApiService) ApiPuzzleDailyExecute

func (a *PuzzlesApiService) ApiPuzzleDailyExecute(r ApiApiPuzzleDailyRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*PuzzlesApiService) ApiPuzzleDashboard

func (a *PuzzlesApiService) ApiPuzzleDashboard(ctx context.Context, days interface{}) ApiApiPuzzleDashboardRequest

ApiPuzzleDashboard Get your puzzle dashboard

Download your [puzzle dashboard](https://lichess.org/training/dashboard/30/dashboard) as JSON.

Also includes all puzzle themes played, with aggregated results.

Allows re-creating the improvement/strengths(https://lichess.org/training/dashboard/30/improvementAreas) interfaces.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param days How many days to look back when aggregating puzzle results. 30 is sensible.
@return ApiApiPuzzleDashboardRequest

func (*PuzzlesApiService) ApiPuzzleDashboardExecute

func (a *PuzzlesApiService) ApiPuzzleDashboardExecute(r ApiApiPuzzleDashboardRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*PuzzlesApiService) ApiPuzzleId

func (a *PuzzlesApiService) ApiPuzzleId(ctx context.Context, id interface{}) ApiApiPuzzleIdRequest

ApiPuzzleId Get a puzzle by its ID

Get a single Lichess puzzle in JSON format.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The puzzle ID
@return ApiApiPuzzleIdRequest

func (*PuzzlesApiService) ApiPuzzleIdExecute

func (a *PuzzlesApiService) ApiPuzzleIdExecute(r ApiApiPuzzleIdRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*PuzzlesApiService) ApiStormDashboard

func (a *PuzzlesApiService) ApiStormDashboard(ctx context.Context, username interface{}) ApiApiStormDashboardRequest

ApiStormDashboard Get the storm dashboard of a player

Download the [storm dashboard](https://lichess.org/storm/dashboard/mrbasso) of any player as JSON.

Contains the aggregated highscores, and the history of storm runs aggregated by days.

Use `?days=0` if you only care about the highscores.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username Username of the player
@return ApiApiStormDashboardRequest

func (*PuzzlesApiService) ApiStormDashboardExecute

func (a *PuzzlesApiService) ApiStormDashboardExecute(r ApiApiStormDashboardRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*PuzzlesApiService) RacerPost

RacerPost Create and join a puzzle race

Create a new private [puzzle race](https://lichess.org/racer). The Lichess user who creates the race must join the race page, and manually start the race when enough players have joined.

- <https://lichess.org/racer>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRacerPostRequest

func (*PuzzlesApiService) RacerPostExecute

func (a *PuzzlesApiService) RacerPostExecute(r ApiRacerPostRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type RelationsApiService

type RelationsApiService service

RelationsApiService RelationsApi service

func (*RelationsApiService) ApiUserFollowing

ApiUserFollowing Get users followed by the logged in user

Users are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiUserFollowingRequest

func (*RelationsApiService) ApiUserFollowingExecute

func (a *RelationsApiService) ApiUserFollowingExecute(r ApiApiUserFollowingRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*RelationsApiService) FollowUser

func (a *RelationsApiService) FollowUser(ctx context.Context, username interface{}) ApiFollowUserRequest

FollowUser Follow a player

Follow a player, adding them to your list of Lichess friends.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiFollowUserRequest

func (*RelationsApiService) FollowUserExecute

func (a *RelationsApiService) FollowUserExecute(r ApiFollowUserRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*RelationsApiService) UnfollowUser

func (a *RelationsApiService) UnfollowUser(ctx context.Context, username interface{}) ApiUnfollowUserRequest

UnfollowUser Unfollow a player

Unfollow a player, removing them from your list of Lichess friends.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiUnfollowUserRequest

func (*RelationsApiService) UnfollowUserExecute

func (a *RelationsApiService) UnfollowUserExecute(r ApiUnfollowUserRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SimulsApiService

type SimulsApiService service

SimulsApiService SimulsApi service

func (*SimulsApiService) ApiSimul

ApiSimul Get current simuls

Get recently finished, ongoing, and upcoming simuls.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiSimulRequest

func (*SimulsApiService) ApiSimulExecute

func (a *SimulsApiService) ApiSimulExecute(r ApiApiSimulRequest) ([]interface{}, *http.Response, error)

Execute executes the request

@return []interface{}

type Speed

type Speed struct {
}

Speed struct for Speed

func NewSpeed

func NewSpeed() *Speed

NewSpeed instantiates a new Speed object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSpeedWithDefaults

func NewSpeedWithDefaults() *Speed

NewSpeedWithDefaults instantiates a new Speed object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (Speed) MarshalJSON

func (o Speed) MarshalJSON() ([]byte, error)

type StormPerf

type StormPerf struct {
	Runs  interface{} `json:"runs,omitempty"`
	Score interface{} `json:"score,omitempty"`
}

StormPerf struct for StormPerf

func NewStormPerf

func NewStormPerf() *StormPerf

NewStormPerf instantiates a new StormPerf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStormPerfWithDefaults

func NewStormPerfWithDefaults() *StormPerf

NewStormPerfWithDefaults instantiates a new StormPerf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StormPerf) GetRuns

func (o *StormPerf) GetRuns() interface{}

GetRuns returns the Runs field value if set, zero value otherwise (both if not set or set to explicit null).

func (*StormPerf) GetRunsOk

func (o *StormPerf) GetRunsOk() (*interface{}, bool)

GetRunsOk returns a tuple with the Runs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*StormPerf) GetScore

func (o *StormPerf) GetScore() interface{}

GetScore returns the Score field value if set, zero value otherwise (both if not set or set to explicit null).

func (*StormPerf) GetScoreOk

func (o *StormPerf) GetScoreOk() (*interface{}, bool)

GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*StormPerf) HasRuns

func (o *StormPerf) HasRuns() bool

HasRuns returns a boolean if a field has been set.

func (*StormPerf) HasScore

func (o *StormPerf) HasScore() bool

HasScore returns a boolean if a field has been set.

func (StormPerf) MarshalJSON

func (o StormPerf) MarshalJSON() ([]byte, error)

func (*StormPerf) SetRuns

func (o *StormPerf) SetRuns(v interface{})

SetRuns gets a reference to the given interface{} and assigns it to the Runs field.

func (*StormPerf) SetScore

func (o *StormPerf) SetScore(v interface{})

SetScore gets a reference to the given interface{} and assigns it to the Score field.

type StudiesApiService

type StudiesApiService service

StudiesApiService StudiesApi service

func (*StudiesApiService) StudyAllChaptersPgn

func (a *StudiesApiService) StudyAllChaptersPgn(ctx context.Context, studyId interface{}) ApiStudyAllChaptersPgnRequest

StudyAllChaptersPgn Export all chapters

Download all chapters of a study in PGN format.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param studyId The study ID (8 characters).
@return ApiStudyAllChaptersPgnRequest

func (*StudiesApiService) StudyAllChaptersPgnExecute

func (a *StudiesApiService) StudyAllChaptersPgnExecute(r ApiStudyAllChaptersPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*StudiesApiService) StudyChapterPgn

func (a *StudiesApiService) StudyChapterPgn(ctx context.Context, studyId interface{}, chapterId interface{}) ApiStudyChapterPgnRequest

StudyChapterPgn Export one study chapter

Download one study chapter in PGN format.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param studyId The study ID (8 characters).
@param chapterId The chapter ID (8 characters).
@return ApiStudyChapterPgnRequest

func (*StudiesApiService) StudyChapterPgnExecute

func (a *StudiesApiService) StudyChapterPgnExecute(r ApiStudyChapterPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*StudiesApiService) StudyExportAllPgn

func (a *StudiesApiService) StudyExportAllPgn(ctx context.Context, username interface{}) ApiStudyExportAllPgnRequest

StudyExportAllPgn Export all studies of a user

Download all chapters of all studies of a user in PGN format.

If authenticated, then all public, unlisted, and private studies are included.

If not, only public, listed studies are included.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username The user whose studies we export
@return ApiStudyExportAllPgnRequest

func (*StudiesApiService) StudyExportAllPgnExecute

func (a *StudiesApiService) StudyExportAllPgnExecute(r ApiStudyExportAllPgnRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type SwissApiTeamSwissRequest

type SwissApiTeamSwissRequest struct {
	ApiService *SwissTournamentsApiService
	// contains filtered or unexported fields
}

func (SwissApiTeamSwissRequest) Execute

func (r SwissApiTeamSwissRequest) Execute() (interface{}, *http.Response, error)

func (SwissApiTeamSwissRequest) Max

func (r SwissApiTeamSwissRequest) Max(max interface{}) SwissApiTeamSwissRequest

How many tournaments to download.

type SwissTournamentsApiService

type SwissTournamentsApiService service

SwissTournamentsApiService SwissTournamentsApi service

func (*SwissTournamentsApiService) ApiSwissJoin

func (a *SwissTournamentsApiService) ApiSwissJoin(ctx context.Context, id interface{}) ApiApiSwissJoinRequest

ApiSwissJoin Join a Swiss tournament

Join a Swiss tournament, possibly with a password.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiApiSwissJoinRequest

func (*SwissTournamentsApiService) ApiSwissJoinExecute

func (a *SwissTournamentsApiService) ApiSwissJoinExecute(r ApiApiSwissJoinRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*SwissTournamentsApiService) ApiSwissNew

func (a *SwissTournamentsApiService) ApiSwissNew(ctx context.Context, teamId interface{}) ApiApiSwissNewRequest

ApiSwissNew Create a new Swiss tournament

Create a Swiss tournament for your team.

This endpoint mirrors the Swiss tournament form from your team pagee.

You can create up to 12 tournaments per day.

Additional restrictions:

  • clock.limit + clock.increment > 0

  • 15s and 0+1 variant tournaments cannot be rated

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param teamId ID of the team @return ApiApiSwissNewRequest

func (*SwissTournamentsApiService) ApiSwissNewExecute

func (a *SwissTournamentsApiService) ApiSwissNewExecute(r ApiApiSwissNewRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) ApiSwissTerminate

func (a *SwissTournamentsApiService) ApiSwissTerminate(ctx context.Context, id interface{}) ApiApiSwissTerminateRequest

ApiSwissTerminate Terminate a Swiss tournament

Terminate a Swiss tournament

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The Swiss tournament ID.
@return ApiApiSwissTerminateRequest

func (*SwissTournamentsApiService) ApiSwissTerminateExecute

func (a *SwissTournamentsApiService) ApiSwissTerminateExecute(r ApiApiSwissTerminateRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*SwissTournamentsApiService) ApiSwissUpdate

func (a *SwissTournamentsApiService) ApiSwissUpdate(ctx context.Context, id interface{}) ApiApiSwissUpdateRequest

ApiSwissUpdate Update a Swiss tournament.

Update a Swiss tournament.

Be mindful not to make important changes to ongoing tournaments.

Additional restrictions:

  • clock.limit + clock.increment > 0

  • 15s and 0+1 variant tournaments cannot be rated

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The tournament ID. @return ApiApiSwissUpdateRequest

func (*SwissTournamentsApiService) ApiSwissUpdateExecute

func (a *SwissTournamentsApiService) ApiSwissUpdateExecute(r ApiApiSwissUpdateRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) ApiSwissWithdraw

func (a *SwissTournamentsApiService) ApiSwissWithdraw(ctx context.Context, id interface{}) ApiApiSwissWithdrawRequest

ApiSwissWithdraw Pause or leave a swiss tournament

Leave a future Swiss tournament, or take a break on an ongoing Swiss tournament. It's possible to join again later. Points are preserved.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiApiSwissWithdrawRequest

func (*SwissTournamentsApiService) ApiSwissWithdrawExecute

func (a *SwissTournamentsApiService) ApiSwissWithdrawExecute(r ApiApiSwissWithdrawRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*SwissTournamentsApiService) ApiTeamSwiss

func (a *SwissTournamentsApiService) ApiTeamSwiss(ctx context.Context, teamId interface{}) SwissApiTeamSwissRequest

ApiTeamSwiss Get team swiss tournaments

Get all swiss tournaments of a team.

Tournaments are sorted by reverse chronological order of start date (last starting first).

Tournaments are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return SwissApiTeamSwissRequest

func (*SwissTournamentsApiService) ApiTeamSwissExecute

func (a *SwissTournamentsApiService) ApiTeamSwissExecute(r SwissApiTeamSwissRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) GamesBySwiss

func (a *SwissTournamentsApiService) GamesBySwiss(ctx context.Context, id interface{}) ApiGamesBySwissRequest

GamesBySwiss Export games of a Swiss tournament

Download games of a swiss tournament in PGN or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format.

Games are sorted by reverse chronological order (last round first).

The game stream is throttled, depending on who is making the request:

  • Anonymous request: 20 games per second

  • [OAuth2 authenticated](#section/Authentication) request: 30 games per second

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The tournament ID. @return ApiGamesBySwissRequest

func (*SwissTournamentsApiService) GamesBySwissExecute

func (a *SwissTournamentsApiService) GamesBySwissExecute(r ApiGamesBySwissRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) ResultsBySwiss

func (a *SwissTournamentsApiService) ResultsBySwiss(ctx context.Context, id interface{}) ApiResultsBySwissRequest

ResultsBySwiss Get results of a swiss tournament

Players of a swiss tournament, with their score and performance, sorted by rank (best first).

Players are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

If called on an ongoing tournament, results can be inconsistent due to ranking changes while the players are being streamed. Use on finished tournaments for guaranteed consistency.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiResultsBySwissRequest

func (*SwissTournamentsApiService) ResultsBySwissExecute

func (a *SwissTournamentsApiService) ResultsBySwissExecute(r ApiResultsBySwissRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) Swiss

func (a *SwissTournamentsApiService) Swiss(ctx context.Context, id interface{}) ApiSwissRequest

Swiss Get info about a Swiss tournament

Get detailed info about a Swiss tournament.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The Swiss tournament ID.
@return ApiSwissRequest

func (*SwissTournamentsApiService) SwissExecute

func (a *SwissTournamentsApiService) SwissExecute(r ApiSwissRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*SwissTournamentsApiService) SwissTrf

func (a *SwissTournamentsApiService) SwissTrf(ctx context.Context, id interface{}) ApiSwissTrfRequest

SwissTrf Export TRF of a Swiss tournament

Download a tournament in the Tournament Report File format, the FIDE standard.

Documentation: <https://www.fide.com/FIDE/handbook/C04Annex2_TRF16.pdf>

Example: <https://lichess.org/swiss/j8rtJ5GL.trf>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The tournament ID.
@return ApiSwissTrfRequest

func (*SwissTournamentsApiService) SwissTrfExecute

func (a *SwissTournamentsApiService) SwissTrfExecute(r ApiSwissTrfRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type SwissUnauthorisedEdit

type SwissUnauthorisedEdit struct {
	Error interface{} `json:"error,omitempty"`
}

SwissUnauthorisedEdit struct for SwissUnauthorisedEdit

func NewSwissUnauthorisedEdit

func NewSwissUnauthorisedEdit() *SwissUnauthorisedEdit

NewSwissUnauthorisedEdit instantiates a new SwissUnauthorisedEdit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSwissUnauthorisedEditWithDefaults

func NewSwissUnauthorisedEditWithDefaults() *SwissUnauthorisedEdit

NewSwissUnauthorisedEditWithDefaults instantiates a new SwissUnauthorisedEdit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SwissUnauthorisedEdit) GetError

func (o *SwissUnauthorisedEdit) GetError() interface{}

GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SwissUnauthorisedEdit) GetErrorOk

func (o *SwissUnauthorisedEdit) GetErrorOk() (*interface{}, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SwissUnauthorisedEdit) HasError

func (o *SwissUnauthorisedEdit) HasError() bool

HasError returns a boolean if a field has been set.

func (SwissUnauthorisedEdit) MarshalJSON

func (o SwissUnauthorisedEdit) MarshalJSON() ([]byte, error)

func (*SwissUnauthorisedEdit) SetError

func (o *SwissUnauthorisedEdit) SetError(v interface{})

SetError gets a reference to the given interface{} and assigns it to the Error field.

type TVApiService

type TVApiService service

TVApiService TVApi service

func (*TVApiService) TvChannelGames

func (a *TVApiService) TvChannelGames(ctx context.Context, channel interface{}) ApiTvChannelGamesRequest

TvChannelGames Get best ongoing games of a TV channel

Get a list of ongoing games for a given TV channel. Similar to lichess.org/games(https://lichess.org/games).

Available in PGN or [ndjson](#section/Introduction/Streaming-with-ND-JSON) format, depending on the request Accept header.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param channel The name of the channel in camel case.
@return ApiTvChannelGamesRequest

func (*TVApiService) TvChannelGamesExecute

func (a *TVApiService) TvChannelGamesExecute(r ApiTvChannelGamesRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TVApiService) TvChannels

func (a *TVApiService) TvChannels(ctx context.Context) ApiTvChannelsRequest

TvChannels Get current TV games

Get basic info about the best games being played for each speed and variant, but also computer games and bot games.

See lichess.org/tv(https://lichess.org/tv).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTvChannelsRequest

func (*TVApiService) TvChannelsExecute

func (a *TVApiService) TvChannelsExecute(r ApiTvChannelsRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TVApiService) TvFeed

TvFeed Stream current TV game

Stream positions and moves of the current [TV game](https://lichess.org/tv) in [ndjson](#section/Introduction/Streaming-with-ND-JSON). A summary of the game is sent as a first message, and when the featured game changes.

Try it with `curl https://lichess.org/api/tv/feed`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTvFeedRequest

func (*TVApiService) TvFeedExecute

func (a *TVApiService) TvFeedExecute(r ApiTvFeedRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type TablebaseApiService

type TablebaseApiService service

TablebaseApiService TablebaseApi service

func (*TablebaseApiService) AntichessAtomic

AntichessAtomic Tablebase lookup for Antichess

**Endpoint: <https://tablebase.lichess.ovh>**

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAntichessAtomicRequest

func (*TablebaseApiService) AntichessAtomicExecute

func (a *TablebaseApiService) AntichessAtomicExecute(r ApiAntichessAtomicRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TablebaseApiService) TablebaseAtomic

TablebaseAtomic Tablebase lookup for Atomic chess

**Endpoint: <https://tablebase.lichess.ovh>**

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTablebaseAtomicRequest

func (*TablebaseApiService) TablebaseAtomicExecute

func (a *TablebaseApiService) TablebaseAtomicExecute(r ApiTablebaseAtomicRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TablebaseApiService) TablebaseStandard

TablebaseStandard Tablebase lookup

**Endpoint: <https://tablebase.lichess.ovh>**

Example: `curl http://tablebase.lichess.ovh/standard?fen=4k3/6KP/8/8/8/8/7p/8_w_-_-_0_1`

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTablebaseStandardRequest

func (*TablebaseApiService) TablebaseStandardExecute

func (a *TablebaseApiService) TablebaseStandardExecute(r ApiTablebaseStandardRequest) (*TablebaseJson, *http.Response, error)

Execute executes the request

@return TablebaseJson

type TablebaseJson

type TablebaseJson struct {
	// `cursed-win` and `blessed-loss` means the 50-move rule prevents the decisive result.  `maybe-win` and `maybe-loss` means exact result is unknown due to [DTZ rounding](https://syzygy-tables.info/metrics#dtz), i.e., the win or loss could also be prevented by the 50-move rule if the user has deviated from the tablebase recommendation since the last pawn move or capture.
	Category interface{} `json:"category,omitempty"`
	// [DTZ50” with rounding](https://syzygy-tables.info/metrics#dtz) or null if unknown
	Dtz interface{} `json:"dtz,omitempty"`
	// DTZ50” (only if guaranteed to be not rounded) or null if unknown
	PreciseDtz interface{} `json:"precise_dtz,omitempty"`
	// Distance to mate (only for positions with not more than 5 pieces)
	Dtm       interface{} `json:"dtm,omitempty"`
	Checkmate interface{} `json:"checkmate,omitempty"`
	Stalemate interface{} `json:"stalemate,omitempty"`
	// Only in chess variants
	VariantWin interface{} `json:"variant_win,omitempty"`
	// Only in chess variants
	VariantLoss          interface{} `json:"variant_loss,omitempty"`
	InsufficientMaterial interface{} `json:"insufficient_material,omitempty"`
	// Information about legal moves, best first
	Moves interface{} `json:"moves,omitempty"`
}

TablebaseJson struct for TablebaseJson

func NewTablebaseJson

func NewTablebaseJson() *TablebaseJson

NewTablebaseJson instantiates a new TablebaseJson object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTablebaseJsonWithDefaults

func NewTablebaseJsonWithDefaults() *TablebaseJson

NewTablebaseJsonWithDefaults instantiates a new TablebaseJson object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TablebaseJson) GetCategory

func (o *TablebaseJson) GetCategory() interface{}

GetCategory returns the Category field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetCategoryOk

func (o *TablebaseJson) GetCategoryOk() (*interface{}, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetCheckmate

func (o *TablebaseJson) GetCheckmate() interface{}

GetCheckmate returns the Checkmate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetCheckmateOk

func (o *TablebaseJson) GetCheckmateOk() (*interface{}, bool)

GetCheckmateOk returns a tuple with the Checkmate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetDtm

func (o *TablebaseJson) GetDtm() interface{}

GetDtm returns the Dtm field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetDtmOk

func (o *TablebaseJson) GetDtmOk() (*interface{}, bool)

GetDtmOk returns a tuple with the Dtm field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetDtz

func (o *TablebaseJson) GetDtz() interface{}

GetDtz returns the Dtz field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetDtzOk

func (o *TablebaseJson) GetDtzOk() (*interface{}, bool)

GetDtzOk returns a tuple with the Dtz field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetInsufficientMaterial

func (o *TablebaseJson) GetInsufficientMaterial() interface{}

GetInsufficientMaterial returns the InsufficientMaterial field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetInsufficientMaterialOk

func (o *TablebaseJson) GetInsufficientMaterialOk() (*interface{}, bool)

GetInsufficientMaterialOk returns a tuple with the InsufficientMaterial field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetMoves

func (o *TablebaseJson) GetMoves() interface{}

GetMoves returns the Moves field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetMovesOk

func (o *TablebaseJson) GetMovesOk() (*interface{}, bool)

GetMovesOk returns a tuple with the Moves field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetPreciseDtz

func (o *TablebaseJson) GetPreciseDtz() interface{}

GetPreciseDtz returns the PreciseDtz field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetPreciseDtzOk

func (o *TablebaseJson) GetPreciseDtzOk() (*interface{}, bool)

GetPreciseDtzOk returns a tuple with the PreciseDtz field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetStalemate

func (o *TablebaseJson) GetStalemate() interface{}

GetStalemate returns the Stalemate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetStalemateOk

func (o *TablebaseJson) GetStalemateOk() (*interface{}, bool)

GetStalemateOk returns a tuple with the Stalemate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetVariantLoss

func (o *TablebaseJson) GetVariantLoss() interface{}

GetVariantLoss returns the VariantLoss field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetVariantLossOk

func (o *TablebaseJson) GetVariantLossOk() (*interface{}, bool)

GetVariantLossOk returns a tuple with the VariantLoss field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) GetVariantWin

func (o *TablebaseJson) GetVariantWin() interface{}

GetVariantWin returns the VariantWin field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TablebaseJson) GetVariantWinOk

func (o *TablebaseJson) GetVariantWinOk() (*interface{}, bool)

GetVariantWinOk returns a tuple with the VariantWin field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TablebaseJson) HasCategory

func (o *TablebaseJson) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*TablebaseJson) HasCheckmate

func (o *TablebaseJson) HasCheckmate() bool

HasCheckmate returns a boolean if a field has been set.

func (*TablebaseJson) HasDtm

func (o *TablebaseJson) HasDtm() bool

HasDtm returns a boolean if a field has been set.

func (*TablebaseJson) HasDtz

func (o *TablebaseJson) HasDtz() bool

HasDtz returns a boolean if a field has been set.

func (*TablebaseJson) HasInsufficientMaterial

func (o *TablebaseJson) HasInsufficientMaterial() bool

HasInsufficientMaterial returns a boolean if a field has been set.

func (*TablebaseJson) HasMoves

func (o *TablebaseJson) HasMoves() bool

HasMoves returns a boolean if a field has been set.

func (*TablebaseJson) HasPreciseDtz

func (o *TablebaseJson) HasPreciseDtz() bool

HasPreciseDtz returns a boolean if a field has been set.

func (*TablebaseJson) HasStalemate

func (o *TablebaseJson) HasStalemate() bool

HasStalemate returns a boolean if a field has been set.

func (*TablebaseJson) HasVariantLoss

func (o *TablebaseJson) HasVariantLoss() bool

HasVariantLoss returns a boolean if a field has been set.

func (*TablebaseJson) HasVariantWin

func (o *TablebaseJson) HasVariantWin() bool

HasVariantWin returns a boolean if a field has been set.

func (TablebaseJson) MarshalJSON

func (o TablebaseJson) MarshalJSON() ([]byte, error)

func (*TablebaseJson) SetCategory

func (o *TablebaseJson) SetCategory(v interface{})

SetCategory gets a reference to the given interface{} and assigns it to the Category field.

func (*TablebaseJson) SetCheckmate

func (o *TablebaseJson) SetCheckmate(v interface{})

SetCheckmate gets a reference to the given interface{} and assigns it to the Checkmate field.

func (*TablebaseJson) SetDtm

func (o *TablebaseJson) SetDtm(v interface{})

SetDtm gets a reference to the given interface{} and assigns it to the Dtm field.

func (*TablebaseJson) SetDtz

func (o *TablebaseJson) SetDtz(v interface{})

SetDtz gets a reference to the given interface{} and assigns it to the Dtz field.

func (*TablebaseJson) SetInsufficientMaterial

func (o *TablebaseJson) SetInsufficientMaterial(v interface{})

SetInsufficientMaterial gets a reference to the given interface{} and assigns it to the InsufficientMaterial field.

func (*TablebaseJson) SetMoves

func (o *TablebaseJson) SetMoves(v interface{})

SetMoves gets a reference to the given interface{} and assigns it to the Moves field.

func (*TablebaseJson) SetPreciseDtz

func (o *TablebaseJson) SetPreciseDtz(v interface{})

SetPreciseDtz gets a reference to the given interface{} and assigns it to the PreciseDtz field.

func (*TablebaseJson) SetStalemate

func (o *TablebaseJson) SetStalemate(v interface{})

SetStalemate gets a reference to the given interface{} and assigns it to the Stalemate field.

func (*TablebaseJson) SetVariantLoss

func (o *TablebaseJson) SetVariantLoss(v interface{})

SetVariantLoss gets a reference to the given interface{} and assigns it to the VariantLoss field.

func (*TablebaseJson) SetVariantWin

func (o *TablebaseJson) SetVariantWin(v interface{})

SetVariantWin gets a reference to the given interface{} and assigns it to the VariantWin field.

type Team

type Team struct {
	Id          interface{} `json:"id,omitempty"`
	Name        interface{} `json:"name,omitempty"`
	Description interface{} `json:"description,omitempty"`
	Open        interface{} `json:"open,omitempty"`
	Leader      *LightUser  `json:"leader,omitempty"`
	Leaders     interface{} `json:"leaders,omitempty"`
	NbMembers   interface{} `json:"nbMembers,omitempty"`
	Location    interface{} `json:"location,omitempty"`
}

Team struct for Team

func NewTeam

func NewTeam() *Team

NewTeam instantiates a new Team object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamWithDefaults

func NewTeamWithDefaults() *Team

NewTeamWithDefaults instantiates a new Team object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Team) GetDescription

func (o *Team) GetDescription() interface{}

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetDescriptionOk

func (o *Team) GetDescriptionOk() (*interface{}, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetId

func (o *Team) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetIdOk

func (o *Team) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetLeader

func (o *Team) GetLeader() LightUser

GetLeader returns the Leader field value if set, zero value otherwise.

func (*Team) GetLeaderOk

func (o *Team) GetLeaderOk() (*LightUser, bool)

GetLeaderOk returns a tuple with the Leader field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Team) GetLeaders

func (o *Team) GetLeaders() interface{}

GetLeaders returns the Leaders field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetLeadersOk

func (o *Team) GetLeadersOk() (*interface{}, bool)

GetLeadersOk returns a tuple with the Leaders field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetLocation

func (o *Team) GetLocation() interface{}

GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetLocationOk

func (o *Team) GetLocationOk() (*interface{}, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetName

func (o *Team) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetNameOk

func (o *Team) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetNbMembers

func (o *Team) GetNbMembers() interface{}

GetNbMembers returns the NbMembers field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetNbMembersOk

func (o *Team) GetNbMembersOk() (*interface{}, bool)

GetNbMembersOk returns a tuple with the NbMembers field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) GetOpen

func (o *Team) GetOpen() interface{}

GetOpen returns the Open field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Team) GetOpenOk

func (o *Team) GetOpenOk() (*interface{}, bool)

GetOpenOk returns a tuple with the Open field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Team) HasDescription

func (o *Team) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Team) HasId

func (o *Team) HasId() bool

HasId returns a boolean if a field has been set.

func (*Team) HasLeader

func (o *Team) HasLeader() bool

HasLeader returns a boolean if a field has been set.

func (*Team) HasLeaders

func (o *Team) HasLeaders() bool

HasLeaders returns a boolean if a field has been set.

func (*Team) HasLocation

func (o *Team) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*Team) HasName

func (o *Team) HasName() bool

HasName returns a boolean if a field has been set.

func (*Team) HasNbMembers

func (o *Team) HasNbMembers() bool

HasNbMembers returns a boolean if a field has been set.

func (*Team) HasOpen

func (o *Team) HasOpen() bool

HasOpen returns a boolean if a field has been set.

func (Team) MarshalJSON

func (o Team) MarshalJSON() ([]byte, error)

func (*Team) SetDescription

func (o *Team) SetDescription(v interface{})

SetDescription gets a reference to the given interface{} and assigns it to the Description field.

func (*Team) SetId

func (o *Team) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*Team) SetLeader

func (o *Team) SetLeader(v LightUser)

SetLeader gets a reference to the given LightUser and assigns it to the Leader field.

func (*Team) SetLeaders

func (o *Team) SetLeaders(v interface{})

SetLeaders gets a reference to the given interface{} and assigns it to the Leaders field.

func (*Team) SetLocation

func (o *Team) SetLocation(v interface{})

SetLocation gets a reference to the given interface{} and assigns it to the Location field.

func (*Team) SetName

func (o *Team) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*Team) SetNbMembers

func (o *Team) SetNbMembers(v interface{})

SetNbMembers gets a reference to the given interface{} and assigns it to the NbMembers field.

func (*Team) SetOpen

func (o *Team) SetOpen(v interface{})

SetOpen gets a reference to the given interface{} and assigns it to the Open field.

type TeamAll200Response

type TeamAll200Response struct {
	CurrentPage        interface{} `json:"currentPage,omitempty"`
	MaxPerPage         interface{} `json:"maxPerPage,omitempty"`
	CurrentPageResults []Team      `json:"currentPageResults,omitempty"`
	NbResults          interface{} `json:"nbResults,omitempty"`
	PreviousPage       interface{} `json:"previousPage,omitempty"`
	NextPage           interface{} `json:"nextPage,omitempty"`
	NbPages            interface{} `json:"nbPages,omitempty"`
}

TeamAll200Response struct for TeamAll200Response

func NewTeamAll200Response

func NewTeamAll200Response() *TeamAll200Response

NewTeamAll200Response instantiates a new TeamAll200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamAll200ResponseWithDefaults

func NewTeamAll200ResponseWithDefaults() *TeamAll200Response

NewTeamAll200ResponseWithDefaults instantiates a new TeamAll200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TeamAll200Response) GetCurrentPage

func (o *TeamAll200Response) GetCurrentPage() interface{}

GetCurrentPage returns the CurrentPage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetCurrentPageOk

func (o *TeamAll200Response) GetCurrentPageOk() (*interface{}, bool)

GetCurrentPageOk returns a tuple with the CurrentPage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) GetCurrentPageResults

func (o *TeamAll200Response) GetCurrentPageResults() []Team

GetCurrentPageResults returns the CurrentPageResults field value if set, zero value otherwise.

func (*TeamAll200Response) GetCurrentPageResultsOk

func (o *TeamAll200Response) GetCurrentPageResultsOk() ([]Team, bool)

GetCurrentPageResultsOk returns a tuple with the CurrentPageResults field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TeamAll200Response) GetMaxPerPage

func (o *TeamAll200Response) GetMaxPerPage() interface{}

GetMaxPerPage returns the MaxPerPage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetMaxPerPageOk

func (o *TeamAll200Response) GetMaxPerPageOk() (*interface{}, bool)

GetMaxPerPageOk returns a tuple with the MaxPerPage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) GetNbPages

func (o *TeamAll200Response) GetNbPages() interface{}

GetNbPages returns the NbPages field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetNbPagesOk

func (o *TeamAll200Response) GetNbPagesOk() (*interface{}, bool)

GetNbPagesOk returns a tuple with the NbPages field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) GetNbResults

func (o *TeamAll200Response) GetNbResults() interface{}

GetNbResults returns the NbResults field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetNbResultsOk

func (o *TeamAll200Response) GetNbResultsOk() (*interface{}, bool)

GetNbResultsOk returns a tuple with the NbResults field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) GetNextPage

func (o *TeamAll200Response) GetNextPage() interface{}

GetNextPage returns the NextPage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetNextPageOk

func (o *TeamAll200Response) GetNextPageOk() (*interface{}, bool)

GetNextPageOk returns a tuple with the NextPage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) GetPreviousPage

func (o *TeamAll200Response) GetPreviousPage() interface{}

GetPreviousPage returns the PreviousPage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamAll200Response) GetPreviousPageOk

func (o *TeamAll200Response) GetPreviousPageOk() (*interface{}, bool)

GetPreviousPageOk returns a tuple with the PreviousPage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamAll200Response) HasCurrentPage

func (o *TeamAll200Response) HasCurrentPage() bool

HasCurrentPage returns a boolean if a field has been set.

func (*TeamAll200Response) HasCurrentPageResults

func (o *TeamAll200Response) HasCurrentPageResults() bool

HasCurrentPageResults returns a boolean if a field has been set.

func (*TeamAll200Response) HasMaxPerPage

func (o *TeamAll200Response) HasMaxPerPage() bool

HasMaxPerPage returns a boolean if a field has been set.

func (*TeamAll200Response) HasNbPages

func (o *TeamAll200Response) HasNbPages() bool

HasNbPages returns a boolean if a field has been set.

func (*TeamAll200Response) HasNbResults

func (o *TeamAll200Response) HasNbResults() bool

HasNbResults returns a boolean if a field has been set.

func (*TeamAll200Response) HasNextPage

func (o *TeamAll200Response) HasNextPage() bool

HasNextPage returns a boolean if a field has been set.

func (*TeamAll200Response) HasPreviousPage

func (o *TeamAll200Response) HasPreviousPage() bool

HasPreviousPage returns a boolean if a field has been set.

func (TeamAll200Response) MarshalJSON

func (o TeamAll200Response) MarshalJSON() ([]byte, error)

func (*TeamAll200Response) SetCurrentPage

func (o *TeamAll200Response) SetCurrentPage(v interface{})

SetCurrentPage gets a reference to the given interface{} and assigns it to the CurrentPage field.

func (*TeamAll200Response) SetCurrentPageResults

func (o *TeamAll200Response) SetCurrentPageResults(v []Team)

SetCurrentPageResults gets a reference to the given []Team and assigns it to the CurrentPageResults field.

func (*TeamAll200Response) SetMaxPerPage

func (o *TeamAll200Response) SetMaxPerPage(v interface{})

SetMaxPerPage gets a reference to the given interface{} and assigns it to the MaxPerPage field.

func (*TeamAll200Response) SetNbPages

func (o *TeamAll200Response) SetNbPages(v interface{})

SetNbPages gets a reference to the given interface{} and assigns it to the NbPages field.

func (*TeamAll200Response) SetNbResults

func (o *TeamAll200Response) SetNbResults(v interface{})

SetNbResults gets a reference to the given interface{} and assigns it to the NbResults field.

func (*TeamAll200Response) SetNextPage

func (o *TeamAll200Response) SetNextPage(v interface{})

SetNextPage gets a reference to the given interface{} and assigns it to the NextPage field.

func (*TeamAll200Response) SetPreviousPage

func (o *TeamAll200Response) SetPreviousPage(v interface{})

SetPreviousPage gets a reference to the given interface{} and assigns it to the PreviousPage field.

type TeamRequest

type TeamRequest struct {
	TeamId  interface{} `json:"teamId,omitempty"`
	UserId  interface{} `json:"userId,omitempty"`
	Date    interface{} `json:"date,omitempty"`
	Message interface{} `json:"message,omitempty"`
}

TeamRequest struct for TeamRequest

func NewTeamRequest

func NewTeamRequest() *TeamRequest

NewTeamRequest instantiates a new TeamRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamRequestWithDefaults

func NewTeamRequestWithDefaults() *TeamRequest

NewTeamRequestWithDefaults instantiates a new TeamRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TeamRequest) GetDate

func (o *TeamRequest) GetDate() interface{}

GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamRequest) GetDateOk

func (o *TeamRequest) GetDateOk() (*interface{}, bool)

GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamRequest) GetMessage

func (o *TeamRequest) GetMessage() interface{}

GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamRequest) GetMessageOk

func (o *TeamRequest) GetMessageOk() (*interface{}, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamRequest) GetTeamId

func (o *TeamRequest) GetTeamId() interface{}

GetTeamId returns the TeamId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamRequest) GetTeamIdOk

func (o *TeamRequest) GetTeamIdOk() (*interface{}, bool)

GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamRequest) GetUserId

func (o *TeamRequest) GetUserId() interface{}

GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TeamRequest) GetUserIdOk

func (o *TeamRequest) GetUserIdOk() (*interface{}, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TeamRequest) HasDate

func (o *TeamRequest) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*TeamRequest) HasMessage

func (o *TeamRequest) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*TeamRequest) HasTeamId

func (o *TeamRequest) HasTeamId() bool

HasTeamId returns a boolean if a field has been set.

func (*TeamRequest) HasUserId

func (o *TeamRequest) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (TeamRequest) MarshalJSON

func (o TeamRequest) MarshalJSON() ([]byte, error)

func (*TeamRequest) SetDate

func (o *TeamRequest) SetDate(v interface{})

SetDate gets a reference to the given interface{} and assigns it to the Date field.

func (*TeamRequest) SetMessage

func (o *TeamRequest) SetMessage(v interface{})

SetMessage gets a reference to the given interface{} and assigns it to the Message field.

func (*TeamRequest) SetTeamId

func (o *TeamRequest) SetTeamId(v interface{})

SetTeamId gets a reference to the given interface{} and assigns it to the TeamId field.

func (*TeamRequest) SetUserId

func (o *TeamRequest) SetUserId(v interface{})

SetUserId gets a reference to the given interface{} and assigns it to the UserId field.

type TeamRequestWithUser

type TeamRequestWithUser struct {
	Request *TeamRequest `json:"request,omitempty"`
	User    *User        `json:"user,omitempty"`
}

TeamRequestWithUser struct for TeamRequestWithUser

func NewTeamRequestWithUser

func NewTeamRequestWithUser() *TeamRequestWithUser

NewTeamRequestWithUser instantiates a new TeamRequestWithUser object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamRequestWithUserWithDefaults

func NewTeamRequestWithUserWithDefaults() *TeamRequestWithUser

NewTeamRequestWithUserWithDefaults instantiates a new TeamRequestWithUser object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TeamRequestWithUser) GetRequest

func (o *TeamRequestWithUser) GetRequest() TeamRequest

GetRequest returns the Request field value if set, zero value otherwise.

func (*TeamRequestWithUser) GetRequestOk

func (o *TeamRequestWithUser) GetRequestOk() (*TeamRequest, bool)

GetRequestOk returns a tuple with the Request field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TeamRequestWithUser) GetUser

func (o *TeamRequestWithUser) GetUser() User

GetUser returns the User field value if set, zero value otherwise.

func (*TeamRequestWithUser) GetUserOk

func (o *TeamRequestWithUser) GetUserOk() (*User, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TeamRequestWithUser) HasRequest

func (o *TeamRequestWithUser) HasRequest() bool

HasRequest returns a boolean if a field has been set.

func (*TeamRequestWithUser) HasUser

func (o *TeamRequestWithUser) HasUser() bool

HasUser returns a boolean if a field has been set.

func (TeamRequestWithUser) MarshalJSON

func (o TeamRequestWithUser) MarshalJSON() ([]byte, error)

func (*TeamRequestWithUser) SetRequest

func (o *TeamRequestWithUser) SetRequest(v TeamRequest)

SetRequest gets a reference to the given TeamRequest and assigns it to the Request field.

func (*TeamRequestWithUser) SetUser

func (o *TeamRequestWithUser) SetUser(v User)

SetUser gets a reference to the given User and assigns it to the User field.

type TeamsApiService

type TeamsApiService service

TeamsApiService TeamsApi service

func (*TeamsApiService) ApiTeamArena

func (a *TeamsApiService) ApiTeamArena(ctx context.Context, teamId interface{}) TeamsApiTeamArenaRequest

ApiTeamArena Get team Arena tournaments

Get all Arena tournaments relevant to a team.

Tournaments are sorted by reverse chronological order of start date (last starting first).

Tournaments are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId ID of the team
@return TeamsApiTeamArenaRequest

func (*TeamsApiService) ApiTeamArenaExecute

func (a *TeamsApiService) ApiTeamArenaExecute(r TeamsApiTeamArenaRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TeamsApiService) ApiTeamSwiss

func (a *TeamsApiService) ApiTeamSwiss(ctx context.Context, teamId interface{}) TeamsApiTeamSwissRequest

ApiTeamSwiss Get team swiss tournaments

Get all swiss tournaments of a team.

Tournaments are sorted by reverse chronological order of start date (last starting first).

Tournaments are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return TeamsApiTeamSwissRequest

func (*TeamsApiService) ApiTeamSwissExecute

func (a *TeamsApiService) ApiTeamSwissExecute(r TeamsApiTeamSwissRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TeamsApiService) TeamAll

TeamAll Get popular teams

Paginator of the most popular teams.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTeamAllRequest

func (*TeamsApiService) TeamAllExecute

Execute executes the request

@return TeamAll200Response

func (*TeamsApiService) TeamIdJoin

func (a *TeamsApiService) TeamIdJoin(ctx context.Context, teamId interface{}) ApiTeamIdJoinRequest

TeamIdJoin Join a team

Join a team. If the team requires a password but the `password` field is incorrect, then the call fails with `403 Forbidden`. Similarly, if the team join policy requires a confirmation but the `message` parameter is not given, then the call fails with `403 Forbidden`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiTeamIdJoinRequest

func (*TeamsApiService) TeamIdJoinExecute

func (a *TeamsApiService) TeamIdJoinExecute(r ApiTeamIdJoinRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamIdKickUserId

func (a *TeamsApiService) TeamIdKickUserId(ctx context.Context, teamId interface{}, userId interface{}) ApiTeamIdKickUserIdRequest

TeamIdKickUserId Kick a user from your team

Kick a member out of one of your teams. - <https://lichess.org/team>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@param userId
@return ApiTeamIdKickUserIdRequest

func (*TeamsApiService) TeamIdKickUserIdExecute

func (a *TeamsApiService) TeamIdKickUserIdExecute(r ApiTeamIdKickUserIdRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamIdPmAll

func (a *TeamsApiService) TeamIdPmAll(ctx context.Context, teamId interface{}) ApiTeamIdPmAllRequest

TeamIdPmAll Message all members

Send a private message to all members of a team. You must own the team.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiTeamIdPmAllRequest

func (*TeamsApiService) TeamIdPmAllExecute

func (a *TeamsApiService) TeamIdPmAllExecute(r ApiTeamIdPmAllRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamIdQuit

func (a *TeamsApiService) TeamIdQuit(ctx context.Context, teamId interface{}) ApiTeamIdQuitRequest

TeamIdQuit Leave a team

Leave a team. - <https://lichess.org/team>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiTeamIdQuitRequest

func (*TeamsApiService) TeamIdQuitExecute

func (a *TeamsApiService) TeamIdQuitExecute(r ApiTeamIdQuitRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamIdUsers

func (a *TeamsApiService) TeamIdUsers(ctx context.Context, teamId interface{}) TeamsApiTeamIdUsersRequest

TeamIdUsers Get members of a team

Members are sorted by reverse chronological order of joining the team (most recent first). OAuth only required if the list of members is private.

Members are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return TeamsApiTeamIdUsersRequest

func (*TeamsApiService) TeamIdUsersExecute

func (a *TeamsApiService) TeamIdUsersExecute(r TeamsApiTeamIdUsersRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TeamsApiService) TeamOfUsername

func (a *TeamsApiService) TeamOfUsername(ctx context.Context, username interface{}) ApiTeamOfUsernameRequest

TeamOfUsername Teams of a player

All the teams a player is a member of.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiTeamOfUsernameRequest

func (*TeamsApiService) TeamOfUsernameExecute

func (a *TeamsApiService) TeamOfUsernameExecute(r ApiTeamOfUsernameRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TeamsApiService) TeamRequestAccept

func (a *TeamsApiService) TeamRequestAccept(ctx context.Context, teamId interface{}, userId interface{}) ApiTeamRequestAcceptRequest

TeamRequestAccept Accept join request

Accept someone's request to join your team

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@param userId
@return ApiTeamRequestAcceptRequest

func (*TeamsApiService) TeamRequestAcceptExecute

func (a *TeamsApiService) TeamRequestAcceptExecute(r ApiTeamRequestAcceptRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamRequestDecline

func (a *TeamsApiService) TeamRequestDecline(ctx context.Context, teamId interface{}, userId interface{}) ApiTeamRequestDeclineRequest

TeamRequestDecline Decline join request

Decline someone's request to join your team

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@param userId
@return ApiTeamRequestDeclineRequest

func (*TeamsApiService) TeamRequestDeclineExecute

func (a *TeamsApiService) TeamRequestDeclineExecute(r ApiTeamRequestDeclineRequest) (*Ok, *http.Response, error)

Execute executes the request

@return Ok

func (*TeamsApiService) TeamRequests

func (a *TeamsApiService) TeamRequests(ctx context.Context, teamId interface{}) ApiTeamRequestsRequest

TeamRequests Get join requests

Get pending join requests of your team

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiTeamRequestsRequest

func (*TeamsApiService) TeamRequestsExecute

Execute executes the request

@return []TeamRequestWithUser

func (*TeamsApiService) TeamSearch

TeamSearch Search teams

Paginator of team search results for a keyword.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTeamSearchRequest

func (*TeamsApiService) TeamSearchExecute

func (a *TeamsApiService) TeamSearchExecute(r ApiTeamSearchRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*TeamsApiService) TeamShow

func (a *TeamsApiService) TeamShow(ctx context.Context, teamId interface{}) ApiTeamShowRequest

TeamShow Get a single team

Infos about a team

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiTeamShowRequest

func (*TeamsApiService) TeamShowExecute

func (a *TeamsApiService) TeamShowExecute(r ApiTeamShowRequest) (*Team, *http.Response, error)

Execute executes the request

@return Team

type TeamsApiTeamArenaRequest

type TeamsApiTeamArenaRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (TeamsApiTeamArenaRequest) Execute

func (r TeamsApiTeamArenaRequest) Execute() (interface{}, *http.Response, error)

func (TeamsApiTeamArenaRequest) Max

func (r TeamsApiTeamArenaRequest) Max(max interface{}) TeamsApiTeamArenaRequest

How many tournaments to download.

type TeamsApiTeamIdUsersRequest

type TeamsApiTeamIdUsersRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (TeamsApiTeamIdUsersRequest) Execute

func (r TeamsApiTeamIdUsersRequest) Execute() (interface{}, *http.Response, error)

type TeamsApiTeamSwissRequest

type TeamsApiTeamSwissRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (TeamsApiTeamSwissRequest) Execute

func (r TeamsApiTeamSwissRequest) Execute() (interface{}, *http.Response, error)

func (TeamsApiTeamSwissRequest) Max

func (r TeamsApiTeamSwissRequest) Max(max interface{}) TeamsApiTeamSwissRequest

How many tournaments to download.

type Title

type Title string

Title struct for Title

func NewTitle

func NewTitle() *Title

NewTitle instantiates a new Title object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTitleWithDefaults

func NewTitleWithDefaults() *Title

NewTitleWithDefaults instantiates a new Title object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (Title) MarshalJSON

func (o Title) MarshalJSON() ([]byte, error)

type UciVariant

type UciVariant struct {
}

UciVariant struct for UciVariant

func NewUciVariant

func NewUciVariant() *UciVariant

NewUciVariant instantiates a new UciVariant object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUciVariantWithDefaults

func NewUciVariantWithDefaults() *UciVariant

NewUciVariantWithDefaults instantiates a new UciVariant object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (UciVariant) MarshalJSON

func (o UciVariant) MarshalJSON() ([]byte, error)

type User

type User struct {
	Id           interface{} `json:"id,omitempty"`
	Username     interface{} `json:"username,omitempty"`
	Perfs        *Perfs      `json:"perfs,omitempty"`
	CreatedAt    interface{} `json:"createdAt,omitempty"`
	Disabled     interface{} `json:"disabled,omitempty"`
	TosViolation interface{} `json:"tosViolation,omitempty"`
	Profile      *Profile    `json:"profile,omitempty"`
	SeenAt       interface{} `json:"seenAt,omitempty"`
	Patron       interface{} `json:"patron,omitempty"`
	Verified     interface{} `json:"verified,omitempty"`
	PlayTime     *PlayTime   `json:"playTime,omitempty"`
	Title        *Title      `json:"title,omitempty"`
}

User struct for User

func NewUser

func NewUser() *User

NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*User) GetCreatedAt

func (o *User) GetCreatedAt() interface{}

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetCreatedAtOk

func (o *User) GetCreatedAtOk() (*interface{}, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetDisabled

func (o *User) GetDisabled() interface{}

GetDisabled returns the Disabled field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetDisabledOk

func (o *User) GetDisabledOk() (*interface{}, bool)

GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetId

func (o *User) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetIdOk

func (o *User) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetPatron

func (o *User) GetPatron() interface{}

GetPatron returns the Patron field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetPatronOk

func (o *User) GetPatronOk() (*interface{}, bool)

GetPatronOk returns a tuple with the Patron field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetPerfs

func (o *User) GetPerfs() Perfs

GetPerfs returns the Perfs field value if set, zero value otherwise.

func (*User) GetPerfsOk

func (o *User) GetPerfsOk() (*Perfs, bool)

GetPerfsOk returns a tuple with the Perfs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetPlayTime

func (o *User) GetPlayTime() PlayTime

GetPlayTime returns the PlayTime field value if set, zero value otherwise.

func (*User) GetPlayTimeOk

func (o *User) GetPlayTimeOk() (*PlayTime, bool)

GetPlayTimeOk returns a tuple with the PlayTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetProfile

func (o *User) GetProfile() Profile

GetProfile returns the Profile field value if set, zero value otherwise.

func (*User) GetProfileOk

func (o *User) GetProfileOk() (*Profile, bool)

GetProfileOk returns a tuple with the Profile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetSeenAt

func (o *User) GetSeenAt() interface{}

GetSeenAt returns the SeenAt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetSeenAtOk

func (o *User) GetSeenAtOk() (*interface{}, bool)

GetSeenAtOk returns a tuple with the SeenAt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetTitle

func (o *User) GetTitle() Title

GetTitle returns the Title field value if set, zero value otherwise.

func (*User) GetTitleOk

func (o *User) GetTitleOk() (*Title, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetTosViolation

func (o *User) GetTosViolation() interface{}

GetTosViolation returns the TosViolation field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetTosViolationOk

func (o *User) GetTosViolationOk() (*interface{}, bool)

GetTosViolationOk returns a tuple with the TosViolation field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetUsername

func (o *User) GetUsername() interface{}

GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetUsernameOk

func (o *User) GetUsernameOk() (*interface{}, bool)

GetUsernameOk returns a tuple with the Username field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) GetVerified

func (o *User) GetVerified() interface{}

GetVerified returns the Verified field value if set, zero value otherwise (both if not set or set to explicit null).

func (*User) GetVerifiedOk

func (o *User) GetVerifiedOk() (*interface{}, bool)

GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*User) HasCreatedAt

func (o *User) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*User) HasDisabled

func (o *User) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*User) HasId

func (o *User) HasId() bool

HasId returns a boolean if a field has been set.

func (*User) HasPatron

func (o *User) HasPatron() bool

HasPatron returns a boolean if a field has been set.

func (*User) HasPerfs

func (o *User) HasPerfs() bool

HasPerfs returns a boolean if a field has been set.

func (*User) HasPlayTime

func (o *User) HasPlayTime() bool

HasPlayTime returns a boolean if a field has been set.

func (*User) HasProfile

func (o *User) HasProfile() bool

HasProfile returns a boolean if a field has been set.

func (*User) HasSeenAt

func (o *User) HasSeenAt() bool

HasSeenAt returns a boolean if a field has been set.

func (*User) HasTitle

func (o *User) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*User) HasTosViolation

func (o *User) HasTosViolation() bool

HasTosViolation returns a boolean if a field has been set.

func (*User) HasUsername

func (o *User) HasUsername() bool

HasUsername returns a boolean if a field has been set.

func (*User) HasVerified

func (o *User) HasVerified() bool

HasVerified returns a boolean if a field has been set.

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

func (*User) SetCreatedAt

func (o *User) SetCreatedAt(v interface{})

SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field.

func (*User) SetDisabled

func (o *User) SetDisabled(v interface{})

SetDisabled gets a reference to the given interface{} and assigns it to the Disabled field.

func (*User) SetId

func (o *User) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*User) SetPatron

func (o *User) SetPatron(v interface{})

SetPatron gets a reference to the given interface{} and assigns it to the Patron field.

func (*User) SetPerfs

func (o *User) SetPerfs(v Perfs)

SetPerfs gets a reference to the given Perfs and assigns it to the Perfs field.

func (*User) SetPlayTime

func (o *User) SetPlayTime(v PlayTime)

SetPlayTime gets a reference to the given PlayTime and assigns it to the PlayTime field.

func (*User) SetProfile

func (o *User) SetProfile(v Profile)

SetProfile gets a reference to the given Profile and assigns it to the Profile field.

func (*User) SetSeenAt

func (o *User) SetSeenAt(v interface{})

SetSeenAt gets a reference to the given interface{} and assigns it to the SeenAt field.

func (*User) SetTitle

func (o *User) SetTitle(v Title)

SetTitle gets a reference to the given Title and assigns it to the Title field.

func (*User) SetTosViolation

func (o *User) SetTosViolation(v interface{})

SetTosViolation gets a reference to the given interface{} and assigns it to the TosViolation field.

func (*User) SetUsername

func (o *User) SetUsername(v interface{})

SetUsername gets a reference to the given interface{} and assigns it to the Username field.

func (*User) SetVerified

func (o *User) SetVerified(v interface{})

SetVerified gets a reference to the given interface{} and assigns it to the Verified field.

type UserPreferences

type UserPreferences struct {
	Dark          interface{} `json:"dark,omitempty"`
	Transp        interface{} `json:"transp,omitempty"`
	BgImg         interface{} `json:"bgImg,omitempty"`
	Is3d          interface{} `json:"is3d,omitempty"`
	Theme         interface{} `json:"theme,omitempty"`
	PieceSet      interface{} `json:"pieceSet,omitempty"`
	Theme3d       interface{} `json:"theme3d,omitempty"`
	PieceSet3d    interface{} `json:"pieceSet3d,omitempty"`
	SoundSet      interface{} `json:"soundSet,omitempty"`
	Blindfold     interface{} `json:"blindfold,omitempty"`
	AutoQueen     interface{} `json:"autoQueen,omitempty"`
	AutoThreefold interface{} `json:"autoThreefold,omitempty"`
	Takeback      interface{} `json:"takeback,omitempty"`
	Moretime      interface{} `json:"moretime,omitempty"`
	ClockTenths   interface{} `json:"clockTenths,omitempty"`
	ClockBar      interface{} `json:"clockBar,omitempty"`
	ClockSound    interface{} `json:"clockSound,omitempty"`
	Premove       interface{} `json:"premove,omitempty"`
	Animation     interface{} `json:"animation,omitempty"`
	Captured      interface{} `json:"captured,omitempty"`
	Follow        interface{} `json:"follow,omitempty"`
	Highlight     interface{} `json:"highlight,omitempty"`
	Destination   interface{} `json:"destination,omitempty"`
	Coords        interface{} `json:"coords,omitempty"`
	Replay        interface{} `json:"replay,omitempty"`
	Challenge     interface{} `json:"challenge,omitempty"`
	Message       interface{} `json:"message,omitempty"`
	CoordColor    interface{} `json:"coordColor,omitempty"`
	SubmitMove    interface{} `json:"submitMove,omitempty"`
	ConfirmResign interface{} `json:"confirmResign,omitempty"`
	InsightShare  interface{} `json:"insightShare,omitempty"`
	KeyboardMove  interface{} `json:"keyboardMove,omitempty"`
	Zen           interface{} `json:"zen,omitempty"`
	MoveEvent     interface{} `json:"moveEvent,omitempty"`
	RookCastle    interface{} `json:"rookCastle,omitempty"`
}

UserPreferences struct for UserPreferences

func NewUserPreferences

func NewUserPreferences() *UserPreferences

NewUserPreferences instantiates a new UserPreferences object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserPreferencesWithDefaults

func NewUserPreferencesWithDefaults() *UserPreferences

NewUserPreferencesWithDefaults instantiates a new UserPreferences object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserPreferences) GetAnimation

func (o *UserPreferences) GetAnimation() interface{}

GetAnimation returns the Animation field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetAnimationOk

func (o *UserPreferences) GetAnimationOk() (*interface{}, bool)

GetAnimationOk returns a tuple with the Animation field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetAutoQueen

func (o *UserPreferences) GetAutoQueen() interface{}

GetAutoQueen returns the AutoQueen field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetAutoQueenOk

func (o *UserPreferences) GetAutoQueenOk() (*interface{}, bool)

GetAutoQueenOk returns a tuple with the AutoQueen field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetAutoThreefold

func (o *UserPreferences) GetAutoThreefold() interface{}

GetAutoThreefold returns the AutoThreefold field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetAutoThreefoldOk

func (o *UserPreferences) GetAutoThreefoldOk() (*interface{}, bool)

GetAutoThreefoldOk returns a tuple with the AutoThreefold field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetBgImg

func (o *UserPreferences) GetBgImg() interface{}

GetBgImg returns the BgImg field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetBgImgOk

func (o *UserPreferences) GetBgImgOk() (*interface{}, bool)

GetBgImgOk returns a tuple with the BgImg field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetBlindfold

func (o *UserPreferences) GetBlindfold() interface{}

GetBlindfold returns the Blindfold field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetBlindfoldOk

func (o *UserPreferences) GetBlindfoldOk() (*interface{}, bool)

GetBlindfoldOk returns a tuple with the Blindfold field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetCaptured

func (o *UserPreferences) GetCaptured() interface{}

GetCaptured returns the Captured field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetCapturedOk

func (o *UserPreferences) GetCapturedOk() (*interface{}, bool)

GetCapturedOk returns a tuple with the Captured field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetChallenge

func (o *UserPreferences) GetChallenge() interface{}

GetChallenge returns the Challenge field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetChallengeOk

func (o *UserPreferences) GetChallengeOk() (*interface{}, bool)

GetChallengeOk returns a tuple with the Challenge field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetClockBar

func (o *UserPreferences) GetClockBar() interface{}

GetClockBar returns the ClockBar field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetClockBarOk

func (o *UserPreferences) GetClockBarOk() (*interface{}, bool)

GetClockBarOk returns a tuple with the ClockBar field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetClockSound

func (o *UserPreferences) GetClockSound() interface{}

GetClockSound returns the ClockSound field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetClockSoundOk

func (o *UserPreferences) GetClockSoundOk() (*interface{}, bool)

GetClockSoundOk returns a tuple with the ClockSound field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetClockTenths

func (o *UserPreferences) GetClockTenths() interface{}

GetClockTenths returns the ClockTenths field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetClockTenthsOk

func (o *UserPreferences) GetClockTenthsOk() (*interface{}, bool)

GetClockTenthsOk returns a tuple with the ClockTenths field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetConfirmResign

func (o *UserPreferences) GetConfirmResign() interface{}

GetConfirmResign returns the ConfirmResign field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetConfirmResignOk

func (o *UserPreferences) GetConfirmResignOk() (*interface{}, bool)

GetConfirmResignOk returns a tuple with the ConfirmResign field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetCoordColor

func (o *UserPreferences) GetCoordColor() interface{}

GetCoordColor returns the CoordColor field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetCoordColorOk

func (o *UserPreferences) GetCoordColorOk() (*interface{}, bool)

GetCoordColorOk returns a tuple with the CoordColor field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetCoords

func (o *UserPreferences) GetCoords() interface{}

GetCoords returns the Coords field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetCoordsOk

func (o *UserPreferences) GetCoordsOk() (*interface{}, bool)

GetCoordsOk returns a tuple with the Coords field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetDark

func (o *UserPreferences) GetDark() interface{}

GetDark returns the Dark field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetDarkOk

func (o *UserPreferences) GetDarkOk() (*interface{}, bool)

GetDarkOk returns a tuple with the Dark field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetDestination

func (o *UserPreferences) GetDestination() interface{}

GetDestination returns the Destination field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetDestinationOk

func (o *UserPreferences) GetDestinationOk() (*interface{}, bool)

GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetFollow

func (o *UserPreferences) GetFollow() interface{}

GetFollow returns the Follow field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetFollowOk

func (o *UserPreferences) GetFollowOk() (*interface{}, bool)

GetFollowOk returns a tuple with the Follow field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetHighlight

func (o *UserPreferences) GetHighlight() interface{}

GetHighlight returns the Highlight field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetHighlightOk

func (o *UserPreferences) GetHighlightOk() (*interface{}, bool)

GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetInsightShare

func (o *UserPreferences) GetInsightShare() interface{}

GetInsightShare returns the InsightShare field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetInsightShareOk

func (o *UserPreferences) GetInsightShareOk() (*interface{}, bool)

GetInsightShareOk returns a tuple with the InsightShare field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetIs3d

func (o *UserPreferences) GetIs3d() interface{}

GetIs3d returns the Is3d field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetIs3dOk

func (o *UserPreferences) GetIs3dOk() (*interface{}, bool)

GetIs3dOk returns a tuple with the Is3d field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetKeyboardMove

func (o *UserPreferences) GetKeyboardMove() interface{}

GetKeyboardMove returns the KeyboardMove field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetKeyboardMoveOk

func (o *UserPreferences) GetKeyboardMoveOk() (*interface{}, bool)

GetKeyboardMoveOk returns a tuple with the KeyboardMove field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetMessage

func (o *UserPreferences) GetMessage() interface{}

GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetMessageOk

func (o *UserPreferences) GetMessageOk() (*interface{}, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetMoretime

func (o *UserPreferences) GetMoretime() interface{}

GetMoretime returns the Moretime field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetMoretimeOk

func (o *UserPreferences) GetMoretimeOk() (*interface{}, bool)

GetMoretimeOk returns a tuple with the Moretime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetMoveEvent

func (o *UserPreferences) GetMoveEvent() interface{}

GetMoveEvent returns the MoveEvent field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetMoveEventOk

func (o *UserPreferences) GetMoveEventOk() (*interface{}, bool)

GetMoveEventOk returns a tuple with the MoveEvent field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetPieceSet

func (o *UserPreferences) GetPieceSet() interface{}

GetPieceSet returns the PieceSet field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetPieceSet3d

func (o *UserPreferences) GetPieceSet3d() interface{}

GetPieceSet3d returns the PieceSet3d field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetPieceSet3dOk

func (o *UserPreferences) GetPieceSet3dOk() (*interface{}, bool)

GetPieceSet3dOk returns a tuple with the PieceSet3d field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetPieceSetOk

func (o *UserPreferences) GetPieceSetOk() (*interface{}, bool)

GetPieceSetOk returns a tuple with the PieceSet field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetPremove

func (o *UserPreferences) GetPremove() interface{}

GetPremove returns the Premove field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetPremoveOk

func (o *UserPreferences) GetPremoveOk() (*interface{}, bool)

GetPremoveOk returns a tuple with the Premove field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetReplay

func (o *UserPreferences) GetReplay() interface{}

GetReplay returns the Replay field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetReplayOk

func (o *UserPreferences) GetReplayOk() (*interface{}, bool)

GetReplayOk returns a tuple with the Replay field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetRookCastle

func (o *UserPreferences) GetRookCastle() interface{}

GetRookCastle returns the RookCastle field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetRookCastleOk

func (o *UserPreferences) GetRookCastleOk() (*interface{}, bool)

GetRookCastleOk returns a tuple with the RookCastle field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetSoundSet

func (o *UserPreferences) GetSoundSet() interface{}

GetSoundSet returns the SoundSet field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetSoundSetOk

func (o *UserPreferences) GetSoundSetOk() (*interface{}, bool)

GetSoundSetOk returns a tuple with the SoundSet field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetSubmitMove

func (o *UserPreferences) GetSubmitMove() interface{}

GetSubmitMove returns the SubmitMove field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetSubmitMoveOk

func (o *UserPreferences) GetSubmitMoveOk() (*interface{}, bool)

GetSubmitMoveOk returns a tuple with the SubmitMove field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetTakeback

func (o *UserPreferences) GetTakeback() interface{}

GetTakeback returns the Takeback field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetTakebackOk

func (o *UserPreferences) GetTakebackOk() (*interface{}, bool)

GetTakebackOk returns a tuple with the Takeback field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetTheme

func (o *UserPreferences) GetTheme() interface{}

GetTheme returns the Theme field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetTheme3d

func (o *UserPreferences) GetTheme3d() interface{}

GetTheme3d returns the Theme3d field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetTheme3dOk

func (o *UserPreferences) GetTheme3dOk() (*interface{}, bool)

GetTheme3dOk returns a tuple with the Theme3d field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetThemeOk

func (o *UserPreferences) GetThemeOk() (*interface{}, bool)

GetThemeOk returns a tuple with the Theme field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetTransp

func (o *UserPreferences) GetTransp() interface{}

GetTransp returns the Transp field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetTranspOk

func (o *UserPreferences) GetTranspOk() (*interface{}, bool)

GetTranspOk returns a tuple with the Transp field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) GetZen

func (o *UserPreferences) GetZen() interface{}

GetZen returns the Zen field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UserPreferences) GetZenOk

func (o *UserPreferences) GetZenOk() (*interface{}, bool)

GetZenOk returns a tuple with the Zen field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UserPreferences) HasAnimation

func (o *UserPreferences) HasAnimation() bool

HasAnimation returns a boolean if a field has been set.

func (*UserPreferences) HasAutoQueen

func (o *UserPreferences) HasAutoQueen() bool

HasAutoQueen returns a boolean if a field has been set.

func (*UserPreferences) HasAutoThreefold

func (o *UserPreferences) HasAutoThreefold() bool

HasAutoThreefold returns a boolean if a field has been set.

func (*UserPreferences) HasBgImg

func (o *UserPreferences) HasBgImg() bool

HasBgImg returns a boolean if a field has been set.

func (*UserPreferences) HasBlindfold

func (o *UserPreferences) HasBlindfold() bool

HasBlindfold returns a boolean if a field has been set.

func (*UserPreferences) HasCaptured

func (o *UserPreferences) HasCaptured() bool

HasCaptured returns a boolean if a field has been set.

func (*UserPreferences) HasChallenge

func (o *UserPreferences) HasChallenge() bool

HasChallenge returns a boolean if a field has been set.

func (*UserPreferences) HasClockBar

func (o *UserPreferences) HasClockBar() bool

HasClockBar returns a boolean if a field has been set.

func (*UserPreferences) HasClockSound

func (o *UserPreferences) HasClockSound() bool

HasClockSound returns a boolean if a field has been set.

func (*UserPreferences) HasClockTenths

func (o *UserPreferences) HasClockTenths() bool

HasClockTenths returns a boolean if a field has been set.

func (*UserPreferences) HasConfirmResign

func (o *UserPreferences) HasConfirmResign() bool

HasConfirmResign returns a boolean if a field has been set.

func (*UserPreferences) HasCoordColor

func (o *UserPreferences) HasCoordColor() bool

HasCoordColor returns a boolean if a field has been set.

func (*UserPreferences) HasCoords

func (o *UserPreferences) HasCoords() bool

HasCoords returns a boolean if a field has been set.

func (*UserPreferences) HasDark

func (o *UserPreferences) HasDark() bool

HasDark returns a boolean if a field has been set.

func (*UserPreferences) HasDestination

func (o *UserPreferences) HasDestination() bool

HasDestination returns a boolean if a field has been set.

func (*UserPreferences) HasFollow

func (o *UserPreferences) HasFollow() bool

HasFollow returns a boolean if a field has been set.

func (*UserPreferences) HasHighlight

func (o *UserPreferences) HasHighlight() bool

HasHighlight returns a boolean if a field has been set.

func (*UserPreferences) HasInsightShare

func (o *UserPreferences) HasInsightShare() bool

HasInsightShare returns a boolean if a field has been set.

func (*UserPreferences) HasIs3d

func (o *UserPreferences) HasIs3d() bool

HasIs3d returns a boolean if a field has been set.

func (*UserPreferences) HasKeyboardMove

func (o *UserPreferences) HasKeyboardMove() bool

HasKeyboardMove returns a boolean if a field has been set.

func (*UserPreferences) HasMessage

func (o *UserPreferences) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*UserPreferences) HasMoretime

func (o *UserPreferences) HasMoretime() bool

HasMoretime returns a boolean if a field has been set.

func (*UserPreferences) HasMoveEvent

func (o *UserPreferences) HasMoveEvent() bool

HasMoveEvent returns a boolean if a field has been set.

func (*UserPreferences) HasPieceSet

func (o *UserPreferences) HasPieceSet() bool

HasPieceSet returns a boolean if a field has been set.

func (*UserPreferences) HasPieceSet3d

func (o *UserPreferences) HasPieceSet3d() bool

HasPieceSet3d returns a boolean if a field has been set.

func (*UserPreferences) HasPremove

func (o *UserPreferences) HasPremove() bool

HasPremove returns a boolean if a field has been set.

func (*UserPreferences) HasReplay

func (o *UserPreferences) HasReplay() bool

HasReplay returns a boolean if a field has been set.

func (*UserPreferences) HasRookCastle

func (o *UserPreferences) HasRookCastle() bool

HasRookCastle returns a boolean if a field has been set.

func (*UserPreferences) HasSoundSet

func (o *UserPreferences) HasSoundSet() bool

HasSoundSet returns a boolean if a field has been set.

func (*UserPreferences) HasSubmitMove

func (o *UserPreferences) HasSubmitMove() bool

HasSubmitMove returns a boolean if a field has been set.

func (*UserPreferences) HasTakeback

func (o *UserPreferences) HasTakeback() bool

HasTakeback returns a boolean if a field has been set.

func (*UserPreferences) HasTheme

func (o *UserPreferences) HasTheme() bool

HasTheme returns a boolean if a field has been set.

func (*UserPreferences) HasTheme3d

func (o *UserPreferences) HasTheme3d() bool

HasTheme3d returns a boolean if a field has been set.

func (*UserPreferences) HasTransp

func (o *UserPreferences) HasTransp() bool

HasTransp returns a boolean if a field has been set.

func (*UserPreferences) HasZen

func (o *UserPreferences) HasZen() bool

HasZen returns a boolean if a field has been set.

func (UserPreferences) MarshalJSON

func (o UserPreferences) MarshalJSON() ([]byte, error)

func (*UserPreferences) SetAnimation

func (o *UserPreferences) SetAnimation(v interface{})

SetAnimation gets a reference to the given interface{} and assigns it to the Animation field.

func (*UserPreferences) SetAutoQueen

func (o *UserPreferences) SetAutoQueen(v interface{})

SetAutoQueen gets a reference to the given interface{} and assigns it to the AutoQueen field.

func (*UserPreferences) SetAutoThreefold

func (o *UserPreferences) SetAutoThreefold(v interface{})

SetAutoThreefold gets a reference to the given interface{} and assigns it to the AutoThreefold field.

func (*UserPreferences) SetBgImg

func (o *UserPreferences) SetBgImg(v interface{})

SetBgImg gets a reference to the given interface{} and assigns it to the BgImg field.

func (*UserPreferences) SetBlindfold

func (o *UserPreferences) SetBlindfold(v interface{})

SetBlindfold gets a reference to the given interface{} and assigns it to the Blindfold field.

func (*UserPreferences) SetCaptured

func (o *UserPreferences) SetCaptured(v interface{})

SetCaptured gets a reference to the given interface{} and assigns it to the Captured field.

func (*UserPreferences) SetChallenge

func (o *UserPreferences) SetChallenge(v interface{})

SetChallenge gets a reference to the given interface{} and assigns it to the Challenge field.

func (*UserPreferences) SetClockBar

func (o *UserPreferences) SetClockBar(v interface{})

SetClockBar gets a reference to the given interface{} and assigns it to the ClockBar field.

func (*UserPreferences) SetClockSound

func (o *UserPreferences) SetClockSound(v interface{})

SetClockSound gets a reference to the given interface{} and assigns it to the ClockSound field.

func (*UserPreferences) SetClockTenths

func (o *UserPreferences) SetClockTenths(v interface{})

SetClockTenths gets a reference to the given interface{} and assigns it to the ClockTenths field.

func (*UserPreferences) SetConfirmResign

func (o *UserPreferences) SetConfirmResign(v interface{})

SetConfirmResign gets a reference to the given interface{} and assigns it to the ConfirmResign field.

func (*UserPreferences) SetCoordColor

func (o *UserPreferences) SetCoordColor(v interface{})

SetCoordColor gets a reference to the given interface{} and assigns it to the CoordColor field.

func (*UserPreferences) SetCoords

func (o *UserPreferences) SetCoords(v interface{})

SetCoords gets a reference to the given interface{} and assigns it to the Coords field.

func (*UserPreferences) SetDark

func (o *UserPreferences) SetDark(v interface{})

SetDark gets a reference to the given interface{} and assigns it to the Dark field.

func (*UserPreferences) SetDestination

func (o *UserPreferences) SetDestination(v interface{})

SetDestination gets a reference to the given interface{} and assigns it to the Destination field.

func (*UserPreferences) SetFollow

func (o *UserPreferences) SetFollow(v interface{})

SetFollow gets a reference to the given interface{} and assigns it to the Follow field.

func (*UserPreferences) SetHighlight

func (o *UserPreferences) SetHighlight(v interface{})

SetHighlight gets a reference to the given interface{} and assigns it to the Highlight field.

func (*UserPreferences) SetInsightShare

func (o *UserPreferences) SetInsightShare(v interface{})

SetInsightShare gets a reference to the given interface{} and assigns it to the InsightShare field.

func (*UserPreferences) SetIs3d

func (o *UserPreferences) SetIs3d(v interface{})

SetIs3d gets a reference to the given interface{} and assigns it to the Is3d field.

func (*UserPreferences) SetKeyboardMove

func (o *UserPreferences) SetKeyboardMove(v interface{})

SetKeyboardMove gets a reference to the given interface{} and assigns it to the KeyboardMove field.

func (*UserPreferences) SetMessage

func (o *UserPreferences) SetMessage(v interface{})

SetMessage gets a reference to the given interface{} and assigns it to the Message field.

func (*UserPreferences) SetMoretime

func (o *UserPreferences) SetMoretime(v interface{})

SetMoretime gets a reference to the given interface{} and assigns it to the Moretime field.

func (*UserPreferences) SetMoveEvent

func (o *UserPreferences) SetMoveEvent(v interface{})

SetMoveEvent gets a reference to the given interface{} and assigns it to the MoveEvent field.

func (*UserPreferences) SetPieceSet

func (o *UserPreferences) SetPieceSet(v interface{})

SetPieceSet gets a reference to the given interface{} and assigns it to the PieceSet field.

func (*UserPreferences) SetPieceSet3d

func (o *UserPreferences) SetPieceSet3d(v interface{})

SetPieceSet3d gets a reference to the given interface{} and assigns it to the PieceSet3d field.

func (*UserPreferences) SetPremove

func (o *UserPreferences) SetPremove(v interface{})

SetPremove gets a reference to the given interface{} and assigns it to the Premove field.

func (*UserPreferences) SetReplay

func (o *UserPreferences) SetReplay(v interface{})

SetReplay gets a reference to the given interface{} and assigns it to the Replay field.

func (*UserPreferences) SetRookCastle

func (o *UserPreferences) SetRookCastle(v interface{})

SetRookCastle gets a reference to the given interface{} and assigns it to the RookCastle field.

func (*UserPreferences) SetSoundSet

func (o *UserPreferences) SetSoundSet(v interface{})

SetSoundSet gets a reference to the given interface{} and assigns it to the SoundSet field.

func (*UserPreferences) SetSubmitMove

func (o *UserPreferences) SetSubmitMove(v interface{})

SetSubmitMove gets a reference to the given interface{} and assigns it to the SubmitMove field.

func (*UserPreferences) SetTakeback

func (o *UserPreferences) SetTakeback(v interface{})

SetTakeback gets a reference to the given interface{} and assigns it to the Takeback field.

func (*UserPreferences) SetTheme

func (o *UserPreferences) SetTheme(v interface{})

SetTheme gets a reference to the given interface{} and assigns it to the Theme field.

func (*UserPreferences) SetTheme3d

func (o *UserPreferences) SetTheme3d(v interface{})

SetTheme3d gets a reference to the given interface{} and assigns it to the Theme3d field.

func (*UserPreferences) SetTransp

func (o *UserPreferences) SetTransp(v interface{})

SetTransp gets a reference to the given interface{} and assigns it to the Transp field.

func (*UserPreferences) SetZen

func (o *UserPreferences) SetZen(v interface{})

SetZen gets a reference to the given interface{} and assigns it to the Zen field.

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) ApiCrosstable

func (a *UsersApiService) ApiCrosstable(ctx context.Context, user1 interface{}, user2 interface{}) ApiApiCrosstableRequest

ApiCrosstable Get crosstable

Get total number of games, and current score, of any two users.

If the `matchup` flag is provided, and the users are currently playing, also gets the current match game number and scores.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param user1
@param user2
@return ApiApiCrosstableRequest

func (*UsersApiService) ApiCrosstableExecute

func (a *UsersApiService) ApiCrosstableExecute(r ApiApiCrosstableRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) ApiUser

func (a *UsersApiService) ApiUser(ctx context.Context, username interface{}) ApiApiUserRequest

ApiUser Get user public data

Read public data of a user.

If the request is [authenticated with OAuth2](#section/Authentication), then extra fields might be present in the response: `followable`, `following`, `blocking`, `followsYou`.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiApiUserRequest

func (*UsersApiService) ApiUserActivity

func (a *UsersApiService) ApiUserActivity(ctx context.Context, username interface{}) ApiApiUserActivityRequest

ApiUserActivity Get user activity

Read data to generate the activity feed of a user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiApiUserActivityRequest

func (*UsersApiService) ApiUserActivityExecute

func (a *UsersApiService) ApiUserActivityExecute(r ApiApiUserActivityRequest) (*http.Response, error)

Execute executes the request

func (*UsersApiService) ApiUserExecute

func (a *UsersApiService) ApiUserExecute(r ApiApiUserRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) ApiUserPerf

func (a *UsersApiService) ApiUserPerf(ctx context.Context, username interface{}, perf PerfType) ApiApiUserPerfRequest

ApiUserPerf Get performance statistics of a user

Read performance statistics of a user, for a single performance. Similar to the [performance pages on the website](https://lichess.org/@/thibault/perf/bullet).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@param perf
@return ApiApiUserPerfRequest

func (*UsersApiService) ApiUserPerfExecute

func (a *UsersApiService) ApiUserPerfExecute(r ApiApiUserPerfRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) ApiUserRatingHistory

func (a *UsersApiService) ApiUserRatingHistory(ctx context.Context, username interface{}) ApiApiUserRatingHistoryRequest

ApiUserRatingHistory Get rating history of a user

Read rating history of a user, for all perf types. There is at most one entry per day. Format of an entry is `[year, month, day, rating]`. `month` starts at zero (January).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param username
@return ApiApiUserRatingHistoryRequest

func (*UsersApiService) ApiUserRatingHistoryExecute

func (a *UsersApiService) ApiUserRatingHistoryExecute(r ApiApiUserRatingHistoryRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) ApiUsers

ApiUsers Get users by ID

Get up to 300 users by their IDs. Users are returned in the same order as the IDs.

The method is `POST` so a longer list of IDs can be sent in the request body.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiUsersRequest

func (*UsersApiService) ApiUsersExecute

func (a *UsersApiService) ApiUsersExecute(r ApiApiUsersRequest) ([]User, *http.Response, error)

Execute executes the request

@return []User

func (*UsersApiService) ApiUsersStatus

ApiUsersStatus Get real-time users status

Read the `online`, `playing` and `streaming` flags of several users.

This API is very fast and cheap on lichess side. So you can call it quite often (like once every 5 seconds).

Use it to track players and know when they're connected on lichess and playing games.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiUsersStatusRequest

func (*UsersApiService) ApiUsersStatusExecute

Execute executes the request

@return []ApiUsersStatus200ResponseInner

func (*UsersApiService) Player

Player Get all top 10

Get the top 10 players for each speed and variant.

See <https://lichess.org/player>.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPlayerRequest

func (*UsersApiService) PlayerExecute

func (a *UsersApiService) PlayerExecute(r ApiPlayerRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) PlayerTopNbPerfType

func (a *UsersApiService) PlayerTopNbPerfType(ctx context.Context, nb interface{}, perfType interface{}) ApiPlayerTopNbPerfTypeRequest

PlayerTopNbPerfType Get one leaderboard

Get the leaderboard for a single speed or variant (a.k.a. `perfType`). There is no leaderboard for correspondence or puzzles.

See <https://lichess.org/player/top/200/bullet>.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param nb How many users to fetch
@param perfType The speed or variant
@return ApiPlayerTopNbPerfTypeRequest

func (*UsersApiService) PlayerTopNbPerfTypeExecute

func (a *UsersApiService) PlayerTopNbPerfTypeExecute(r ApiPlayerTopNbPerfTypeRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

func (*UsersApiService) StreamerLive

StreamerLive Get live streamers

Get basic info about currently streaming users.

This API is very fast and cheap on lichess side. So you can call it quite often (like once every 5 seconds).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreamerLiveRequest

func (*UsersApiService) StreamerLiveExecute

func (a *UsersApiService) StreamerLiveExecute(r ApiStreamerLiveRequest) ([]LightUser, *http.Response, error)

Execute executes the request

@return []LightUser

func (*UsersApiService) TeamIdUsers

func (a *UsersApiService) TeamIdUsers(ctx context.Context, teamId interface{}) UsersApiTeamIdUsersRequest

TeamIdUsers Get members of a team

Members are sorted by reverse chronological order of joining the team (most recent first). OAuth only required if the list of members is private.

Members are streamed as [ndjson](#section/Introduction/Streaming-with-ND-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return UsersApiTeamIdUsersRequest

func (*UsersApiService) TeamIdUsersExecute

func (a *UsersApiService) TeamIdUsersExecute(r UsersApiTeamIdUsersRequest) (interface{}, *http.Response, error)

Execute executes the request

@return interface{}

type UsersApiTeamIdUsersRequest

type UsersApiTeamIdUsersRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (UsersApiTeamIdUsersRequest) Execute

func (r UsersApiTeamIdUsersRequest) Execute() (interface{}, *http.Response, error)

type Variant

type Variant struct {
	Key   *VariantKey `json:"key,omitempty"`
	Name  interface{} `json:"name,omitempty"`
	Short interface{} `json:"short,omitempty"`
}

Variant struct for Variant

func NewVariant

func NewVariant() *Variant

NewVariant instantiates a new Variant object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVariantWithDefaults

func NewVariantWithDefaults() *Variant

NewVariantWithDefaults instantiates a new Variant object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Variant) GetKey

func (o *Variant) GetKey() VariantKey

GetKey returns the Key field value if set, zero value otherwise.

func (*Variant) GetKeyOk

func (o *Variant) GetKeyOk() (*VariantKey, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Variant) GetName

func (o *Variant) GetName() interface{}

GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Variant) GetNameOk

func (o *Variant) GetNameOk() (*interface{}, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Variant) GetShort

func (o *Variant) GetShort() interface{}

GetShort returns the Short field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Variant) GetShortOk

func (o *Variant) GetShortOk() (*interface{}, bool)

GetShortOk returns a tuple with the Short field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Variant) HasKey

func (o *Variant) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*Variant) HasName

func (o *Variant) HasName() bool

HasName returns a boolean if a field has been set.

func (*Variant) HasShort

func (o *Variant) HasShort() bool

HasShort returns a boolean if a field has been set.

func (Variant) MarshalJSON

func (o Variant) MarshalJSON() ([]byte, error)

func (*Variant) SetKey

func (o *Variant) SetKey(v VariantKey)

SetKey gets a reference to the given VariantKey and assigns it to the Key field.

func (*Variant) SetName

func (o *Variant) SetName(v interface{})

SetName gets a reference to the given interface{} and assigns it to the Name field.

func (*Variant) SetShort

func (o *Variant) SetShort(v interface{})

SetShort gets a reference to the given interface{} and assigns it to the Short field.

type VariantKey

type VariantKey struct {
}

VariantKey struct for VariantKey

func NewVariantKey

func NewVariantKey() *VariantKey

NewVariantKey instantiates a new VariantKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVariantKeyWithDefaults

func NewVariantKeyWithDefaults() *VariantKey

NewVariantKeyWithDefaults instantiates a new VariantKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (VariantKey) MarshalJSON

func (o VariantKey) MarshalJSON() ([]byte, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL