38 lines
896 B
Go
38 lines
896 B
Go
package models
|
|
|
|
type TrackerDataJSON struct {
|
|
Weapons []Weapon `json:"weapons"`
|
|
DivKills DividedKills `json:"dividedKills"`
|
|
Deaths int `json:"deaths"`
|
|
SecondsPlayed int `json:"secondsPlayed"`
|
|
XP []XP `json:"XP"`
|
|
}
|
|
|
|
type DividedKills struct {
|
|
ADS int `json:"ads"`
|
|
Hip int `json:"hip"`
|
|
AI int `json:"ai"`
|
|
}
|
|
|
|
type XP struct {
|
|
Ribbons Ribbons `json:"ribbons"`
|
|
}
|
|
|
|
type Ribbons struct {
|
|
Objective int `json:"objective"`
|
|
Squad int `json:"squad"`
|
|
Support int `json:"support"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type Weapon struct {
|
|
Type string `json:"type"`
|
|
Name string `json:"weaponName"`
|
|
ID string `json:"id"`
|
|
Kills int `json:"kills"`
|
|
KPM float64 `json:"killsPerMinute"`
|
|
ShotsFired int `json:"shotsFired"`
|
|
ShotsHit int `json:"shotsHit"`
|
|
Accuracy float64 `json:"-"`
|
|
}
|