Exemple #1
0
 public void SignOut()
 {
     CurrentUser    = null;
     CurrentUserDTO = null;
     CurrentUserID  = -1;
     CurrentUserKey = null;
 }
Exemple #2
0
        public async Task <IUserProfile> LoadUserProfileFromDTOAsync(IUserMiniProfileDTO userProfileDTO)
        {
            var user = await webServices.GetUserProfilesAsync();

            var ToBeRetrieved = user.FirstOrDefault(o => o.ID == userProfileDTO.ID);

            return(ToBeRetrieved);
        }
Exemple #3
0
        public async void FriendRequestGenerator(IUserMiniProfileDTO From, int ToID)
        {
            var item = await webServices.GetUserMiniProfileDTOsAsync();

            IUserProfile userProfile = await profileManager.LoadUserProfileFromIDAsync(ToID);

            var UserDTO = item.FirstOrDefault(o => o.ID == userProfile.ID);

            INotification notification = new Notification()
            {
                FromUser  = From,
                ToUser    = UserDTO,
                IsReacted = false,
                IsSeen    = false
            };
            await webServices.AddItemToDatabaseAsync <INotification>(notification, DataType.Notification);

            //TODO: Finish this off
        }
Exemple #4
0
 public void SendNotification(NotificationType type, IUserMiniProfileDTO DestinationUser)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public List <INotificationsManager> LoadUserNotifications(IUserMiniProfileDTO userMiniProfileDTO)
 {
     throw new NotImplementedException();
 }
Exemple #6
0
 public List <IMessage> LoadUserMessages(IUserMiniProfileDTO userMiniProfileDTO)
 {
     throw new NotImplementedException();
 }
Exemple #7
0
 public void AddMessageToConverstation(IUserMiniProfileDTO MessageFrom, IUserMiniProfileDTO MessageTo, string text)
 {
     throw new NotImplementedException();
 }