Skip to content

Commit

Permalink
Merge pull request #2 from Freespoke/fix-ballot-measures
Browse files Browse the repository at this point in the history
fix ballot measures
  • Loading branch information
jdpedrie authored Aug 20, 2024
2 parents 79f8715 + 3e8cfd8 commit 5c7a0ac
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions votesmarttypes/measure.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package votesmarttypes

type MeasureSummary struct {
MeasureID string `json:"measureId"`
MeasureCode string `json:"measureCode"`
Title string `json:"title"`
Outcome string `json:"outcome"`
}

// MeasureGetMeasuresByYearState is the response message for Measure.getMeasuresByYearState.
// See http://api.votesmart.org/docs/Measure.html for usage details.
type MeasureGetMeasuresByYearState struct {
Measures struct {
Measure []struct {
MeasureID string `json:"measureId"`
MeasureCode string `json:"measureCode"`
Title string `json:"title"`
Outcome string `json:"outcome"`
} `json:"measure"`
Measure MaybeList[MeasureSummary] `json:"measure"`
} `json:"measures"`
}

Expand Down

0 comments on commit 5c7a0ac

Please sign in to comment.