Add a view to show movies of a given user (or all movies if no user is specified).

This commit is contained in:
Camille31
2016-11-13 23:16:03 +01:00
parent b1dd0dd0bb
commit 5284966d4a
5 changed files with 116 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}