Add a view to show movies of a given user (or all movies if no user is specified).
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
package com.camillepradel.movierecommender.model;
|
||||
|
||||
public class Genre {
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
|
||||
public Genre(int id, String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.camillepradel.movierecommender.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Movie {
|
||||
|
||||
private int id;
|
||||
private String title;
|
||||
private List<Genre> genres;
|
||||
|
||||
public Movie(int id, String title, List<Genre> genres) {
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.genres = genres;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public List<Genre> getGenres() {
|
||||
return this.genres;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user