model

package
v0.0.0-...-04f13a7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attack

type Attack struct {
	Name   string `json:"name"`
	Type   string `json:"type"`
	Damage int    `json:"damage"`
}

type Pokemon

type Pokemon struct {
	ID                    string                       `json:"id"`
	Number                int                          `json:"number"`
	Name                  string                       `json:"name"`
	Weight                *PokemonDimension            `json:"weight"`
	Height                *PokemonDimension            `json:"height"`
	Classification        string                       `json:"classification"`
	Types                 []string                     `json:"types"`
	Resistant             []string                     `json:"resistant"`
	Attacks               *PokemonAttack               `json:"attacks"`
	Weaknesses            []string                     `json:"weaknesses"`
	FleeRate              float64                      `json:"fleeRate"`
	MaxCp                 int                          `json:"maxCP"`
	Evolutions            []*Pokemon                   `json:"evolutions"`
	EvolutionRequirements *PokemonEvolutionRequirement `json:"evolutionRequirements"`
	MaxHp                 int                          `json:"maxHP"`
	Image                 string                       `json:"image"`
	Sound                 string                       `json:"sound"`
	IsFavorite            bool                         `json:"isFavorite"`
	CommonCaptureArea     *string                      `json:"CommonCaptureArea"`
	Asia                  *string                      `json:"Asia"`
	AustraliaNewZealand   *string                      `json:"AustraliaNewZealand"`
	WesternEurope         *string                      `json:"WesternEurope"`
	NorthAmerica          *string                      `json:"NorthAmerica"`
	PokMonClass           *string                      `json:"PokMonClass"`
	Legendary             *string                      `json:"LEGENDARY"`
	Mythic                *string                      `json:"MYTHIC"`
}

type PokemonAttack

type PokemonAttack struct {
	Fast    []*Attack `json:"fast"`
	Special []*Attack `json:"special"`
}

type PokemonConnection

type PokemonConnection struct {
	Limit  int        `json:"limit"`
	Offset string     `json:"offset"`
	Count  int        `json:"count"`
	Edges  []*Pokemon `json:"edges"`
}

type PokemonDimension

type PokemonDimension struct {
	Minimum string `json:"minimum"`
	Maximum string `json:"maximum"`
}

type PokemonEvolutionRequirement

type PokemonEvolutionRequirement struct {
	Amount int    `json:"amount"`
	Name   string `json:"name"`
}

type PokemonFilterInput

type PokemonFilterInput struct {
	SearchType *string `json:"searchType"`
	SearchName *string `json:"searchName"`
	IsFavorite *bool   `json:"isFavorite"`
}

type PokemonsQueryInput

type PokemonsQueryInput struct {
	Limit  *int                `json:"limit"`
	Offset *string             `json:"offset"`
	Filter *PokemonFilterInput `json:"filter"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL