From 9be20913e77436bffa8c7b4f0f9846575a76e19d Mon Sep 17 00:00:00 2001 From: FarimaKafi <126360004+FarimaKafi@users.noreply.github.com> Date: Fri, 17 Mar 2023 16:55:40 +0330 Subject: [PATCH 1/5] do main work --- build.gradle | 3 + src/main/java/org/example/Main.java | 117 +++++++++++++++++ src/main/java/org/example/Movie.java | 14 +- src/main/java/org/example/NetflixService.java | 13 ++ src/main/java/org/example/TVShow.java | 77 +++++++++++ src/main/java/org/example/User.java | 124 +++++++++++++++++- 6 files changed, 344 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 3cae2d7..2cf926e 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,9 @@ repositories { dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' + // https://mvnrepository.com/artifact/org.json/json + implementation group: 'org.json', name: 'json', version: '20230227' + } test { diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index 0718b5a..16c21e0 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -3,12 +3,129 @@ public class Main { //don't limit yourself to our template *** + private static NetflixService netflixService = new NetflixService(); + private static User currentUser = null; + private static Scanner scanner = new Scanner(System.in); + public static void main(String[] args) { + // Creating some sample users + netflixService.createAccount("user1", "password1"); + netflixService.createAccount("user2", "password2"); + runMenu(); } public static void runMenu(){ //TODO: + int choice = 0; + do { + System.out.println("Netflix Menu:"); + System.out.println("1. Create Account"); + System.out.println("2. Login"); + System.out.println("3. Logout"); + System.out.println("4. Search TV Shows by Title"); + System.out.println("5. Search TV Shows by Genre"); + System.out.println("6. Search TV Shows by Release Year"); + System.out.println("7. Add TV Show"); + System.out.println("8. Add Movie"); + System.out.println("9. Exit"); + System.out.print("Enter your choice: "); + choice = scanner.nextInt(); + scanner.nextLine(); // Consume the leftover newline character + + switch (choice) { + case 1: + System.out.print("Enter username: "); + String username = scanner.nextLine(); + System.out.print("Enter password: "); + String password = scanner.nextLine(); + netflixService.createAccount(username, password); + break; + case 2: + System.out.print("Enter username: "); + String loginUsername = scanner.nextLine(); + System.out.print("Enter password: "); + String loginPassword = scanner.nextLine(); + boolean loginSuccess = netflixService.login(loginUsername, loginPassword); + if (loginSuccess) { + currentUser = netflixService.getCurrentUser(); + System.out.println("Welcome, " + currentUser.getUsername() + "!"); + } else { + System.out.println("Invalid username or password."); + } + break; + case 3: + if (currentUser != null) { + netflixService.logout(); + currentUser = null; + System.out.println("Logged out successfully."); + } else { + System.out.println("You are not logged in."); + } + break; + case 4: + System.out.print("Enter title: "); + String title = scanner.nextLine(); + netflixService.searchByTitle(title); + break; + case 5: + System.out.print("Enter genre: "); + String genre = scanner.nextLine(); + netflixService.searchByGenre(genre); + break; + case 6: + System.out.print("Enter release year: "); + int year = scanner.nextInt(); + netflixService.searchByReleaseYear(year); + break; + case 7: + if (currentUser != null) { + System.out.print("Enter title: "); + String tvShowTitle = scanner.nextLine(); + System.out.print("Enter genre: "); + String tvShowGenre = scanner.nextLine(); + System.out.print("Enter release year: "); + int tvShowYear = scanner.nextInt(); + scanner.nextLine(); // Consume the leftover newline character + System.out.print("Enter duration: "); + String tvShowDuration = scanner.nextLine(); + System.out.print("Enter rating: "); + String tvShowRating = scanner.nextLine(); + System.out.print("Enter cast (separated by commas): "); + String castString = scanner.nextLine(); + String[] castArray = castString.split(","); + netflixService.addTVShow(new TVShow(tvShowTitle, tvShowGenre, tvShowYear, tvShowDuration, tvShowRating, + } + case 8: + if (currentUser != null) { + System.out.println("Logging out..."); + netflixService.logout(); + currentUser = null; + } else { + System.out.println("You are not logged in!"); + } + break; + + case 9: + if (currentUser != null) { + System.out.println("You are already logged in!"); + } else { + System.out.print("Enter your username: "); + String username = scanner.next(); + System.out.print("Enter your password: "); + String password = scanner.next(); + + if (netflixService.login(username, password)) { + System.out.println("Login successful!"); + currentUser = netflixService.getUser(); + } else { + System.out.println("Invalid username or password!"); + } + } + break; + + } + } } } diff --git a/src/main/java/org/example/Movie.java b/src/main/java/org/example/Movie.java index 081ba70..d8b743b 100644 --- a/src/main/java/org/example/Movie.java +++ b/src/main/java/org/example/Movie.java @@ -6,8 +6,20 @@ class Movie extends TVShow { /* *Movie is extended from TVShow and has extra attribute length. */ + private final ArrayList length; public Movie() { - super(); + super( title, genre, releaseYear, duration, rating , cast); + this.length = length; + } + public ArrayList getLength() { + return length; + } + @Override + public String toString() { + return "Movie{title=" + getTitle() + " genre="+getGenre()+ " releaseYear=" + getReleaseYear()+ + " duration="+getDuration()+" rating="+getRating()+ + " cast="+getCast() + " length=" + getLength() + '}'; } } + diff --git a/src/main/java/org/example/NetflixService.java b/src/main/java/org/example/NetflixService.java index 5345a3e..ba7328c 100644 --- a/src/main/java/org/example/NetflixService.java +++ b/src/main/java/org/example/NetflixService.java @@ -7,13 +7,26 @@ class NetflixService { *The NetflixService should have an Arraylist of users, tv shows and movies. *The NetflixService should have a User object which represents current user. */ + ArrayList userList; + ArrayList tvShowList; + ArrayList movieList; + private User user; + + public NetflixService(){ + this.userList = new ArrayList<>(); + this.tvShowList = new ArrayList<>(); + this.movieList= new ArrayList<>(); + } + public void addTVShow(TVShow tvShow){ // Implement add tv show logic here + tvShowList.add(tvShow); } public void addMovie(Movie movie){ // Implement add movie logic here + movieList.add(movie); } public void createAccount(String username, String password) { diff --git a/src/main/java/org/example/TVShow.java b/src/main/java/org/example/TVShow.java index 005c218..e897640 100644 --- a/src/main/java/org/example/TVShow.java +++ b/src/main/java/org/example/TVShow.java @@ -7,5 +7,82 @@ class TVShow { *The TVShow should have a title , genre, release year, duration and a rating. *The TVShow should have an ArrayList of the cast. */ + private String title; + private String genre; + private int releaseYear; + private String duration; + private String rating; + ArrayList cast; + + public TVShow(String title , String genre ,int releaseYear , String duration , String rating, + ArrayList cast){ + this.title = title; + this.genre = genre; + this.releaseYear = releaseYear; + this.duration = duration; + this.rating = rating; + this.cast = cast; + } + + + public String getTitle() { + return title; + } + + public String getGenre() { + return genre; + } + + public int getReleaseYear() { + return releaseYear; + } + + public String getDuration() { + return duration; + } + + public String getRating() { + return rating; + } + + public ArrayList getCast() { + return cast; + } + + public void setTitle(String title) { + this.title = title; + } + + public void setGenre(String genre) { + this.genre = genre; + } + + public void setReleaseYear(int releaseYear) { + this.releaseYear = releaseYear; + } + + public void setDuration(String duration) { + this.duration = duration; + } + + public void setRating(String rating) { + this.rating = rating; + } + + public void setCast(ArrayList cast) { + this.cast = cast; + } + + @Override + public String toString() { + return "TVShow{" + + "title='" + title + '\'' + + ", genre='" + genre + '\'' + + ", releaseYear=" + releaseYear + + ", duration='" + duration + '\'' + + ", rating='" + rating + '\'' + + ", cast=" + cast + + '}'; + } } diff --git a/src/main/java/org/example/User.java b/src/main/java/org/example/User.java index 538e12b..5dd75ba 100644 --- a/src/main/java/org/example/User.java +++ b/src/main/java/org/example/User.java @@ -9,28 +9,146 @@ class User { * FUNCTION: the user should have a function to watch a show and add it to watch history. * *** NOTE: All search functions in user are for searching in favorite shows *** */ + private String username; + private String password; + ArrayList userList; + ArrayList favoriteShowList ; + ArrayList watchHistoryList ; + + public User(String username , String password){ + this.username =username; + this.password =password; + this.favoriteShowList = new ArrayList<>(); + this.watchHistoryList = new ArrayList<>(); + this.userList = new ArrayList<>(); + } + public String getUsername() { + return username; + } + + public String getPassword() { + return password; + } + + public void setUsername(String username) { + this.username = username; + } + + public void setPassword(String password) { + this.password = password; + } + + public void watchShow(TVShow tvShow){ + watchHistoryList.add(tvShow); + } + + public ArrayList getWatchHistoryList() { + return watchHistoryList; + } + + public void setWatchHistoryList(ArrayList watchHistoryList) { + this.watchHistoryList = watchHistoryList; + } public ArrayList searchByTitle(String title) { // Implement search by title in favorite shows logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : favoriteShowList) + { + if(title.compareTo(tvShow.getTitle())== 0) + { + result.add(tvShow); + } + } + return result; } public ArrayList searchByGenre(String genre) { // Implement search by genre in favorite shows logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : favoriteShowList) + { + if(genre.compareTo(tvShow.getGenre())== 0) + { + result.add(tvShow); + } + } + return result; } public ArrayList searchByReleaseYear(int year) { // Implement search by release year in favorite shows logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : favoriteShowList) + { //cause this is int and can't use compare method + if(year == tvShow.getReleaseYear()) + { + result.add(tvShow); + } + } + return result; } public void addToFavorites(TVShow show) { // Implement add to favorites logic here + favoriteShowList.add(show); + System.out.println("ADD SUCCESSFULLY"); + } + + public ArrayList getFavoriteShowList() { + return favoriteShowList; + } + + public void setFavoriteShowList(ArrayList favoriteShowList) { + + this.favoriteShowList = favoriteShowList; } public void viewFavorites() { // Implement view favorites logic here + System.out.print("Your favorites are :\n" + favoriteShowList); } + public ArrayList getRecommendations() { // Implement get recommendations logic here + System.out.println("************************* Suggested Movie *************************"); + if(genre.equals("Mystery")){ + System.out.print("The Woman In the Window\nMurder Mystery\nKnives out\n"); + } + if(genre.equals("Psychology/Fiction")){ + System.out.print("Seven\nFight Club\nBlack Swan\n"); + } + System.out.println("************************* Suggested TV Show *************************"); + if(genre.equals("Mystery")){ + System.out.print("Sharp Objects\nDefending Jacob\nThe Undoing\n"); + } + if(genre.equals("Psychology/Fiction")){ + System.out.print("Lost\nDark\nStranger Things\n"); + } return null; } + + public void addHistory(TVShow tvShow){ + watchHistoryList.add(tvShow); + } + public void addFavorit(TVShow tvShow){ + favoriteShowList.add(tvShow); + } + public void addHistory(Movie movie){ + watchHistoryList.add(movie); + } + public void addFavorit(Movie movie){ + favoriteShowList.add(movie); + } + + + + @Override + public String toString() { + return "User{" + + "username='" + username + '\'' + + ", password='" + password + '\'' + + ", favoriteShowList=" + favoriteShowList + + ", watchHistoryList=" + watchHistoryList + + ", userList=" + userList + + '}'; + } + } From 9a1d5cf0ad26c0ac63b02a943e72c13bad4b266b Mon Sep 17 00:00:00 2001 From: FarimaKafi <126360004+FarimaKafi@users.noreply.github.com> Date: Fri, 17 Mar 2023 17:07:16 +0330 Subject: [PATCH 2/5] complete NetflixService class --- src/main/java/org/example/NetflixService.java | 54 +++++++++++++++++-- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/example/NetflixService.java b/src/main/java/org/example/NetflixService.java index ba7328c..643acbc 100644 --- a/src/main/java/org/example/NetflixService.java +++ b/src/main/java/org/example/NetflixService.java @@ -18,6 +18,10 @@ public NetflixService(){ this.movieList= new ArrayList<>(); } + public void addUser(User user) { + userList.add(user); + } + public void addTVShow(TVShow tvShow){ // Implement add tv show logic here @@ -31,30 +35,74 @@ public void addMovie(Movie movie){ public void createAccount(String username, String password) { // Implement create account logic here + User user = new User(username, password); + addUser(user); } public boolean login(String username, String password) { // Implement login logic here + for (User user : userList) { + if (user.getUsername().equals(username) && user.getPassword().equals(password)) { + this.user = user; + return true; + } + } return false; } public void logout() { // Implement logout logic here + user = null; } public ArrayList searchByTitle(String title) { // Implement search by title logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : tvShowList) { + if (tvShow.getTitle().equals(title)) { + result.add(tvShow); + } + } + return result; } public ArrayList searchByGenre(String genre) { // Implement search by genre logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : tvShowList) { + if (tvShow.getGenre().equals(genre)) { + result.add(tvShow); + } + } + return result; } public ArrayList searchByReleaseYear(int year) { // Implement search by release year logic here - return null; + ArrayList result = new ArrayList<>(); + for (TVShow tvShow : tvShowList) { + if (tvShow.getReleaseYear() == year) { + result.add(tvShow); + } + } + return result; + } + public ArrayList searchMoviesByLength(int length) { + ArrayList result = new ArrayList<>(); + for (Movie movie : movieList) { + if (movie.getLength() == length) { + result.add(movie); + } + } + return result; + } + + public User getUser() { + return user; + } + + public void setUser(User user) { + this.user = user; } From 74a16887b1c11a26c4da7c9a1fcd6c5afded5d24 Mon Sep 17 00:00:00 2001 From: FarimaKafi <126360004+FarimaKafi@users.noreply.github.com> Date: Fri, 17 Mar 2023 20:58:50 +0330 Subject: [PATCH 3/5] fix bugs --- src/main/java/org/example/TVShow.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/example/TVShow.java b/src/main/java/org/example/TVShow.java index e897640..5576cd8 100644 --- a/src/main/java/org/example/TVShow.java +++ b/src/main/java/org/example/TVShow.java @@ -1,6 +1,7 @@ package org.example; import java.util.ArrayList; +import java.util.Scanner; class TVShow { /* @@ -14,8 +15,8 @@ class TVShow { private String rating; ArrayList cast; - public TVShow(String title , String genre ,int releaseYear , String duration , String rating, - ArrayList cast){ + public TVShow(String title , String genre ,int releaseYear , String duration , String rating , ArrayList cast) + { this.title = title; this.genre = genre; this.releaseYear = releaseYear; @@ -24,6 +25,15 @@ public TVShow(String title , String genre ,int releaseYear , String duration , S this.cast = cast; } + public TVShow() { + this.title = ""; + this.genre = ""; + this.releaseYear = 0; + this.duration = ""; + this.rating = ""; + this.cast = new ArrayList<>(); + } + public String getTitle() { return title; From ec87cc7a6837e7f412e9de37a1795efa0fbd1d68 Mon Sep 17 00:00:00 2001 From: FarimaKafi <126360004+FarimaKafi@users.noreply.github.com> Date: Fri, 17 Mar 2023 20:59:12 +0330 Subject: [PATCH 4/5] fix bugs --- src/main/java/org/example/Main.java | 22 ++++++--- src/main/java/org/example/Movie.java | 5 +- src/main/java/org/example/NetflixService.java | 2 +- src/main/java/org/example/User.java | 47 ++++++++++++++++--- 4 files changed, 60 insertions(+), 16 deletions(-) diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index 16c21e0..d2c0051 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -1,4 +1,6 @@ package org.example; +import java.util.ArrayList; +import java.util.Scanner; public class Main { //don't limit yourself to our template *** @@ -19,7 +21,8 @@ public static void main(String[] args) { public static void runMenu(){ //TODO: int choice = 0; - do { + while (choice == 0) + { System.out.println("Netflix Menu:"); System.out.println("1. Create Account"); System.out.println("2. Login"); @@ -49,7 +52,7 @@ public static void runMenu(){ String loginPassword = scanner.nextLine(); boolean loginSuccess = netflixService.login(loginUsername, loginPassword); if (loginSuccess) { - currentUser = netflixService.getCurrentUser(); + currentUser = netflixService.getUser(); System.out.println("Welcome, " + currentUser.getUsername() + "!"); } else { System.out.println("Invalid username or password."); @@ -92,11 +95,16 @@ public static void runMenu(){ String tvShowDuration = scanner.nextLine(); System.out.print("Enter rating: "); String tvShowRating = scanner.nextLine(); - System.out.print("Enter cast (separated by commas): "); + /*System.out.print("Enter cast (separated by commas): "); String castString = scanner.nextLine(); - String[] castArray = castString.split(","); - netflixService.addTVShow(new TVShow(tvShowTitle, tvShowGenre, tvShowYear, tvShowDuration, tvShowRating, + String[] castArray = castString.split(",");*/ + ArrayList cast = null; + netflixService.addTVShow(new TVShow(tvShowTitle, tvShowGenre, tvShowYear, tvShowDuration, tvShowRating, cast)); + TVShow tvShow = null; + netflixService.addTVShow(tvShow); + System.out.println("TV show added successfully."); } + case 8: if (currentUser != null) { System.out.println("Logging out..."); @@ -112,9 +120,9 @@ public static void runMenu(){ System.out.println("You are already logged in!"); } else { System.out.print("Enter your username: "); - String username = scanner.next(); + username = scanner.next(); System.out.print("Enter your password: "); - String password = scanner.next(); + password = scanner.next(); if (netflixService.login(username, password)) { System.out.println("Login successful!"); diff --git a/src/main/java/org/example/Movie.java b/src/main/java/org/example/Movie.java index d8b743b..5da3b56 100644 --- a/src/main/java/org/example/Movie.java +++ b/src/main/java/org/example/Movie.java @@ -7,14 +7,15 @@ class Movie extends TVShow { *Movie is extended from TVShow and has extra attribute length. */ private final ArrayList length; - public Movie() + public Movie(String title, String genre, int releaseYear, String duration, String rating, ArrayList cast, ArrayList length) { - super( title, genre, releaseYear, duration, rating , cast); + super(title, genre, releaseYear, duration, rating, cast); this.length = length; } public ArrayList getLength() { return length; } + @Override public String toString() { return "Movie{title=" + getTitle() + " genre="+getGenre()+ " releaseYear=" + getReleaseYear()+ diff --git a/src/main/java/org/example/NetflixService.java b/src/main/java/org/example/NetflixService.java index 643acbc..05d59f9 100644 --- a/src/main/java/org/example/NetflixService.java +++ b/src/main/java/org/example/NetflixService.java @@ -87,7 +87,7 @@ public ArrayList searchByReleaseYear(int year) { } return result; } - public ArrayList searchMoviesByLength(int length) { + public ArrayList searchMoviesByLength(ArrayList length) { ArrayList result = new ArrayList<>(); for (Movie movie : movieList) { if (movie.getLength() == length) { diff --git a/src/main/java/org/example/User.java b/src/main/java/org/example/User.java index 5dd75ba..3a9ab7c 100644 --- a/src/main/java/org/example/User.java +++ b/src/main/java/org/example/User.java @@ -106,24 +106,59 @@ public void viewFavorites() { System.out.print("Your favorites are :\n" + favoriteShowList); } - public ArrayList getRecommendations() { + /*public ArrayList getRecommendations() { // Implement get recommendations logic here - System.out.println("************************* Suggested Movie *************************"); - if(genre.equals("Mystery")){ + /*System.out.println(" Suggested Movie "); + if(getGenre().equals("Mystery")){ System.out.print("The Woman In the Window\nMurder Mystery\nKnives out\n"); } if(genre.equals("Psychology/Fiction")){ System.out.print("Seven\nFight Club\nBlack Swan\n"); } - System.out.println("************************* Suggested TV Show *************************"); + System.out.println(" Suggested TV Show "); if(genre.equals("Mystery")){ System.out.print("Sharp Objects\nDefending Jacob\nThe Undoing\n"); } if(genre.equals("Psychology/Fiction")){ System.out.print("Lost\nDark\nStranger Things\n"); } - return null; - } + return null;*/ + /*private NetflixService netflixService = new NetflixService(); + private User currentUser = null; + + ArrayList recommendedShows = new ArrayList<>(); + + if (currentUser != null) { + // Get the user's watch history + ArrayList watchHistory = currentUser.getWatchHistoryList(); + + // Get all TV shows from the Netflix service + ArrayList allShows = netflixService.getTvShows(); + + // For each show in the user's watch history, add all shows in the same genre to the recommended list + for (TVShow watchedShow : watchHistory) { + String genre = watchedShow.getGenre(); + for (TVShow show : allShows) { + if (show.getGenre().equals(genre) && !watchHistory.contains(show) && !recommendedShows.contains(show)) { + recommendedShows.add(show); + } + } + } + + // If there are no shows recommended based on genre, add the top-rated shows + if (recommendedShows.isEmpty()) { + for (TVShow show : allShows) { + if (!watchHistory.contains(show) && show.getRating().equals("5")) { + recommendedShows.add(show); + } + } + } + } + + return recommendedShows; + } + + }*/ public void addHistory(TVShow tvShow){ watchHistoryList.add(tvShow); From fd72305ac1dd5dbe31cd84efad503ed33733561e Mon Sep 17 00:00:00 2001 From: FarimaKafi <126360004+FarimaKafi@users.noreply.github.com> Date: Fri, 17 Mar 2023 22:39:09 +0330 Subject: [PATCH 5/5] push --- src/main/java/org/example/Main.java | 1 - src/main/java/org/example/Movie.java | 1 + src/main/java/org/example/NetflixService.java | 1 - src/main/java/org/example/TVShow.java | 1 + src/main/java/org/example/User.java | 1 + 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index d2c0051..643b2d0 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -9,7 +9,6 @@ public class Main { private static User currentUser = null; private static Scanner scanner = new Scanner(System.in); - public static void main(String[] args) { // Creating some sample users netflixService.createAccount("user1", "password1"); diff --git a/src/main/java/org/example/Movie.java b/src/main/java/org/example/Movie.java index 5da3b56..1d48412 100644 --- a/src/main/java/org/example/Movie.java +++ b/src/main/java/org/example/Movie.java @@ -12,6 +12,7 @@ public Movie(String title, String genre, int releaseYear, String duration, Strin super(title, genre, releaseYear, duration, rating, cast); this.length = length; } + public ArrayList getLength() { return length; } diff --git a/src/main/java/org/example/NetflixService.java b/src/main/java/org/example/NetflixService.java index 05d59f9..a9d4358 100644 --- a/src/main/java/org/example/NetflixService.java +++ b/src/main/java/org/example/NetflixService.java @@ -105,6 +105,5 @@ public void setUser(User user) { this.user = user; } - } diff --git a/src/main/java/org/example/TVShow.java b/src/main/java/org/example/TVShow.java index 5576cd8..344f21b 100644 --- a/src/main/java/org/example/TVShow.java +++ b/src/main/java/org/example/TVShow.java @@ -8,6 +8,7 @@ class TVShow { *The TVShow should have a title , genre, release year, duration and a rating. *The TVShow should have an ArrayList of the cast. */ + private String title; private String genre; private int releaseYear; diff --git a/src/main/java/org/example/User.java b/src/main/java/org/example/User.java index 3a9ab7c..66de039 100644 --- a/src/main/java/org/example/User.java +++ b/src/main/java/org/example/User.java @@ -9,6 +9,7 @@ class User { * FUNCTION: the user should have a function to watch a show and add it to watch history. * *** NOTE: All search functions in user are for searching in favorite shows *** */ + private String username; private String password; ArrayList userList;