-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1 from TesteurManiak/features/channels_endpoints
finished modify channel information & get channel editors
- Loading branch information
Showing
8 changed files
with
201 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
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,24 @@ | ||
/// User who have editor permissions | ||
class TwitchChannelEditor { | ||
/// User ID of the editor. | ||
final String userId; | ||
|
||
/// Display name of the editor. | ||
final String userName; | ||
|
||
/// Date and time the editor was given editor permissions. | ||
final DateTime createdAt; | ||
|
||
TwitchChannelEditor({ | ||
required this.userId, | ||
required this.userName, | ||
required this.createdAt, | ||
}); | ||
|
||
factory TwitchChannelEditor.fromJson(Map<String, dynamic> json) => | ||
TwitchChannelEditor( | ||
userId: json['user_id'] as String, | ||
userName: json['user_name'] as String, | ||
createdAt: DateTime.parse(json['created_at'] as String), | ||
); | ||
} |
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,14 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"user_id": "182891647", | ||
"user_name": "mauerbac", | ||
"created_at": "2019-02-15T21:19:50.380833Z" | ||
}, | ||
{ | ||
"user_id": "135093069", | ||
"user_name": "BlueLava", | ||
"created_at": "2018-03-07T16:28:29.872937Z" | ||
} | ||
] | ||
} |