Esempio n. 1
0
        public ConnectionProfile(UserInfoWithAvatar connection)
        {
            var viewModel = new ConnectionProfileViewModel(connection);

            BindingContext = viewModel;
            InitializeComponent();
        }
Esempio n. 2
0
 public void ViewMessagesForSelectedMatch(UserInfoWithAvatar match)
 {
     Messages.Clear();
     if (match != null)
     {
         AllMessagesForUser.Where(m => m.SenderId == match.UserInfo.User.UserId || m.RecipientId == match.UserInfo.User.UserId)
         .OrderBy(m => m.LastUpdateTime).ToList().ForEach(m => Messages.Add(m));
     }
 }
 public ConnectionProfileViewModel(UserInfoWithAvatar userProfile)
 {
     AcademicInterests    = new ObservableCollection <AcademicInterest>(userProfile.UserInfo.AcademicInterests);
     ProfileName          = userProfile.UserInfo.User.Username;
     FullName             = userProfile.UserInfo.User.FullName;
     IsMentor             = userProfile.UserInfo.User.UserType.ToLower().Equals("teacher");
     IsStudent            = !IsMentor;
     IsCurrentUserMentor  = UserInfo.User.UserType.ToLower().Equals("teacher");
     IsCurrentUserStudent = !IsCurrentUserMentor;
     University           = userProfile.UserInfo.User.University;
     Classification       = userProfile.UserInfo.User.UserType;
     EducationLevel       = userProfile.UserInfo.User.EducationLevel;
     AvatarImage          = userProfile.AvatarImage;
 }
Esempio n. 4
0
 public void ViewMentorProfile(UserInfoWithAvatar mentorToView)
 {
     OnViewMentorProfile(mentorToView);
 }
Esempio n. 5
0
 public void AddConnection(UserInfoWithAvatar mentor)
 {
     OnAddConnection(mentor);
 }
Esempio n. 6
0
 public void RespondToNotification(UserInfoWithAvatar notificationUserInfo)
 {
     OnRespondToNotification(notificationUserInfo.UserInfo.User.UserId, notificationUserInfo.UserInfo.User.Username);
 }
 public void ViewProfile(UserInfoWithAvatar connection)
 {
     OnViewConnectionProfile(connection);
 }