Skip to content

Commit

Permalink
Update XML comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prplecake committed Nov 10, 2023
1 parent a2f15b5 commit 307cfed
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/CiT.CLI/Commands/DomainBlocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class DomainBlocks
/// Constructs a DomainBlocks object.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public DomainBlocks(IConfigManager configManager, HttpClient client)
{
_apiClient = new DomainBlocksApi(configManager, client);
Expand Down
1 change: 1 addition & 0 deletions src/CiT.CLI/Commands/Domains.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Domains
/// Constructs a Domains object.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public Domains(IConfigManager configManager, HttpClient client)
{
_apiClient = new MeasuresApi(configManager, client);
Expand Down
1 change: 1 addition & 0 deletions src/CiT.CLI/Commands/EmailDomainBlocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class EmailDomainBlocks
/// Constructs an EmailDomainBlocks object.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public EmailDomainBlocks(IConfigManager configManager, HttpClient client)
{
_apiClient = new EmailDomainBlocksApi(configManager, client);
Expand Down
1 change: 1 addition & 0 deletions src/CiT.CLI/Commands/IpAddressBlocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class IpAddressBlocks
/// Constructs an IpAddressBlocks object.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public IpAddressBlocks(IConfigManager configManager, HttpClient client)
{
_apiClient = new IpAddressBlocksApi(configManager, client);
Expand Down
1 change: 0 additions & 1 deletion src/CiT.Core/Configuration/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class ConfigManager : IConfigManager
/// Constructs a ConfigManager with all Configuration objects.
/// </summary>
/// <param name="configuration">The main program Configuration</param>
/// <param name="instance">The instance configuration.</param>
/// <exception cref="InvalidConfigurationException">Thrown if any of the provided configurations objects are invalid.</exception>
public ConfigManager(
IConfiguration configuration)
Expand Down
3 changes: 2 additions & 1 deletion src/CiT.Core/Mastodon/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public abstract class ApiClient
/// <summary>
/// ApiClient constructor to initialize the Authorization, Accept, and User-Agent headers.
/// </summary>
/// <param name="configManager"></param>
/// <param name="configManager">The config manager.</param>
/// <param name="client">The HttpClient.</param>
protected ApiClient(IConfigManager configManager, HttpClient client)
{
client.DefaultRequestHeaders.Authorization =
Expand Down
1 change: 1 addition & 0 deletions src/CiT.Core/Mastodon/DomainBlocksApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class DomainBlocksApi : ApiClient
/// Constructs a DomainBlocksApi object using the ConfigManager to set the API URL.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public DomainBlocksApi(IConfigManager configManager, HttpClient client) : base(configManager, client)
{
_domainBlocksApiUrl = $"{configManager.Instance.Url}/api/v1/admin/domain_blocks";
Expand Down
1 change: 1 addition & 0 deletions src/CiT.Core/Mastodon/EmailDomainBlocksApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class EmailDomainBlocksApi : ApiClient
/// Constructs an EmailDomainBlocksApi object using the ConfigManager to set the API URL.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public EmailDomainBlocksApi(IConfigManager configManager, HttpClient client) : base(configManager, client)
{
_emailDomainBlocksApiUrl = $"{configManager.Instance.Url}/api/v1/admin/email_domain_blocks";
Expand Down
1 change: 1 addition & 0 deletions src/CiT.Core/Mastodon/IpAddressBlocksApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class IpAddressBlocksApi : ApiClient
/// Constructs an IpAddressBlocksApi object using the ConfigManager to set the API URL.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public IpAddressBlocksApi(IConfigManager configManager, HttpClient client) : base(configManager, client)
{
_ipAddressBlocksApiUrl = $"{configManager.Instance.Url}/api/v1/admin/ip_blocks";
Expand Down
1 change: 1 addition & 0 deletions src/CiT.Core/Mastodon/MeasuresApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class MeasuresApi : ApiClient
/// Constructs a MeasuresApi object using the ConfigManager to set the API URL.
/// </summary>
/// <param name="configManager">The ConfigManager.</param>
/// <param name="client">The HttpClient.</param>
public MeasuresApi(IConfigManager configManager, HttpClient client) : base(configManager, client)
{
_measuresApiUrl = $"{configManager.Instance.Url}/api/v1/admin/measures";
Expand Down

0 comments on commit 307cfed

Please sign in to comment.