Ejemplo n.º 1
0
        public ThreadTO(gov.va.medora.mdo.domain.sm.Thread thread)
        {
            if (thread == null)
            {
                return;
            }

            id              = thread.Id;
            oplock          = thread.Oplock;
            mailGroup       = new TriageGroupTO(thread.MailGroup);
            subject         = thread.Subject;
            messageCategory = (Int32)thread.MessageCategoryType;

            if (thread.Annotations != null)
            {
                annotations = new AnnotationTO[thread.Annotations.Count];
                for (int i = 0; i < thread.Annotations.Count; i++)
                {
                    annotations[i] = new AnnotationTO(thread.Annotations[i]);
                }
            }
            if (thread.Messages != null)
            {
                messages = new MessageTO[thread.Messages.Count];
                for (int i = 0; i < thread.Messages.Count; i++)
                {
                    messages[i] = new MessageTO(thread.Messages[i]);
                }
            }
        }
Ejemplo n.º 2
0
        public ThreadTO(gov.va.medora.mdo.domain.sm.Thread thread)
        {
            if (thread == null)
            {
                return;
            }

            id = thread.Id;
            oplock = thread.Oplock;
            mailGroup = new TriageGroupTO(thread.MailGroup);
            subject = thread.Subject;
            messageCategory = (Int32)thread.MessageCategoryType;

            if (thread.Annotations != null)
            {
                annotations = new AnnotationTO[thread.Annotations.Count];
                for (int i = 0; i < thread.Annotations.Count; i++)
                {
                    annotations[i] = new AnnotationTO(thread.Annotations[i]);
                }
            }
            if (thread.Messages != null)
            {
                messages = new MessageTO[thread.Messages.Count];
                for (int i = 0; i < thread.Messages.Count; i++)
                {
                    messages[i] = new MessageTO(thread.Messages[i]);
                }
            }
        }