Advertisement
nurrohim11

Up Coming Model

Jul 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.46 KB | None | 0 0
  1. package com.example.nurrohim.moviedicoding.model.upcoming;
  2.  
  3. import com.example.nurrohim.moviedicoding.model.search.ResultsItem;
  4. import com.google.gson.annotations.SerializedName;
  5.  
  6. import java.util.List;
  7.  
  8. public class UpcomingModel{
  9.  
  10.     @SerializedName("dates")
  11.     private Dates dates;
  12.  
  13.     @SerializedName("page")
  14.     private int page;
  15.  
  16.     @SerializedName("total_pages")
  17.     private int totalPages;
  18.  
  19.     @SerializedName("results")
  20.     private List<ResultsItem> results;
  21.  
  22.     @SerializedName("total_results")
  23.     private int totalResults;
  24.  
  25.     public void setDates(Dates dates){
  26.         this.dates = dates;
  27.     }
  28.  
  29.     public Dates getDates(){
  30.         return dates;
  31.     }
  32.  
  33.     public void setPage(int page){
  34.         this.page = page;
  35.     }
  36.  
  37.     public int getPage(){
  38.         return page;
  39.     }
  40.  
  41.     public void setTotalPages(int totalPages){
  42.         this.totalPages = totalPages;
  43.     }
  44.  
  45.     public int getTotalPages(){
  46.         return totalPages;
  47.     }
  48.  
  49.     public void setResults(List<ResultsItem> results){
  50.         this.results = results;
  51.     }
  52.  
  53.     public List<ResultsItem> getResults(){
  54.         return results;
  55.     }
  56.  
  57.     public void setTotalResults(int totalResults){
  58.         this.totalResults = totalResults;
  59.     }
  60.  
  61.     public int getTotalResults(){
  62.         return totalResults;
  63.     }
  64.  
  65.     @Override
  66.     public String toString(){
  67.         return
  68.             "UpcomingModel{" +
  69.             "dates = '" + dates + '\'' +
  70.             ",page = '" + page + '\'' +
  71.             ",total_pages = '" + totalPages + '\'' +
  72.             ",results = '" + results + '\'' +
  73.             ",total_results = '" + totalResults + '\'' +
  74.             "}";
  75.         }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement