@@ -52,6 +52,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
52
52
Method : "webhook" ,
53
53
Callback : "null" ,
54
54
},
55
+ Cost : 0 ,
55
56
CreatedAt : util .GetTimestamp ().Format (time .RFC3339Nano ),
56
57
},
57
58
Event : models.StreamUpEventSubEvent {
@@ -71,20 +72,20 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
71
72
body := models.StreamUpWebSubResponse {
72
73
Data : []models.StreamUpWebSubResponseData {
73
74
{
74
- ID : params .ID ,
75
- UserID : params .ToUserID ,
76
- UserLogin : params .ToUserName ,
77
- UserName : params .ToUserName ,
78
- GameID : "509658" ,
79
- Type : "live" ,
80
- Title : params .StreamTitle ,
81
- ViewerCount : 1337 ,
82
- StartedAt : util .GetTimestamp ().Format (time .RFC3339 ),
83
- Language : "en" ,
84
- ThumbnailURL : "https://static-cdn.jtvnw.net/ttv-static/404_preview-440x248.jpg" ,
85
- TagIDs : make ([]string , 0 ),
75
+ ID : params .ID ,
76
+ UserID : params .ToUserID ,
77
+ UserLogin : params .ToUserName ,
78
+ UserName : params .ToUserName ,
79
+ GameID : "509658" ,
80
+ Type : "live" ,
81
+ Title : params .StreamTitle ,
82
+ ViewerCount : 1337 ,
83
+ StartedAt : util .GetTimestamp ().Format (time .RFC3339 ),
84
+ Language : "en" ,
85
+ ThumbnailURL : "https://static-cdn.jtvnw.net/ttv-static/404_preview-440x248.jpg" ,
86
+ TagIDs : make ([]string , 0 ),
87
+ },
86
88
},
87
- },
88
89
}
89
90
90
91
event , err = json .Marshal (body )
0 commit comments