models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkillTypes = struct {
	Passive SkillType
	Active  SkillType
}{"passive", "active"}

Functions

This section is empty.

Types

type AccountIdentifier

type AccountIdentifier struct {
	OUID string `json:"ouid"` // OUID
}

type BaseStat

type BaseStat struct {
	ID    string  `json:"stat_id"`
	Value float64 `json:"stat_value"`
}

func (*BaseStat) UnmarshalJSON

func (b *BaseStat) UnmarshalJSON(data []byte) error

type BattleZone

type BattleZone struct {
	ID      string       `json:"battle_zone_id"`
	Name    string       `json:"battle_zone_name"`
	Rewards []RewardInfo `json:"reward"`
}

BattleZone represents information about a battlefield

type Descendant

type Descendant struct {
	ID       string            `json:"descendant_id"`        // Descendant identifier
	Name     string            `json:"descendant_name"`      // Descendant name
	ImageURL string            `json:"descendant_image_url"` // Descendant image path
	Stats    []DescendantStats `json:"descendant_stat"`      // Descendant stat information
	Skills   []Skill           `json:"descendant_skill"`     // Descendant skill
}

type DescendantModule

type DescendantModule struct {
	ModuleID string `json:"module_id"`
}

DescendantModule represents module recommendation information for a descendant

type DescendantRec

type DescendantRec struct {
	DescendantID   string `json:"descendant_id"`
	Recommendation []Recommendation
}

type DescendantRecommendation

type DescendantRecommendation struct {
	DescendantID    string             `json:"descendant_id"`
	Recommendations []DescendantModule `json:"recommendation"`
}

DescendantRecommendation represents descendant recommendation information

type DescendantStats

type DescendantStats struct {
	Level   int64      `json:"level"`
	Details []BaseStat `json:"stat_detail"`
}

type Enchantment

type Enchantment struct {
	Level    int64   `json:"enchant_level"`
	StatType string  `json:"stat_type"`
	Value    float64 `json:"value"`
}

Enchantment represents enchantment effect by level information

type Error

type Error struct {
	Name    string `json:"name"`
	Message string `json:"message"`
}

type ErrorMessage

type ErrorMessage struct {
	Details Error `json:"error"`
}

func (*ErrorMessage) Error

func (e *ErrorMessage) Error() string

type ExternalComponent

type ExternalComponent struct {
	ID            string `json:"external_component_id"`             // External component identifier
	Name          string `json:"external_component_name"`           // External component name
	ImageURL      string `json:"image_url"`                         // External component image path
	EquipmentType string `json:"external_component_equipment_type"` // External component equipment part
	Tier          string `json:"external_component_tier"`           // External component tier
	BaseStat      []struct {
		BaseStat
		Level int64 `json:"level"` // External component level
	} `json:"base_stat"` // External component effect by level information
	SetOptionDetail []SetOptionDetail `json:"set_option_detail"` // External component set option information
}

ExternalComponent represents the information of an external component

type ExternalComponentAdditionalStats

type ExternalComponentAdditionalStats struct {
	AdditionalStats      string `json:"additional_stat_name"`  // External component random option name
	AdditionalStatsValue string `json:"additional_stat_value"` // External component random option value
}

type ExternalComponentInfo

type ExternalComponentInfo struct {
	SlotID          string                             `json:"external_component_slot_id"`         // External component slot identifier
	ID              string                             `json:"external_component_id"`              // External component identifier (Refer to /meta/external-component API)
	Level           int64                              `json:"external_component_level"`           // External component level
	AdditionalStats []ExternalComponentAdditionalStats `json:"external_component_additional_stat"` // External component random option information
}

type FireArm

type FireArm struct {
	FireArmType  string  `json:"firearm_atk_type"`
	FireArmValue float64 `json:"firearm_atk_value"`
}

type Module

type Module struct {
	Name       string       `json:"module_name"`
	ID         string       `json:"module_id"`
	ImageURL   string       `json:"image_url"`
	Type       string       `json:"module_type"`
	Tier       string       `json:"module_tier"`
	SocketType string       `json:"module_socket_type"`
	Class      string       `json:"module_class"`
	Stat       []ModuleStat `json:"module_stat"`
}

type ModuleInfo

