package com.jakewharton.trakt.entities;

import com.google.gson.annotations.SerializedName;
import com.jakewharton.trakt.TraktEntity;
import com.jakewharton.trakt.enumerations.Rating;

import java.util.List;

public abstract class MediaBase implements TraktEntity {
    private static final long serialVersionUID = 753880113366868498L;

    public static class Stats implements TraktEntity {
        private static final long serialVersionUID = -5436127125832664020L;

        public Integer watchers;
        public Integer plays;
    }

    public String title;
    public Integer year;
    public String url;
    public Images images;
    @SerializedName("top_watchers") public List<UserProfile> topWatchers;
    public Ratings ratings;
    public Stats stats;
    public String imdb_id;
    public Rating rating;
    public Rating rating_advanced;
    @SerializedName("in_watchlist") public Boolean inWatchlist;

}

@@ -178,16 +178,39 @@
 ating;%0A%0A
+import java.util.Date;%0A
 import j
@@ -931,12 +931,42 @@
 tchlist;
+%0A    public Date last_updated;
 %0A%0A%7D%0A

add the last_update field in MediaBase (used in TvShow and Movie) which is usefull in case of sync