From 9cc4f134563f97768baf99c30b74793f8f88bb94 Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Sat, 11 Aug 2018 02:59:29 +0800 Subject: [PATCH] Cleanup of https://github.com/Still34/Discord.Net/pull/8 --- .../Entities/Guilds/IGuildIntegration.cs | 56 ++++++++++++++----- .../Entities/Guilds/IntegrationAccount.cs | 2 +- 2 files changed, 42 insertions(+), 16 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Guilds/IGuildIntegration.cs b/src/Discord.Net.Core/Entities/Guilds/IGuildIntegration.cs index 4ca57a55f..2491cd0d0 100644 --- a/src/Discord.Net.Core/Entities/Guilds/IGuildIntegration.cs +++ b/src/Discord.Net.Core/Entities/Guilds/IGuildIntegration.cs @@ -2,30 +2,56 @@ using System; namespace Discord { + /// + /// Holds information for a guild integration feature. + /// public interface IGuildIntegration { - /// Gets the integration ID. - /// An representing the unique identifier value of this integration. + /// + /// Gets the integration ID. + /// + /// + /// An representing the unique identifier value of this integration. + /// ulong Id { get; } - /// Gets the integration name. - /// A string containing the name of this integration. + /// + /// Gets the integration name. + /// + /// + /// A string containing the name of this integration. + /// string Name { get; } - /// Gets the integration type (twitch, youtube, etc). - /// A string containing the name of the type of integration. + /// + /// Gets the integration type (Twitch, YouTube, etc). + /// + /// + /// A string containing the name of the type of integration. + /// string Type { get; } - /// Gets if this integration is enabled or not. - /// A value indicating if this integration is enabled. + /// + /// Gets a value that indicates whether this integration is enabled or not. + /// + /// + /// true if this integration is enabled; otherwise false. + /// bool IsEnabled { get; } - /// Gets if this integration is syncing or not. - /// A value indicating if this integration is syncing. + /// + /// Gets a value that indicates whether this integration is syncing or not. + /// /// - /// An integration with syncing enabled will update its "subscribers" on - /// an interval, while one with syncing disabled will not. - /// A user must manually choose when sync the integration - /// if syncing is disabled. + /// An integration with syncing enabled will update its "subscribers" on an interval, while one with syncing + /// disabled will not. A user must manually choose when sync the integration if syncing is disabled. /// + /// + /// true if this integration is syncing; otherwise false. + /// bool IsSyncing { get; } - /// Gets the ID that this integration uses for "subscribers". + /// + /// Gets the ID that this integration uses for "subscribers". + /// + /// + /// A + /// ulong ExpireBehavior { get; } /// Gets the grace period before expiring "subscribers". ulong ExpireGracePeriod { get; } diff --git a/src/Discord.Net.Core/Entities/Guilds/IntegrationAccount.cs b/src/Discord.Net.Core/Entities/Guilds/IntegrationAccount.cs index 637bf969b..340115fde 100644 --- a/src/Discord.Net.Core/Entities/Guilds/IntegrationAccount.cs +++ b/src/Discord.Net.Core/Entities/Guilds/IntegrationAccount.cs @@ -6,7 +6,7 @@ namespace Discord public struct IntegrationAccount { /// Gets the ID of the account. - /// A unique identifier of this integration account. + /// A unique identifier of this integration account. public string Id { get; } /// Gets the name of the account. /// A string containing the name of this integration account.