diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Artwork.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Artwork.java index 95d32f2ed..b106d89de 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Artwork.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Artwork.java @@ -33,10 +33,10 @@ public class Artwork implements Comparable { public static String ARTWORK_SIZE_PROFILE = "profile"; public static String[] ARTWORK_SIZES = {ARTWORK_SIZE_ORIGINAL, ARTWORK_SIZE_THUMB, ARTWORK_SIZE_MID, ARTWORK_SIZE_COVER, ARTWORK_SIZE_POSTER, ARTWORK_SIZE_PROFILE}; - public String type; - public String size; - public String url; - public int id; + private String type; + private String size; + private String url; + private int id; public String[] getArtworkSizes() { return ARTWORK_SIZES; diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Category.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Category.java index a32615fc1..4f58a8990 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Category.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Category.java @@ -10,7 +10,6 @@ * For any reuse or distribution, you must make clear to others the * license terms of this work. */ - package com.moviejukebox.themoviedb.model; /** @@ -20,31 +19,32 @@ package com.moviejukebox.themoviedb.model; * */ public class Category { - public String type; - public String name; - public String url; - public String id; - + + private String type; + private String name; + private String url; + private String id; + public String getId() { return id; } - + public String getName() { return name; } - + public String getType() { return type; } - + public String getUrl() { return url; } - + public void setId(String id) { this.id = id; } - + public void setName(String name) { this.name = name; } diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Country.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Country.java index a37dd2cbe..55e64a9e4 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Country.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Country.java @@ -10,7 +10,6 @@ * For any reuse or distribution, you must make clear to others the * license terms of this work. */ - package com.moviejukebox.themoviedb.model; /** @@ -20,14 +19,15 @@ package com.moviejukebox.themoviedb.model; * */ public class Country { - public String url; - public String name; - public String code; - + + private String url; + private String name; + private String code; + public String getUrl() { return url; } - + public void setUrl(String url) { this.url = url; } @@ -35,15 +35,15 @@ public class Country { public String getName() { return name; } - + public void setName(String name) { this.name = name; } - + public String getCode() { return code; } - + public void setCode(String code) { this.code = code; } diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Person.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Person.java index 8a9e58c5d..de1f70457 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Person.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Person.java @@ -28,7 +28,7 @@ import com.moviejukebox.themoviedb.tools.ModelTools; * */ public class Person extends ModelTools { - private static String UNKNOWN = MovieDB.UNKNOWN; + private static final String UNKNOWN = MovieDB.UNKNOWN; private String name = UNKNOWN; private String character = UNKNOWN; diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java index a1601a08c..322e6d1d8 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java @@ -10,7 +10,6 @@ * For any reuse or distribution, you must make clear to others the * license terms of this work. */ - package com.moviejukebox.themoviedb.model; /** @@ -20,10 +19,11 @@ package com.moviejukebox.themoviedb.model; * */ public class Studio { - public String name; - public String url; - public String id; - + + private String name; + private String url; + private String id; + public String getId() { return id; } @@ -35,15 +35,15 @@ public class Studio { public String getName() { return name; } - + public void setName(String name) { this.name = name; } - + public String getUrl() { return url; } - + public void setUrl(String url) { this.url = url; }