@@ -67,6 +67,8 @@ pub struct GetBroadcasterSubscriptionsRequest {
67
67
pub struct BroadcasterSubscription {
68
68
/// User ID of the broadcaster.
69
69
pub broadcaster_id : types:: UserId ,
70
+ /// Login of the broadcaster.
71
+ pub broadcaster_login : types:: UserName ,
70
72
/// Display name of the broadcaster.
71
73
pub broadcaster_name : types:: DisplayName ,
72
74
/// Determines if the subscription is a gift subscription.
@@ -77,6 +79,8 @@ pub struct BroadcasterSubscription {
77
79
pub plan_name : String ,
78
80
/// ID of the subscribed user.
79
81
pub user_id : types:: UserId ,
82
+ /// Login of the subscribed user.
83
+ pub user_login : types:: UserName ,
80
84
/// Display name of the subscribed user.
81
85
pub user_name : types:: DisplayName ,
82
86
}
@@ -109,11 +113,13 @@ fn test_request() {
109
113
"data": [
110
114
{
111
115
"broadcaster_id": "123",
116
+ "broadcaster_login": "test_user",
112
117
"broadcaster_name": "test_user",
113
118
"is_gift": true,
114
119
"tier": "1000",
115
120
"plan_name": "The Ninjas",
116
121
"user_id": "123",
122
+ "user_login": "snoirf",
117
123
"user_name": "snoirf"
118
124
}
119
125
],
0 commit comments