Documentation
¶
Index ¶
- type Answer
- type AnswerResponse
- type AutoGenerated
- type Client
- func (c *Client) AcceptAnswer() error
- func (c *Client) Answer() Answer
- func (c *Client) DeclineAnswer() error
- func (c *Client) History() []QuestionAnswer
- func (c *Client) IsAnswered() bool
- func (c *Client) NewGame(theme Theme, childMode bool) error
- func (c *Client) Progress() string
- func (c *Client) Question() string
- func (c *Client) Respond(response Response) error
- func (c *Client) SetHttpClient(httpClient *http.Client)
- func (c *Client) UndoResponse() error
- type QuestionAnswer
- type Response
- type SessionManager
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerResponse ¶
type AnswerResponse struct { Completion string `json:"completion"` Step string `json:"step"` Progression string `json:"progression"` QuestionID string `json:"question_id"` Question string `json:"question"` GuessId string `json:"id_proposition"` GuessName string `json:"name_proposition"` GuessDescription string `json:"description_proposition"` PhotoUrl string `json:"photo"` }
type AutoGenerated ¶
type AutoGenerated struct { Completion string `json:"completion"` IDProposition string `json:"id_proposition"` IDBaseProposition string `json:"id_base_proposition"` ValideContrainte string `json:"valide_contrainte"` NameProposition string `json:"name_proposition"` DescriptionProposition string `json:"description_proposition"` FlagPhoto string `json:"flag_photo"` Photo string `json:"photo"` Pseudo string `json:"pseudo"` NbElements int `json:"nb_elements"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AcceptAnswer ¶
func (*Client) DeclineAnswer ¶
func (*Client) History ¶
func (c *Client) History() []QuestionAnswer
func (*Client) IsAnswered ¶
func (*Client) SetHttpClient ¶
func (*Client) UndoResponse ¶
type QuestionAnswer ¶
type SessionManager ¶
Click to show internal directories.
Click to hide internal directories.