api

package
v0.0.0-...-9588ab2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 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 ExtendedItemInfo

type ExtendedItemInfo struct {
	Category      string   `json:"category"`
	SubCategories []string `json:"subcategories"`
}

type FrameType

type FrameType int
const (
	NormalItemFrameType FrameType = iota
	MagicItemFrameType
	RareItemFrameType
	UniqueItemFrameType
	GemFrameType
	CurrencyFrameType
	DivinationCardFrameType
	QuestItemFrameType
	ProphecyFrameType
	RelicFrameType
)

type Item

type Item struct {
	// Names for some items may include markup. For example: <<set:MS>><<set:M>><<set:S>>Roth's Reach
	Name string `json:"name"`
	Type string `json:"typeLine"`

	Properties   []ItemProperty `json:"properties"`
	Requirements []ItemProperty `json:"requirements"`

	Extended ExtendedItemInfo `json:"extended"`

	Sockets []Socket `json:"sockets"`

	ExplicitMods []string `json:"explicitMods"`
	ImplicitMods []string `json:"implicitMods"`
	UtilityMods  []string `json:"utilityMods"`
	EnchantMods  []string `json:"enchantMods"`
	CraftedMods  []string `json:"craftedMods"`
	CosmeticMods []string `json:"cosmeticMods"`

	Note string `json:"note"`

	IsVerified             bool      `json:"verified"`
	Width                  int       `json:"w"`
	Height                 int       `json:"h"`
	ItemLevel              int       `json:"ilvl"`
	Icon                   string    `json:"icon"`
	League                 string    `json:"league"`
	Id                     string    `json:"id"`
	IsIdentified           bool      `json:"identified"`
	IsCorrupted            bool      `json:"corrupted"`
	IsElder                bool      `json:"elder"`
	IsShaper               bool      `json:"shaper"`
	IsSynthesized          bool      `json:"synthesised"`
	IsLockedToCharacter    bool      `json:"lockedToCharacter"`
	IsSupport              bool      `json:"support"`
	DescriptionText        string    `json:"descrText"`
	SecondDescriptionText  string    `json:"secDescrText"`
	FlavorText             []string  `json:"flavourText"`
	ArtFilename            string    `json:"artFilename"`
	FrameType              FrameType `json:"frameType"`
	StackSize              int       `json:"stackSize"`
	MaxStackSize           int       `json:"maxStackSize"`
	X                      int       `json:"x"`
	Y                      int       `json:"y"`
	InventoryId            string    `json:"inventoryId"`
	SocketedItems          []Item    `json:"socketedItems"`
	IsRelic                bool      `json:"isRelic"`
	TalismanTier           int       `json:"talismanTier"`
	ProphecyText           string    `json:"prophecyText"`
	ProphecyDifficultyText string    `json:"prophecyDiffText"`
}

type ItemProperty

type ItemProperty struct {
	Name        string        `json:"name"`
	Values      []interface{} `json:"values"`
	DisplayMode int           `json:"displayMode"`
}

type PublicStashTabSubscription

type PublicStashTabSubscription struct {
	Channel chan PublicStashTabSubscriptionResult
	// contains filtered or unexported fields
}

func OpenPublicStashTabSubscription

func OpenPublicStashTabSubscription(firstChangeId string) *PublicStashTabSubscription

Opens a subscription that begins with the given change id. To subscribe from the beginning, pass an empty string.

func OpenPublicStashTabSubscriptionForHost

func OpenPublicStashTabSubscriptionForHost(host, firstChangeId string) *PublicStashTabSubscription

Opens a subscription for an alternative host. Can be used for beta or foreign servers.

func (*PublicStashTabSubscription) Close

func (s *PublicStashTabSubscription) Close()

type PublicStashTabSubscriptionResult

type PublicStashTabSubscriptionResult struct {
	ChangeId        string
	PublicStashTabs *PublicStashTabs
	Error           error
}

type PublicStashTabs

type PublicStashTabs struct {
	NextChangeId string  `json:"next_change_id"`
	Stashes      []Stash `json:"stashes"`
}

type Socket

type Socket struct {
	GroupId   int    `json:"group"`
	Attribute string `json:"attr"`
}

type Stash

type Stash struct {
	AccountName       string `json:"accountName"`
	LastCharacterName string `json:"lastCharacterName"`
	Id                string `json:"id"`
	Label             string `json:"stash"`
	Type              string `json:"stashType"`
	Items             []Item `json:"items"`
	IsPublic          bool   `json:"public"`
}

Jump to

Keyboard shortcuts

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