-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.h
More file actions
45 lines (41 loc) · 1.47 KB
/
user.h
File metadata and controls
45 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Created by ghazal on 1/23/25.
//
#ifndef NEXTFLICK_USER_H
#define NEXTFLICK_USER_H
#include <iostream>
#include "Globals.h"
#include "GlobalsHash.h"
#include "GlobalSparset.h"
using namespace std;
class user{
protected:
int id;
string username;
string password;
vector<int> favoriteMovies;
public:
user(int Id, string Username, string Password): id(Id),username(Username),password(Password){}
void recommend();
void radixSort(vector<pair<int, int>>& data, int maxKey);
vector<pair<int,int>> SortYear();
vector<pair<int, int>> SortScore();
vector<const Media*> filterByGenre(const string& genre);
vector<const Media*> filterByGenreAndRating(const string& genre, float minRating);
vector<const Media*> filterByLanguage(const string& language);
vector<const Media*> filterByCountry(const string& country);
vector<const Media*> filterByRating(float minRating);
vector<const Media*> filterByYear(int year);
vector<const Media*> combineFilters(const vector<vector<const Media*>>& filters);
void userInterfaceFilter();
void privilege();
void addFavoriteMovies();
void deleteFromFavoriteMovies();
void deleteFromFavoriteMovies1(string name);
void merge(std::vector<int>& vec, int left, int mid, int right);
void mergeSort(std::vector<int>& vec, int left, int right);
void showFavoriteMovies();
string getUsername(){return username;}
string getPassword(){return password;}
};
#endif //NEXTFLICK_USER_H