-
Notifications
You must be signed in to change notification settings - Fork 84
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 #397 from Mahsaap/getModeratedChannels1
Add get Moderated Channels
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
TwitchLib.Api.Helix.Models/Moderation/GetModeratedChannels/GetModeratedChannelsResponse.cs
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,26 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using TwitchLib.Api.Helix.Models.Common; | ||
using TwitchLib.Api.Helix.Models.Moderation.GetModerators; | ||
|
||
namespace TwitchLib.Api.Helix.Models.Moderation.GetModeratedChannels | ||
{ | ||
/// <summary> | ||
/// List of channels that the specified user has moderator privileges in. | ||
/// </summary> | ||
public class GetModeratedChannelsResponse | ||
{ | ||
/// <summary> | ||
/// The list of channels that the user has moderator privileges in. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "data")] | ||
public ModeratedChannel[] Data { get; protected set; } | ||
/// <summary> | ||
/// Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "pagination")] | ||
public Pagination Pagination { get; protected set; } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
TwitchLib.Api.Helix.Models/Moderation/GetModeratedChannels/ModeratedChannel.cs
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,29 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.Api.Helix.Models.Moderation.GetModeratedChannels | ||
{ | ||
/// <summary> | ||
/// Channel that the user has moderator privileges in. | ||
/// </summary> | ||
public class ModeratedChannel | ||
{ | ||
/// <summary> | ||
/// An ID that uniquely identifies the channel this user can moderate. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "broadcaster_id")] | ||
public string BroadcasterId { get; protected set; } | ||
/// <summary> | ||
/// The channel’s login name. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "broadcaster_login")] | ||
public string BroadcasterLogin { get; protected set; } | ||
/// <summary> | ||
/// The channels’ display name. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "broadcaster_name")] | ||
public string BroadcasterName { get; protected set; } | ||
} | ||
} |
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