Exemplo n.º 1
0
 /// <summary>
 /// Add an email struct to the customer object
 /// </summary>
 /// <param name="vo"></param>
 public void addEmail(CustomerEmailVO vo)
 {
     if (this.emails.Contains(vo))
     {
         return;
     }
     this.emails.Add(vo);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Gives the alternate email address of the customer
        /// </summary>
        /// <returns></returns>
        public CustomerEmailVO getAlternateEmail()
        {
            CustomerEmailVO custemail = this.emails.Find(delegate(CustomerEmailVO emailObj)
            {
                return(emailObj.EmailAddressType == CustomerEmailTypes.SECONDARY_EMAIL);
            });

            return(custemail);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Gives the primary email address of the customer
        /// </summary>
        /// <returns></returns>
        public CustomerEmailVO getPrimaryEmail()
        {
            CustomerEmailVO custemail = this.emails.Find(delegate(CustomerEmailVO emailObj)
            {
                return(emailObj.EmailAddressType == CustomerEmailTypes.PRIMARY_EMAIL);
            });

            return(custemail);
        }