protected UserProfileEditBase(UserProfile userProfile) { Role = userProfile.Role; UserId = userProfile.UserId; UserName = userProfile.UserName; LyonessId = userProfile.LyonessId; Title = userProfile.Title; LastName = userProfile.LastName; FirstName = userProfile.FirstName; City = userProfile.City; DistrictId = userProfile.DistrictId; PhoneNumberPrefix1Id = userProfile.PhoneNumberPrefix1Id; PhoneNumber1 = userProfile.PhoneNumber1; PhoneNumberPrefix2Id = userProfile.PhoneNumberPrefix2Id; PhoneNumber2 = userProfile.PhoneNumber2; Email1 = userProfile.Email1; Email2 = userProfile.Email2; Skype = userProfile.Skype; SmsEmail = userProfile.SmsEmail; UseMail = userProfile.UseMail; UseSms = userProfile.UseSms; GoogleCredentialsJson = userProfile.GoogleCredentialsJson; GoogleCalendarId = userProfile.GoogleCalendarId; UseGoogleCalendar = userProfile.UseGoogleCalendar; PremiumMembershipGranted = userProfile.PremiumMembershipGranted; MspCoach = userProfile.MspCoach; Ca = userProfile.Ca; Presenting = userProfile.Presenting; Tasks = userProfile.Tasks; Note = userProfile.Note; LCIDDropDownList = userProfile.LCID; AutomaticLogoutInterval = userProfile.AutomaticLogoutInterval; ClaAccessAmountWithCurrency = userProfile.ClaAccessAmountWithCurrency; ClaAccessYearlyAccesWithCurrency = userProfile.ClaAccessYearlyAccesWithCurrency; ClaAccessExpired = userProfile.IsAdmin ? null : userProfile.ClaAccessExpired; }
public static string GetAutomaticLogoutIntervalTypeDisplayName(AutomaticLogoutIntervalType automaticLogoutIntervalType) { switch (automaticLogoutIntervalType) { case AutomaticLogoutIntervalType.TenMinutes: return ListItemsResource.AutomaticLogoutIntervalType_TenMinutes; case AutomaticLogoutIntervalType.TwentyMinutes: return ListItemsResource.AutomaticLogoutIntervalType_TwentyMinutes; case AutomaticLogoutIntervalType.ThirtyMinutes: return ListItemsResource.AutomaticLogoutIntervalType_ThirtyMinutes; case AutomaticLogoutIntervalType.SixtyMinutes: return ListItemsResource.AutomaticLogoutIntervalType_SixtyMinutes; default: throw new ArgumentOutOfRangeException("automaticLogoutIntervalType"); } }