type ModuleInfo struct {
	SlotID       string `json:"module_slot_id"`       // Module slot identifier
	ID           string `json:"module_id"`            // Module identifier (Refer to /meta/module API)
	EnchantLevel int64  `json:"module_enchant_level"` // Module enchantment level
}

type ModuleRecommendation

type ModuleRecommendation struct {
	Descendant DescendantRecommendation `json:"descendant"`
	Weapon     WeaponRecommendation     `json:"weapon"`
}

ModuleRecommendationResponse represents the response object structure

type ModuleStat

type ModuleStat struct {
	Level          int64  `json:"level"`
	ModuleCapacity int64  `json:"module_capacity"`
	Value          string `json:"value"`
}

type Reactor

type Reactor struct {
	ID                     string       `json:"reactor_id"`
	Name                   string       `json:"reactor_name"`
	ImageURL               string       `json:"image_url"`
	Tier                   string       `json:"reactor_tier"`
	SkillPower             []SkillPower `json:"reactor_skill_power"`
	OptimizedConditionType string       `json:"optimized_condition_type"`
}

Reactor represents information about a reactor

type ReactorAdditionalStats

type ReactorAdditionalStats struct {
	AdditionalStats     string `json:"additional_stat_name"`  // Reactor random option name
	AdditionalStatValue string `json:"additional_stat_value"` // Reactor random option value
}

type Recommendation

type Recommendation struct {
	ModuleID string `json:"module_id"`
}

type Reward

type Reward struct {
	MapID       string       `json:"map_id"`
	MapName     string       `json:"map_name"`
	BattleZones []BattleZone `json:"battle_zone"`
}

Reward represents information about a reward

type RewardInfo

type RewardInfo struct {
	Rotation           int64  `json:"rotation"`
	Type               string `json:"reward_type"` // Reward Type
	ReactorElementType string `json:"reactor_element_type"`
	WeaponRoundsType   string `json:"weapon_rounds_type"`
	ArcheType          string `json:"arche_type"`
}

RewardInfo represents reward rotation information

type SetOptionDetail

type SetOptionDetail struct {
	Option       string `json:"set_option"`        // External component set option type
	Count        int64  `json:"set_count"`         // Number of external component sets
	OptionEffect string `json:"set_option_effect"` // External component set option set effect
}

SetOptionDetail represents the set option information for an external component

type Skill

type Skill struct {
	Type             SkillType `json:"skill_type"` // active / passive
	Name             string    `json:"skill_name"`
	Element          string    `json:"element_type"`
	ArcheType        string    `json:"arche_type"`
	SkillImageUrl    string    `json:"skill_image_url"`
	SkillDescription string    `json:"skill_description"`
}

type SkillPower

type SkillPower struct {
	Level            int64             `json:"level"`
	AtkPower         float64           `json:"skill_atk_power"`
	SubSkillAtkPower float64           `json:"sub_skill_atk_power"`
	PowerCoeff       []SkillPowerBoost `json:"skill_power_coefficient"` // Skill Power Coefficient
	EnchantEffect    []Enchantment     `json:"enchant_effect"`
}

SkillPower represents skill power by level information

type SkillPowerBoost

type SkillPowerBoost struct {
	CoefficientStatID    string  `json:"coefficient_stat_id"`
	CoefficientStatValue float64 `json:"coefficient_stat_value"`
}

SkillPowerBoost represents skill power boost ratio information

type SkillType

type SkillType string

type StatMeta

type StatMeta struct {
	ID   string `json:"stat_id"`
	Name string `json:"stat_name"`
}

type TitleResponse

type TitleResponse struct {
	ID   string `json:"title_id"`
	Name string `json:"title_name"`
}

type UserBasic

type UserBasic struct {
	AccountIdentifier
	UserName         string `json:"user_name"`          // Nickname
	PlatformType     string `json:"platform_type"`      // Platform type
	MasteryRankLevel int64  `json:"mastery_rank_level"` // Mastery Rank
	MasteryRankExp   int64  `json:"mastery_rank_exp"`   // Mastery EXP
	TitlePrefix      string `json:"title_prefix_id"`    // Prefix title identifier (Refer to /meta/title API)
	TitleSuffix      string `json:"title_suffix_id"`    // Suffix title identifier (Refer to /meta/title API)
	OSLanguage       string `json:"os_language"`        // OS language settings
	GameLanguage     string `json:"game_language"`      // Game language settings
}

