Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MailAccountImapFolderDTO" /> class.
 /// </summary>
 /// <param name="sourceFolder">Source folder.</param>
 /// <param name="destinationFolder">Destination folder.</param>
 /// <param name="afterDownloadAction">Possible values:  0: None  1: DeleteMessage  2: MoveToDestinationFolder .</param>
 /// <param name="pecSubject">Possible values:  0: Unread  1: Overwrite  2: DoNotOverwrite .</param>
 /// <param name="pecSender">Possible values:  0: Unread  1: Overwrite  2: DoNotOverwrite .</param>
 /// <param name="peekMode">Boolean indicating whether to leave the email as unread.</param>
 /// <param name="mapping">Fields mapping.</param>
 public MailAccountImapFolderDTO(string sourceFolder = default(string), string destinationFolder = default(string), int?afterDownloadAction = default(int?), int?pecSubject = default(int?), int?pecSender = default(int?), bool?peekMode = default(bool?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO))
 {
     this.SourceFolder        = sourceFolder;
     this.DestinationFolder   = destinationFolder;
     this.AfterDownloadAction = afterDownloadAction;
     this.PecSubject          = pecSubject;
     this.PecSender           = pecSender;
     this.PeekMode            = peekMode;
     this.Mapping             = mapping;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MailAccountReceiveSettingsPop3DTO" /> class.
 /// </summary>
 /// <param name="server">Server address.</param>
 /// <param name="username">Username.</param>
 /// <param name="password">Password.</param>
 /// <param name="port">Port.</param>
 /// <param name="ssl">SSL.</param>
 /// <param name="passwordProtection">Boolean indicating whether to use the password protection (SPA).</param>
 /// <param name="deleteEmailMode">Possible values:  0: None  1: Immediately  2: AfterNumDays .</param>
 /// <param name="numDayDelete">Number of days before deleting the message if DeleteEmailMode is set to AfterNumDays.</param>
 /// <param name="pecSubject">Possible values:  0: Unread  1: Overwrite  2: DoNotOverwrite .</param>
 /// <param name="pecSender">Possible values:  0: Unread  1: Overwrite  2: DoNotOverwrite .</param>
 /// <param name="mapping">Fields mapping.</param>
 public MailAccountReceiveSettingsPop3DTO(string server = default(string), string username = default(string), string password = default(string), int?port = default(int?), bool?ssl = default(bool?), bool?passwordProtection = default(bool?), int?deleteEmailMode = default(int?), int?numDayDelete = default(int?), int?pecSubject = default(int?), int?pecSender = default(int?), MailAccountStoreSettingsDTO mapping = default(MailAccountStoreSettingsDTO))
 {
     this.Server             = server;
     this.Username           = username;
     this.Password           = password;
     this.Port               = port;
     this.Ssl                = ssl;
     this.PasswordProtection = passwordProtection;
     this.DeleteEmailMode    = deleteEmailMode;
     this.NumDayDelete       = numDayDelete;
     this.PecSubject         = pecSubject;
     this.PecSender          = pecSender;
     this.Mapping            = mapping;
 }