Inheritance: BaseSmTO
Exemplo n.º 1
0
        public SmUserTO(mdo.domain.sm.User user)
        {
            if (user == null)
            {
                return;
            }

            id               = user.Id;
            username         = user.Username;
            lastName         = user.LastName;
            firstName        = user.FirstName;
            middleName       = user.MiddleName;
            email            = user.Email;
            ssn              = user.Ssn;
            nSsn             = user.Nssn;
            lastNotification = user.LastNotification;

            if (user.Groups != null && user.Groups.Count > 0)
            {
                groups = new TriageGroupTO[user.Groups.Count];
                for (int i = 0; i < user.Groups.Count; i++)
                {
                    groups[i] = new TriageGroupTO(user.Groups[i]);
                }
            }

            if (user.Mailbox != null)
            {
                mailbox = new MailboxTO(user.Mailbox);
            }
        }
Exemplo n.º 2
0
        public SmUserTO(mdo.domain.sm.User user)
        {
            if (user == null)
            {
                return;
            }

            id = user.Id;
            username = user.Username;
            lastName = user.LastName;
            firstName = user.FirstName;
            middleName = user.MiddleName;
            email = user.Email;
            ssn = user.Ssn;
            nSsn = user.Nssn;
            lastNotification = user.LastNotification;

            if (user.Groups != null && user.Groups.Count > 0)
            {
                groups = new TriageGroupTO[user.Groups.Count];
                for (int i = 0; i < user.Groups.Count; i++)
                {
                    groups[i] = new TriageGroupTO(user.Groups[i]);
                }
            }

            if (user.Mailbox != null)
            {
                mailbox = new MailboxTO(user.Mailbox);
            }
        }