Exemplo n.º 1
0
        /// <summary>
        /// Handles conversion of an incoming IMemberProfileData class into a concrete type we can expose higher up.
        /// </summary>
        /// <param name="data">Member profile</param>
        internal MemberProfileData(IMemberProfileData data)
        {
            ActiveDirectoryKey = data.ActiveDirectoryKey;
            MemberId           = data.MemberId;
            ProviderKeys       = data.ProviderKeys;

            FirstName        = data.FirstName;
            LastName         = data.LastName;
            DisplayName      = data.DisplayName;
            Source           = data.Source;
            ContactFrequency = data.ContactFrequency;
            InvitationToken  = data.InvitationToken;

            MembershipStartDate = data.MembershipStartDate;

            EnrollmentStatus = data.EnrollmentStatus;
            GradeLevel       = data.GradeLevel;
            EmailAddress     = data.EmailAddress;

            USPostalCode     = data.USPostalCode;
            YearOfBirth      = data.YearOfBirth;
            SALTSchoolTypeID = data.SALTSchoolTypeID;

            LastModified      = data.LastModified;
            LastModifiedBy    = data.LastModifiedBy;
            IsCommunityActive = data.IsCommunityActive;
            WelcomeEmailSent  = data.WelcomeEmailSent;

            //put organizations on....
            if (data.Organizations != null && data.Organizations.Any())
            {
                Organizations = new MemberOrganizationList <MemberOrganizationData>();
                foreach (MemberOrganizationData orgainzation in data.Organizations)
                {
                    Organizations.Add(orgainzation);
                }
            }
        }
Exemplo n.º 2
0
 private void Init()
 {
     Organizations = new MemberOrganizationList <MemberOrganizationData>();
 }