Skip to content

Commit

Permalink
Make email types internal
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Dec 30, 2023
1 parent 75a1152 commit 319b3e6
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion NAPS2.Lib.Mac/ImportExport/AppleMailEmailProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NAPS2.ImportExport;

public class AppleMailEmailProvider : IAppleMailEmailProvider
internal class AppleMailEmailProvider : IAppleMailEmailProvider
{
public Task<bool> SendEmail(EmailMessage emailMessage, ProgressHandler progress = default)
{
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib.Tests/Automation/MockEmailProviderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace NAPS2.Lib.Tests.Automation;

public class MockEmailProviderFactory : IEmailProviderFactory
internal class MockEmailProviderFactory : IEmailProviderFactory
{
private Exception _assertException;

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/AutofacEmailProviderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace NAPS2;

public class AutofacEmailProviderFactory : IEmailProviderFactory
internal class AutofacEmailProviderFactory : IEmailProviderFactory
{
private readonly IComponentContext _container;

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/Automation/AutomatedScanning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace NAPS2.Automation;

public class AutomatedScanning
internal class AutomatedScanning
{
private readonly ImageContext _imageContext;
private readonly IEmailProviderFactory _emailProviderFactory;
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/ImportExport/Email/IAppleMailEmailProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace NAPS2.ImportExport.Email;

public interface IAppleMailEmailProvider : IEmailProvider
internal interface IAppleMailEmailProvider : IEmailProvider
{
}
2 changes: 1 addition & 1 deletion NAPS2.Lib/ImportExport/Email/IEmailProviderFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NAPS2.ImportExport.Email;

public interface IEmailProviderFactory
internal interface IEmailProviderFactory
{
IEmailProvider Create(EmailProviderType type);

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/ImportExport/Email/MimeEmailProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace NAPS2.ImportExport.Email;

public abstract class MimeEmailProvider : IEmailProvider
internal abstract class MimeEmailProvider : IEmailProvider
{
public async Task<bool> SendEmail(EmailMessage emailMessage, ProgressHandler progress = default)
{
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/ImportExport/Email/Oauth/GmailEmailProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NAPS2.ImportExport.Email.Oauth;

public class GmailEmailProvider : MimeEmailProvider
internal class GmailEmailProvider : MimeEmailProvider
{
private readonly GmailOauthProvider _gmailOauthProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NAPS2.ImportExport.Email.Oauth;

public class OutlookWebEmailProvider : IEmailProvider
internal class OutlookWebEmailProvider : IEmailProvider
{
private readonly OutlookWebOauthProvider _outlookWebOauthProvider;

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Lib/ImportExport/Email/ThunderbirdEmailProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NAPS2.ImportExport.Email;

public class ThunderbirdEmailProvider : IEmailProvider
internal class ThunderbirdEmailProvider : IEmailProvider
{
private readonly ErrorOutput _errorOutput;

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/ImportExport/Email/EmailAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Represents an attachment for an EmailMessage.
/// </summary>
public record EmailAttachment
internal record EmailAttachment
{
/// <summary>
/// The path of the source file to be attached.
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/ImportExport/Email/EmailMessage.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NAPS2.ImportExport.Email;

public class EmailMessage
internal class EmailMessage
{
public string? Subject { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/ImportExport/Email/EmailRecipient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NAPS2.ImportExport.Email;

public class EmailRecipient
internal class EmailRecipient
{
public static IEnumerable<EmailRecipient> FromText(EmailRecipientType recipType, string? recipText)
{
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/ImportExport/Email/EmailRecipientType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NAPS2.ImportExport.Email;

public enum EmailRecipientType
internal enum EmailRecipientType
{
To,
Cc,
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk/ImportExport/Email/IEmailProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NAPS2.ImportExport.Email;

public interface IEmailProvider
internal interface IEmailProvider
{
Task<bool> SendEmail(EmailMessage emailMessage, ProgressHandler progress = default);
}

0 comments on commit 319b3e6

Please sign in to comment.