package com.honu.tmdb.rest;

import com.google.gson.annotations.SerializedName;

/**
 *
 */
public class Video {


    @SerializedName("id")
    int id;

    // ie, "en"
    @SerializedName("iso_639_1")
    String languageCode;

    @SerializedName("key")
    String key;

    @SerializedName("name")
    String name;

    // ie, YouTube
    @SerializedName("site")
    String site;

    @SerializedName("size")
    int size;

    // ie, Trailer
    @SerializedName("type")
    String type;

    public int getId() {
        return id;
    }

    public String getLanguageCode() {
        return languageCode;
    }

    public String getKey() {
        return key;
    }

    public String getName() {
        return name;
    }

    public String getSite() {
        return site;
    }

    public int getSize() {
        return size;
    }

    public String getType() {
        return type;
    }
}

@@ -138,19 +138,22 @@
 d%22)%0A    
+Str
 in
-t
+g
  id;%0A%0A  
@@ -495,27 +495,30 @@
 %0A    public 
+Str
 in
-t
+g
  getId() %7B%0A 
@@ -869,24 +869,24 @@
 getType() %7B%0A
-
         retu
@@ -899,11 +899,153 @@
 e;%0A    %7D
+%0A%0A    public boolean isYoutubeTrailer() %7B%0A        return (site.toLowerCase().equals(%22youtube%22) && type.toLowerCase().equals(%22trailer%22));%0A    %7D
 %0A%7D%0A

fix deserialization error and add test for youtube trailer