1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License 15 */ 16 17 package com.android.tv.dvr.data; 18 19 /** Series information. */ 20 public class SeriesInfo { 21 private final String mId; 22 private final String mTitle; 23 private final String mDescription; 24 private final String mLongDescription; 25 private final int[] mCanonicalGenreIds; 26 private final String mPosterUri; 27 private final String mPhotoUri; 28 SeriesInfo( String id, String title, String description, String longDescription, int[] canonicalGenreIds, String posterUri, String photoUri)29 public SeriesInfo( 30 String id, 31 String title, 32 String description, 33 String longDescription, 34 int[] canonicalGenreIds, 35 String posterUri, 36 String photoUri) { 37 this.mId = id; 38 this.mTitle = title; 39 this.mDescription = description; 40 this.mLongDescription = longDescription; 41 this.mCanonicalGenreIds = canonicalGenreIds; 42 this.mPosterUri = posterUri; 43 this.mPhotoUri = photoUri; 44 } 45 46 /** Returns the ID. * */ getId()47 public String getId() { 48 return mId; 49 } 50 51 /** Returns the title. * */ getTitle()52 public String getTitle() { 53 return mTitle; 54 } 55 56 /** Returns the description. * */ getDescription()57 public String getDescription() { 58 return mDescription; 59 } 60 61 /** Returns the description. * */ getLongDescription()62 public String getLongDescription() { 63 return mLongDescription; 64 } 65 66 /** Returns the canonical genre IDs. * */ getCanonicalGenreIds()67 public int[] getCanonicalGenreIds() { 68 return mCanonicalGenreIds; 69 } 70 71 /** Returns the poster URI. * */ getPosterUri()72 public String getPosterUri() { 73 return mPosterUri; 74 } 75 76 /** Returns the photo URI. * */ getPhotoUri()77 public String getPhotoUri() { 78 return mPhotoUri; 79 } 80 } 81