Ejemplo n.º 1
0
        /// <summary>
        /// Copy constructor for building a DTO from the system user ExternalSystemUserDetailsRequestDTO
        /// </summary>
        /// <param name="model">ExternalSystemUserDetailsRequestDTO containing system user details</param>
        public SystemUserSubjectDelegateDTO(ExternalSystemUserDetailsRequestDTO model)
        {
            if (model == null)
            {
                return;
            }

            AccountExternalId   = model.ACCOUNT_EXTERNAL_ID.Trim();
            AuthenticationToken = model.AUTHENTICATION_TOKEN.Trim();
            SubjectExternalId   = model.SUBJECT_EXTERNAL_ID.Trim();
            UserExternalId      = model.USER_EXTERNAL_ID.Trim();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor for building DTO using ExternalSystemUserDetailsRequestDTO containing system user details and subject delegate details
        /// </summary>
        /// <param name="model">ExternalSystemUserDetailsRequestDTO containing system user details</param>
        /// <param name="personId">The person ID of the subject delegate</param>
        /// <param name="organizationId">The organization ID that the subject delegate is associated with</param>
        public SystemUserSubjectDelegateDTO(ExternalSystemUserDetailsRequestDTO model, int personId, int organizationId)
        {
            if (model != null)
            {
                AccountExternalId   = model.ACCOUNT_EXTERNAL_ID.Trim();
                AuthenticationToken = model.AUTHENTICATION_TOKEN.Trim();
                SubjectExternalId   = model.SUBJECT_EXTERNAL_ID.Trim();
                UserExternalId      = model.USER_EXTERNAL_ID.Trim();
            }

            PersonId       = personId;
            OrganizationId = organizationId;
        }