Exemplo n.º 1
0
 public ChatConversationViewModel(ChatConversation conversation, IlevusUser destination)
 {
     Id          = conversation.Id;
     Messages    = conversation.Messages;
     Day         = conversation.Day;
     Destination = new PublicProfileViewModel(destination);
 }
Exemplo n.º 2
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);
 }