Exemplo n.º 1
0
        public GetMail()
        {
            ConfigRetriever configRetriever = new ConfigRetriever();

            config             = configRetriever.Load();
            server             = config.server;
            email              = config.email;
            password           = config.password;
            attachmentsDirPath = $@"{configRetriever.userPath}\OneDrive\Scripts\data\berlys\attachments\";
        }
Exemplo n.º 2
0
        public FilenameHandler()
        {
            ConfigRetriever configRetriever = new ConfigRetriever();

            config = configRetriever.Load();
            string userPath = configRetriever.userPath;

            TemporaryDirPath   = $@"{userPath}\AppData\Local\Temp\";
            DownloadsDirPath   = $@"{userPath}\Downloads\";
            DataDirPath        = $@"{userPath}\OneDrive\Scripts\data\berlys\";
            AttachmentsDirPath = $@"{userPath}\OneDrive\Scripts\berlys\data\attachments\";
        }