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; 18 19 /** 20 * Series information. 21 */ 22 public class SeriesInfo { 23 private final String mId; 24 private final String mTitle; 25 private final String mDescription; 26 private final String mLongDescription; 27 private final int[] mCanonicalGenreIds; 28 private final String mPosterUri; 29 private final String mPhotoUri; 30 SeriesInfo(String id, String title, String description, String longDescription, int[] canonicalGenreIds, String posterUri, String photoUri)31 public SeriesInfo(String id, String title, String description, String longDescription, 32 int[] canonicalGenreIds, String posterUri, String photoUri) { 33 this.mId = id; 34 this.mTitle = title; 35 this.mDescription = description; 36 this.mLongDescription = longDescription; 37 this.mCanonicalGenreIds = canonicalGenreIds; 38 this.mPosterUri = posterUri; 39 this.mPhotoUri = photoUri; 40 } 41 42 /** Returns the ID. **/ getId()43 public String getId() { 44 return mId; 45 } 46 47 /** Returns the title. **/ getTitle()48 public String getTitle() { 49 return mTitle; 50 } 51 52 /** Returns the description. **/ getDescription()53 public String getDescription() { 54 return mDescription; 55 } 56 57 /** Returns the description. **/ getLongDescription()58 public String getLongDescription() { 59 return mLongDescription; 60 } 61 62 /** Returns the canonical genre IDs. **/ getCanonicalGenreIds()63 public int[] getCanonicalGenreIds() { 64 return mCanonicalGenreIds; 65 } 66 67 /** Returns the poster URI. **/ getPosterUri()68 public String getPosterUri() { 69 return mPosterUri; 70 } 71 72 /** Returns the photo URI. **/ getPhotoUri()73 public String getPhotoUri() { 74 return mPhotoUri; 75 } 76 } 77