-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from UniversityRadioYork/markspolakovs-subtypes
Moving show subtypes into MyRadio, part 4 - API in myradio-go
- Loading branch information
Showing
3 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package myradio | ||
|
||
type ShowSeasonSubtype struct { | ||
SubtypeID string `json:"id"` | ||
Name string `json:"name"` | ||
Class string `json:"class"` | ||
} | ||
|
||
func (s *Session) GetAllShowSubtypes() (subtypes []ShowSeasonSubtype, err error) { | ||
err = s.get("/showSubtype/all").Into(&subtypes) | ||
return | ||
} |