d2data

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	InstanceId string
	DbActivity *database.DbActivityData
}

type Data

type Data struct {
	DbHandlers *database.DbHandlers
	Api        *d2api.Api
}

func (*Data) GetActivities

func (data *Data) GetActivities(membershipId string, membershipType int, characterId string) ([]*Activity, error)

func (*Data) GetPostGameCarnageReportsByInstanceId

func (data *Data) GetPostGameCarnageReportsByInstanceId(instanceId string) ([]*PostGameCarnageReport, error)

func (*Data) GetProfilesByUsername

func (data *Data) GetProfilesByUsername(username string) ([]*ProfileContainer, error)

func (*Data) Init

func (data *Data) Init(dbHandlers *database.DbHandlers, api *d2api.Api)

type PostGameCarnageReport

type PostGameCarnageReport struct {
	Period                  string                       `json:"period"`
	Entries                 []PostGameCarnageReportEntry `json:"entries"`
	DbPostGameCarnageReport *database.DbPostGameCarnageReportData
}

type PostGameCarnageReportBasicValue

type PostGameCarnageReportBasicValue struct {
	DisplayValue string  `json:"displayValue"`
	Value        float64 `json:"value"`
}

type PostGameCarnageReportEntry

type PostGameCarnageReportEntry struct {
	CharacterId string                        `json:"characterId"`
	Extended    PostGameCarnageReportExtended `json:"extended"`
}

type PostGameCarnageReportExtended

type PostGameCarnageReportExtended struct {
	Weapons []PostGameCarnageReportWeapon `json:"weapons"`
}

type PostGameCarnageReportWeapon

type PostGameCarnageReportWeapon struct {
	ReferenceId int                               `json:"referenceId"`
	Values      PostGameCarnageReportWeaponValues `json:"values"`
}

type PostGameCarnageReportWeaponValue

type PostGameCarnageReportWeaponValue struct {
	Basic PostGameCarnageReportBasicValue `json:"basic"`
}

type PostGameCarnageReportWeaponValues

type PostGameCarnageReportWeaponValues struct {
	UniqueWeaponKills          PostGameCarnageReportWeaponValue `json:"uniqueWeaponKills"`
	UniqueWeaponPrecisionKills PostGameCarnageReportWeaponValue `json:"uniqueWeaponPrecisionKills"`
}

type Profile

type Profile struct {
	Data    ProfileData `json:"data"`
	Privacy int         `json:"privacy"`
}

type ProfileContainer

type ProfileContainer struct {
	Profile                            Profile `json:"profile"`
	ResponseMintedTimestamp            string  `json:"responseMintedTimestamp"`
	SecondaryComponentsMintedTimestamp string  `json:"secondaryComponentsMintedTimestamp"`
	DBProfile                          *database.DbProfileData
}

type ProfileData

type ProfileData struct {
	CharacterIds        []string `json:"characterIds"`
	CurrentGuardianRank int      `json:"currentGuardianRank"`
}

Jump to

Keyboard shortcuts

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