Beispiel #1
0
 public ProfessionalProfileViewModel(IlevusUser user)
 {
     Id                     = user.Id;
     this.BirthDate         = user.Birthdate.ToString("dd/MM/yyyy");
     Professional           = user.Professional ?? new UserProfessionalEntity();
     Professional.BirthDate = this.BirthDate;
 }
Beispiel #2
0
        public UserInfoViewModel(IlevusUser user)
        {
            Id              = user.Id;
            Email           = user.Email;
            EmailChange     = user.EmailChange;
            EmailConfirmed  = user.EmailConfirmed;
            Birthdate       = user.Birthdate;
            Creation        = user.Creation;
            Culture         = user.Culture;
            EmailVisibility = user.EmailVisibility;
            Image           = user.Image;
            Name            = user.Name;
            PhoneNumber     = user.PhoneNumber;
            Sex             = user.Sex;
            Status          = user.Status;
            Surname         = user.Surname;
            Type            = user.Type;

            Favorites = user.Favorites;

            ScheduleConfig = user.ScheduleConfig;
            Professional   = new ProfessionalProfileViewModel(user);
            Premium        = user.Premium;
            IsProfessional = user.IsProfessional;
        }
Beispiel #3
0
 public ChatConversationViewModel(ChatConversation conversation, IlevusUser destination)
 {
     Id          = conversation.Id;
     Messages    = conversation.Messages;
     Day         = conversation.Day;
     Destination = new PublicProfileViewModel(destination);
 }
Beispiel #4
0
 public CoachingProcessViewModel(CoachingProcess process, IlevusUser coach, IlevusUser coachee)
 {
     Id              = process.Id;
     CoachComments   = process.CoachComments;
     CoacheeComments = process.CoacheeComments;
     Creation        = process.Creation;
     Started         = process.Started;
     Finished        = process.Finished;
     LastModified    = process.LastModified;
     Objectives      = process.Objectives;
     Testimony       = process.Testimony;
     Rating          = process.Rating;
     Status          = process.Status;
     Sessions        = process.Sessions;
     Steps           = process.Steps;
     Coach           = new PublicProfileViewModel(coach);
     Coachee         = new PublicProfileViewModel(coachee);
 }
Beispiel #5
0
        public PublicProfileViewModel(IlevusUser user, int qtdeAssessments = 0, int mediaAssessments = 0)
        {
            Id          = user.Id;
            Creation    = user.Creation;
            Culture     = user.Culture;
            Image       = user.Image;
            Name        = user.Name;
            Sex         = user.Sex;
            Surname     = user.Surname;
            PhoneNumber = user.PhoneNumber;

            Assessments = qtdeAssessments;
            MediaRating = mediaAssessments;

            ScheduleConfig = user.ScheduleConfig;
            Professional   = new ProfessionalProfileViewModel(user);

            LinkedinProfileUrl = user.LinkedinProfileUrl;

            EmailVisibility = user.EmailVisibility;
            Type            = user.Type;
        }