public class RestVideo
extends java.lang.Object
Video
Bonus feature! The find list can return things other than a video. So we overload this loose coupled object with other types. The stype attribute defines what type of overloading.
| Modifier and Type | Field and Description |
|---|---|
static int |
STYPE_ACTOR |
static int |
STYPE_DIRECTOR |
static int |
STYPE_GENRE |
static int |
STYPE_MARKER |
static int |
STYPE_VIDEO |
static int |
STYPE_WRITER |
| Constructor and Description |
|---|
RestVideo()
bean constructor
|
RestVideo(java.lang.String name,
int stype) |
RestVideo(java.lang.String name,
int stype,
int hashKey) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAddedAt() |
java.lang.String |
getHashKey() |
int |
getStype() |
java.lang.String |
getTitle() |
int |
getYear() |
void |
setAddedAt(int addedAt) |
void |
setHashKey(java.lang.String hashKey) |
void |
setStype(int stype) |
void |
setTitle(java.lang.String title) |
void |
setYear(int year) |
public static final int STYPE_VIDEO
public static final int STYPE_MARKER
public static final int STYPE_ACTOR
public static final int STYPE_DIRECTOR
public static final int STYPE_WRITER
public static final int STYPE_GENRE
public RestVideo()
public RestVideo(java.lang.String name,
int stype)
public RestVideo(java.lang.String name,
int stype,
int hashKey)
public int getStype()
public void setStype(int stype)
stype - the stype to setpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - the title to setpublic int getYear()
public void setYear(int year)
year - the year to setpublic java.lang.String getHashKey()
public void setHashKey(java.lang.String hashKey)
hashKey - the hashKey to setpublic int getAddedAt()
public void setAddedAt(int addedAt)
addedAt - the addedAt to set