Exemplo n.º 1
0
        // =============================
        //   CREATION AND CONSTRUCTION
        // =============================


        /// <summary>
        /// Private constructor from basic object
        /// </summary>
        private OutboundMail (BasicOutboundMail basic)
            : base(basic)
        {
            // remember titel for templated mail, it is the name of the template.
            if (MailType > 0)
                templateName = basic.Title;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creation from basic object - internal to PirateWeb.Logic
        /// </summary>
        internal static OutboundMail FromBasic (BasicOutboundMail basic)
        {
            if (basic == null)
            {
                return null;
            }

            return new OutboundMail(basic);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Copy constructor. Used when PirateWeb.Logic constructs an OutboundMail object.
 /// </summary>
 /// <param name="original">The original to copy.</param>
 public BasicOutboundMail (BasicOutboundMail original)
     : this(
         original.outboundMailId, original.authorType, original.authorPersonId, original.title,
         original.body, original.mailPriority, original.mailType,
         original.organizationId, original.geographyId, original.createdDateTime, original.releaseDateTime,
         original.readyForPickup, original.resolved, original.processed,
         original.resolvedDateTime, original.startProcessDateTime, original.endProcessDateTime,
         original.recipientCount, original.recipientsSuccess, original.recipientsFail)
 {
     // nothing more to do after copying fields
 }
Exemplo n.º 4
0
 /// <summary>
 /// Copy constructor. Used when PirateWeb.Logic constructs an OutboundMail object.
 /// </summary>
 /// <param name="original">The original to copy.</param>
 public BasicOutboundMail(BasicOutboundMail original)
     : this(
         original.outboundMailId, original.authorType, original.authorPersonId, original.title,
         original.body, original.mailPriority, original.mailType,
         original.organizationId, original.geographyId, original.createdDateTime, original.releaseDateTime,
         original.readyForPickup, original.resolved, original.processed,
         original.resolvedDateTime, original.startProcessDateTime, original.endProcessDateTime,
         original.recipientCount, original.recipientsSuccess, original.recipientsFail)
 {
     // nothing more to do after copying fields
 }