type UserDescendant

type UserDescendant struct {
	AccountIdentifier
	UserName          string       `json:"user_name"`           // Nickname
	ID                string       `json:"descendant_id"`       // Equipped descendant identifier
	SlotID            string       `json:"descendant_slot_id"`  // Descendant slot identifier
	Level             int64        `json:"descendant_level"`    // Equipped descendant level
	ModuleMaxCapacity int64        `json:"module_max_capacity"` // Max. equippable module capacity
	ModuleCapacity    int64        `json:"module_capacity"`     // Equipped capacity
	Modules           []ModuleInfo `json:"module"`              // Module information
}

type UserExternalComponent

type UserExternalComponent struct {
	AccountIdentifier
	UserName           string                  `json:"user_name"`          // Nickname
	ExternalComponents []ExternalComponentInfo `json:"external_component"` // External component information
}

type UserReactor

type UserReactor struct {
	AccountIdentifier
	UserName        string                   `json:"user_name"`                // Nickname
	ID              string                   `json:"reactor_id"`               // Reactor identifier (Refer to /meta/reactor API)
	SlotID          string                   `json:"reactor_slot_id"`          // Reactor slot identifier
	Level           int64                    `json:"reactor_level"`            // Reactor level
	AdditionalStats []ReactorAdditionalStats `json:"reactor_additional_stats"` // Reactor information
	EnchantLevel    int64                    `json:"reactor_enchant_level"`    // Reactor enchantment level
}

type UserWeapon

type UserWeapon struct {
	AccountIdentifier
	UserName string       `json:"user_name"` // Nickname
	Weapons  []WeaponInfo `json:"weapon"`    // Weapon information
}

type VoidBattleResponse

type VoidBattleResponse struct {
	ID   string `json:"void_battle_id"`
	Name string `json:"void_battle_name"`
}

type Weapon

type Weapon struct {
	Name       string     `json:"weapon_name"`
	ID         string     `json:"weapon_id"`
	ImageURL   string     `json:"image_url"`
	Type       string     `json:"weapon_type"`
	Tier       string     `json:"weapon_tier"`
	Rounds     string     `json:"weapon_rounds_type"`
	BaseStat   []BaseStat `json:"base_stat"`
	FireArmATK []struct {
		Level   int64     `json:"level"`
		FireArm []FireArm `json:"firearm"`
	} `json:"firearm_atk"`
	PerkAbilityName    string `json:"weapon_perk_ability_name"`
	AbilityDescription string `json:"weapon_perk_ability_description"`
	AbilityImageURL    string `json:"weapon_perk_ability_image_url"`
}

type WeaponAdditionalStats

type WeaponAdditionalStats struct {
	AdditionalStats     string `json:"additional_stat_name"`  // Weapon random option name
	AdditionalStatValue string `json:"additional_stat_value"` // Weapon random option value
}

type WeaponInfo

type WeaponInfo struct {
	ModuleMaxCapacity           int64                   `json:"module_max_capacity"`        // Max. equippable module capacity
	ModuleCapacity              int64                   `json:"module_capacity"`            // Equipped capacity
	SlotID                      string                  `json:"weapon_slot_id"`             // Weapon slot identifier
	ID                          string                  `json:"weapon_id"`                  // Weapon identifier (Refer to /meta/weapon API)
	Level                       int64                   `json:"weapon_level"`               // Weapon level
	PerkAbilityEnchantmentLevel int64                   `json:"perk_ability_enchant_level"` // Weapon Unique Ability enchantment level
	AdditionalStats             []WeaponAdditionalStats `json:"weapon_additional_stat"`     // Weapon random option information
	Module                      []ModuleInfo            `json:"module"`                     // Module information
}

type WeaponModule

type WeaponModule struct {
	ModuleID string `json:"module_id"`
}

WeaponModule represents module recommendation information for a weapon

type WeaponRec

type WeaponRec struct {
	WeaponID       string `json:"weapon_id"`
	Recommendation []Recommendation
}

type WeaponRecommendation

type WeaponRecommendation struct {
	WeaponID        string         `json:"weapon_id"`
	Recommendations []WeaponModule `json:"recommendation"`
}

WeaponRecommendation represents weapon recommendation information

Jump to

Keyboard shortcuts

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