Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Include statistics data
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie Mansfield <jmansfield@cadixdev.org>
  • Loading branch information
jamierocks committed Apr 7, 2020
1 parent 70b0361 commit 2387d31
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
10 changes: 10 additions & 0 deletions modpacksch/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package modpacksch

// Hardware minimum spec and recommended spec information.
// Specifically, the Minimum and Recommended fields are for
// memory in megabytes.
type Specs struct {
ID int `json:"id"`
Minimum int `json:"minimum"`
Recommended int `json:"recommended"`
}
6 changes: 6 additions & 0 deletions modpacksch/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ type Pack struct {
Synopsis string `json:"synopsis"`
Description string `json:"description"`
Type string `json:"type"`
Featured bool `json:"featured"`
Installs int `json:"installs"`
Plays int `json:"plays"`
Updated int64 `json:"updated"`
Refreshed int64 `json:"updated"`

Art []*Art `json:"art"`
Authors []*Author `json:"authors"`
Expand Down Expand Up @@ -111,6 +115,8 @@ type VersionInfo struct {
Name string `json:"name"`
Type string `json:"type"`
Updated int64 `json:"updated"`

Specs *Specs `json:"specs"`
}

type Tag struct {
Expand Down
16 changes: 10 additions & 6 deletions modpacksch/version.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package modpacksch

type Version struct {
ID int
Parent int
Name string
Type string
Updated int64
Refreshed int64
ID int `json:"id"`
Parent int `json:"parent"`
Name string `json:"name"`
Type string `json:"type"`
Installs int `json:"installs"`
Plays int `json:"plays"`
Updated int64 `json:"updated"`
Refreshed int64 `json:"refreshed"`

Specs *Specs `json:"specs"`
}

type VersionChangelog struct {
Expand Down

0 comments on commit 2387d31

Please sign in to comment.