public void SignOut() { CurrentUser = null; CurrentUserDTO = null; CurrentUserID = -1; CurrentUserKey = null; }
public async Task <IUserProfile> LoadUserProfileFromDTOAsync(IUserMiniProfileDTO userProfileDTO) { var user = await webServices.GetUserProfilesAsync(); var ToBeRetrieved = user.FirstOrDefault(o => o.ID == userProfileDTO.ID); return(ToBeRetrieved); }
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 }
public void SendNotification(NotificationType type, IUserMiniProfileDTO DestinationUser) { throw new NotImplementedException(); }
public List <INotificationsManager> LoadUserNotifications(IUserMiniProfileDTO userMiniProfileDTO) { throw new NotImplementedException(); }
public List <IMessage> LoadUserMessages(IUserMiniProfileDTO userMiniProfileDTO) { throw new NotImplementedException(); }
public void AddMessageToConverstation(IUserMiniProfileDTO MessageFrom, IUserMiniProfileDTO MessageTo, string text) { throw new NotImplementedException(); }