fnapicom

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

func New

func New() *Client

func (Client) CosmeticSearch

func (c Client) CosmeticSearch(params url.Values) (Cosmetic, error)

type Cosmetic

type Cosmetic struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        struct {
		Value        string `json:"value"`
		DisplayValue string `json:"displayValue"`
		BackendValue string `json:"backendValue"`
	} `json:"type"`
	Rarity struct {
		Value        string `json:"value"`
		DisplayValue string `json:"displayValue"`
		BackendValue string `json:"backendValue"`
	} `json:"rarity"`
	Series       interface{} `json:"series"`
	Set          interface{} `json:"set"`
	Introduction struct {
		Chapter      string `json:"chapter"`
		Season       string `json:"season"`
		Text         string `json:"text"`
		BackendValue int    `json:"backendValue"`
	} `json:"introduction"`
	Images struct {
		SmallIcon string      `json:"smallIcon"`
		Icon      string      `json:"icon"`
		Featured  interface{} `json:"featured"`
		Other     interface{} `json:"other"`
	} `json:"images"`
	Variants []struct {
		Channel string `json:"channel"`
		Type    string `json:"type"`
		Options []struct {
			Tag                string `json:"tag"`
			Name               string `json:"name"`
			Image              string `json:"image"`
			UnlockRequirements string `json:"unlockRequirements,omitempty"`
		} `json:"options"`
	} `json:"variants"`
	SearchTags       interface{} `json:"searchTags"`
	GameplayTags     []string    `json:"gameplayTags"`
	MetaTags         interface{} `json:"metaTags"`
	ShowcaseVideo    interface{} `json:"showcaseVideo"`
	DynamicPakID     interface{} `json:"dynamicPakId"`
	DisplayAssetPath interface{} `json:"displayAssetPath"`
	DefinitionPath   interface{} `json:"definitionPath"`
	Path             string      `json:"path"`
	Added            time.Time   `json:"added"`
	ShopHistory      interface{} `json:"shopHistory"`
}

type CosmeticSearchRes

type CosmeticSearchRes struct {
	Status int      `json:"status"`
	Data   Cosmetic `json:"data"`
}

Jump to

Keyboard shortcuts

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