This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
eve-goclient/client/skills/skills_client.go

114 lines
3.2 KiB
Go

package skills
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
)
// New creates a new skills API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
return &Client{transport: transport, formats: formats}
}
/*
Client for skills API
*/
type Client struct {
transport runtime.ClientTransport
formats strfmt.Registry
}
/*
GetCharactersCharacterIDSkillqueue gets character s skill queue
List the configured skill queue for the given character
---
Alternate route: `/v2/characters/{character_id}/skillqueue/`
Alternate route: `/legacy/characters/{character_id}/skillqueue/`
Alternate route: `/dev/characters/{character_id}/skillqueue/`
---
This route is cached for up to 120 seconds
*/
func (a *Client) GetCharactersCharacterIDSkillqueue(params *GetCharactersCharacterIDSkillqueueParams, authInfo runtime.ClientAuthInfoWriter) (*GetCharactersCharacterIDSkillqueueOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCharactersCharacterIDSkillqueueParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "get_characters_character_id_skillqueue",
Method: "GET",
PathPattern: "/characters/{character_id}/skillqueue/",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{""},
Schemes: []string{"https"},
Params: params,
Reader: &GetCharactersCharacterIDSkillqueueReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
return result.(*GetCharactersCharacterIDSkillqueueOK), nil
}
/*
GetCharactersCharacterIDSkills gets character skills
List all trained skills for the given character
---
Alternate route: `/v3/characters/{character_id}/skills/`
Alternate route: `/dev/characters/{character_id}/skills/`
---
This route is cached for up to 120 seconds
*/
func (a *Client) GetCharactersCharacterIDSkills(params *GetCharactersCharacterIDSkillsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCharactersCharacterIDSkillsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCharactersCharacterIDSkillsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "get_characters_character_id_skills",
Method: "GET",
PathPattern: "/characters/{character_id}/skills/",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{""},
Schemes: []string{"https"},
Params: params,
Reader: &GetCharactersCharacterIDSkillsReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
return result.(*GetCharactersCharacterIDSkillsOK), nil
}
// SetTransport changes the transport on the client
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
}