public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int    id     = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromEPiServerGroupname";
                id     = ((Job)importer).Id;
            }
            else
            {
                apiUrl = apiUrl + "AddRecipientsToListFromEPiServerGroupname";
                id     = ((RecipientList)importer).Id;
            }
            apiUrl = apiUrl + "?id=" + id.ToString();

            ApiUrl = apiUrl;
        }
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int id = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromEPiServerGroupname";
                id = ((Job) importer).Id;
            }
            else
            {
                apiUrl = apiUrl + "AddRecipientsToListFromEPiServerGroupname";
                id = ((RecipientList)importer).Id;
            }
            apiUrl = apiUrl + "?id=" + id.ToString();

            ApiUrl = apiUrl;
        }
Exemplo n.º 3
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int    id     = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromList";
                id     = ((Job)importer).Id;
                apiUrl = apiUrl + "?jobId=" + id.ToString();
            }
            else
            {
                // We're adding from a list to another listg
                apiUrl = apiUrl + "AddRecipientsToListFromList";
                id     = ((RecipientList)importer).Id;
                apiUrl = apiUrl + "?destinationListId=" + id.ToString();
            }

            ApiUrl = apiUrl;
        }
Exemplo n.º 4
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int id = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromList";
                id = ((Job)importer).Id;
                apiUrl = apiUrl + "?jobId=" + id.ToString();
            }
            else
            {
                // We're adding from a list to another listg
                apiUrl = apiUrl + "AddRecipientsToListFromList";
                id = ((RecipientList)importer).Id;
                apiUrl = apiUrl + "?destinationListId=" + id.ToString();
            }

            ApiUrl = apiUrl;
        }
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _job = importer;
     _jobUi = feedbackUi;
 }
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _importer = importer;
     _job = (Job) importer;
     _feedbackCtrl = feedbackUi;
 }
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _job   = (Job)importer;
     _jobUi = feedbackUi;
 }
Exemplo n.º 8
0
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _importer     = importer;
     _feedbackCtrl = feedbackUi;
 }