diff --git a/src/NOCQ/ImapInput.cs b/src/NOCQ/ImapInput.cs new file mode 100644 index 0000000..85595e7 --- /dev/null +++ b/src/NOCQ/ImapInput.cs @@ -0,0 +1,37 @@ +using System; + +namespace NOCQ +{ + public class ImapInput + { + private string loginName { get; set; } + private string password { get; set; } + private string server { get; set; } + private string folderPath { get; set; } + + public ImapInput (dynamic settings) + { + if (settings.Login == null + || settings.Password == null + || settings.Server == null + || settings.FolderPath == null) + throw new ArgumentException ("You are missing a required setting."); + + loginName = settings.Login; + password = settings.Password; + server = settings.Server; + folderPath = settings.FolderPath; + } + + public void Run() + { + + } + + public void Stop() + { + + } + } +} + diff --git a/src/NOCQ/NOCQ.csproj b/src/NOCQ/NOCQ.csproj index a39c206..24296e1 100644 --- a/src/NOCQ/NOCQ.csproj +++ b/src/NOCQ/NOCQ.csproj @@ -48,9 +48,13 @@ ..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + + ..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll + + diff --git a/src/NOCQ/packages.config b/src/NOCQ/packages.config index 845e173..1da85cc 100644 --- a/src/NOCQ/packages.config +++ b/src/NOCQ/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file