-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
77 lines (69 loc) · 2.71 KB
/
types.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package rotten_tomato
type RTSchemaPerson struct {
Name string `json:"name"`
Url string `json:"sameAs"`
Image string `json:"image"`
}
type RTSchemaAggregateRating struct {
Type string `json:"@type"`
BestRating string `json:"bestRating"`
Description string `json:"description"`
Name string `json:"name"`
RatingCount int `json:"ratingCount"`
RatingValue string `json:"ratingValue"`
ReviewCount int `json:"reviewCount"`
WorstRating string `json:"worstRating"`
}
type RTSchemaCompany struct {
Type string `json:"@type"`
Name string `json:"name"`
}
type RTSchemaJson struct {
Context string `json:"@context"`
Type string `json:"@type"`
Actors []RTSchemaPerson `json:"actors"`
AggregateRating RTSchemaAggregateRating `json:"aggregateRating"`
Author []RTSchemaPerson `json:"author"`
Character []string `json:"character"`
ContentRating string `json:"contentRating"`
DateCreated string `json:"dateCreated"`
DateModified string `json:"dateModified"`
Director []RTSchemaPerson `json:"director"`
Genre []string `json:"genre"`
Image string `json:"image"`
Name string `json:"name"`
ProductionCompany RTSchemaCompany `json:"productionCompany"`
Url string `json:"url"`
}
type RTScore struct {
AverageRating string `json:"averageRating"`
BandedRatingCount string `json:"bandedRatingCount"`
LikedCount int `json:"likedCount"`
NotLikedCount int `json:"notLikedCount"`
RatingCount int `json:"ratingCount"`
ReviewCount int `json:"reviewCount"`
State string `json:"state"`
Value int `json:"value"`
}
type RTScoreboard struct {
AudienceCountHref string `json:"audienceCountHref"`
AudienceScore RTScore `json:"audienceScore"`
Rating string `json:"rating"`
TomatometerScore RTScore `json:"tomatometerScore"`
Title string `json:"title"`
Info string `json:"info"`
}
type RTMovieInfo struct {
AudienceScore RTScore `json:"audienceScore"`
Rating string `json:"rating"`
TomatometerScore RTScore `json:"tomatometerScore"`
Title string `json:"title"`
Year int `json:"year"`
Runtime string `json:"runtime"`
Genres []string `json:"genres"`
}
type RTScoreDetails struct {
MediaType string `json:"mediaType"`
PrimaryImageUrl string `json:"primaryImageUrl"`
Scoreboard RTScoreboard `json:"scoreboard"`
}