adding interface for email settings
This commit is contained in:
@@ -59,12 +59,15 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Extensability\Catalog.cs" />
|
<Compile Include="Extensability\Catalog.cs" />
|
||||||
<Compile Include="Plugins\Email\ImapInput.cs" />
|
<Compile Include="Plugins\Email\ImapInput.cs">
|
||||||
|
<DependentUpon>IEmailSetting.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Plugins\Email\EmailSettings.cs" />
|
<Compile Include="Plugins\Email\EmailSettings.cs" />
|
||||||
<Compile Include="Imports\IDataImportHook.cs" />
|
<Compile Include="Imports\IDataImportHook.cs" />
|
||||||
<Compile Include="Imports\DataImports.cs" />
|
<Compile Include="Imports\DataImports.cs" />
|
||||||
<Compile Include="DB\RedisDataase.cs" />
|
<Compile Include="DB\RedisDataase.cs" />
|
||||||
<Compile Include="Plugins\Email\ParseRule.cs" />
|
<Compile Include="Plugins\Email\ParseRule.cs" />
|
||||||
|
<Compile Include="Plugins\Email\IEmailSetting.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace NOCQ.Plugins.Email
|
namespace NOCQ.Plugins.Email
|
||||||
{
|
{
|
||||||
public class EmailSettings
|
public class EmailSettings :IEmailSetting
|
||||||
{
|
{
|
||||||
public string Username {get;set;}
|
public string Username {get;set;}
|
||||||
public string Password {get;set;}
|
public string Password {get;set;}
|
||||||
|
|||||||
17
src/NOCQ/Plugins/Email/IEmailSetting.cs
Normal file
17
src/NOCQ/Plugins/Email/IEmailSetting.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
namespace NOCQ
|
||||||
|
{
|
||||||
|
public interface IEmailSetting
|
||||||
|
{
|
||||||
|
string Username {get;set;}
|
||||||
|
string Password {get;set;}
|
||||||
|
string Host {get;set;}
|
||||||
|
int Port {get;set;}
|
||||||
|
string Folder {get;set;}
|
||||||
|
bool IsSsl {get;set;}
|
||||||
|
int Frequency { get; set; }
|
||||||
|
IEnumerable<ParseRule> ParseRules {get;set;}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user