This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_models.go
61 lines (45 loc) · 1.56 KB
/
api_models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package audiusclient
type APIUser struct {
ID string `json:"id"`
Name string `json:"name"`
Handle string `json:"handle"`
Bio string `json:"bio"`
Location string `json:"location"`
IsVerified bool `json:"is_verified"`
ProfilePicture map[string]string `json:"profile_picture"`
CoverPhoto map[string]string `json:"cover_photo"`
FollowerCount int `json:"follower_count"`
FolloweeCount int `json:"followee_count"`
AlbumCount int `json:"album_count"`
TrackCount int `json:"track_count"`
PlaylistCount int `json:"playlist_count"`
RepostCount int `json:"repost_count"`
}
type APITrack struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Duration int `json:"duration"`
Mood string `json:"mood"`
Genre string `json:"genre"`
Tags string `json:"tags"`
IsDownloadable bool `json:"downloadable"`
ReleaseDate string `json:"release_date"`
Artwork map[string]string `json:"artwork"`
PlayCount int `json:"play_count"`
RepostCount int `json:"repost_count"`
FavoriteCount int `json:"favorite_count"`
User APIUser `json:"user"`
StreamURL string `json:"-"`
}
type APIPlaylist struct {
ID string `json:"id"`
PlaylistName string `json:"playlist_name"`
Description string `json:"description"`
IsAlbum bool `json:"is_album"`
Artwork map[string]string `json:"artwork"`
TotalPlayCount int `json:"total_play_count"`
RepostCount int `json:"repost_count"`
FavoriteCount int `json:"favorite_count"`
User APIUser `json:"user"`
}