data

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 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
}

func GetActivities

func GetActivities(dbHandlers *database.DbHandlers, apiKey string, membershipId string, membershipType int, characterId string) ([]*Activity, error)

type PostGameCarnageReport

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

func GetPostGameCarnageReportsByInstanceId

func GetPostGameCarnageReportsByInstanceId(db *database.DbPostGameCarnageReport, apiKey string, instanceId string) ([]*PostGameCarnageReport, error)

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
}

func GetProfilesByUsername

func GetProfilesByUsername(db *database.DbProfile, apiKey string, username string) ([]*ProfileContainer, error)

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