com.samsung.android.penup.model
Class ArtworkResource
- java.lang.Object
-
- com.samsung.android.penup.model.ArtworkResource
-
-
Constructor Summary
Constructors Constructor and Description ArtworkResource()
Constructs an ArtworkResource instance.
-
Method Summary
Methods Modifier and Type Method and Description ArtworkResource
clone()
Clones this object.java.lang.String
getArtistId()
Gets the artist ID.java.lang.String
getArtistName()
Gets the artist name.java.lang.String
getCollectionId()
Gets the collection ID.java.lang.String
getDescription()
Gets the description of the artwork.int
getFavoriteCount()
Gets the number of favorite.java.lang.String
getId()
Gets the artwork ID.double
getImageRatio()
Gets the vertical to horizontal ratio of the artwork.java.lang.String
getImageUrl()
Gets the image URL.java.lang.String
getLargeThumbnailImageUrl()
Gets the large thumbnail image URL.java.lang.String
getOriginalArtistId()
Gets the original artist ID.java.lang.String
getOriginalArtworkId()
Gets the original artwork ID.java.lang.String
getThumbnailImageUrl()
Gets the thumbnail image URL.java.lang.String
getTitle()
Gets the title of the artwork.void
setCollectionId(java.lang.String collectionId)
Sets the collection ID.void
setDescription(java.lang.String description)
Sets the description of the artwork.void
setTitle(java.lang.String title)
Sets the title of the artwork.
-
-
-
Constructor Detail
-
ArtworkResource
public ArtworkResource()
Constructs an ArtworkResource instance.- Since:
- PEN.UP 1.0
-
-
Method Detail
-
clone
public ArtworkResource clone()
Clones this object.
-
getId
public java.lang.String getId()
Gets the artwork ID.
-
getTitle
public java.lang.String getTitle()
Gets the title of the artwork.- Returns:
- The title of the artwork
- Since:
- PEN.UP 1.0
-
getDescription
public java.lang.String getDescription()
Gets the description of the artwork.- Returns:
- The description of the artwork
- Since:
- PEN.UP 1.0
-
getArtistId
public java.lang.String getArtistId()
Gets the artist ID.- Returns:
- The artist ID
- Since:
- PEN.UP 1.0
-
getArtistName
public java.lang.String getArtistName()
Gets the artist name.- Returns:
- The artist name
- Since:
- PEN.UP 1.0
-
getOriginalArtistId
public java.lang.String getOriginalArtistId()
Gets the original artist ID.- Returns:
- The original artist ID
- Since:
- PEN.UP 1.0
-
getOriginalArtworkId
public java.lang.String getOriginalArtworkId()
Gets the original artwork ID.- Returns:
- The original artwork ID
- Since:
- PEN.UP 1.0
-
getFavoriteCount
public int getFavoriteCount()
Gets the number of favorite.- Returns:
- The number of favorite
- Since:
- PEN.UP 1.0
-
getImageRatio
public double getImageRatio()
Gets the vertical to horizontal ratio of the artwork.- Returns:
- The vertical to horizontal ratio of the artwork
- Since:
- PEN.UP 1.0
-
getImageUrl
public java.lang.String getImageUrl()
Gets the image URL.- Returns:
- The image URL
- Since:
- PEN.UP 1.0
-
getThumbnailImageUrl
public java.lang.String getThumbnailImageUrl()
Gets the thumbnail image URL.- Returns:
- The thumbnail image URL
- Since:
- PEN.UP 1.0
-
getLargeThumbnailImageUrl
public java.lang.String getLargeThumbnailImageUrl()
Gets the large thumbnail image URL.- Returns:
- The thumbnail image URL
- Since:
- PEN.UP 1.0
-
getCollectionId
public java.lang.String getCollectionId()
Gets the collection ID.- Returns:
- The collection ID
- Since:
- PEN.UP 1.0
-
setTitle
public void setTitle(java.lang.String title)
Sets the title of the artwork.- Parameters:
title
- The title of the artwork.
The length of the title must be within 45 characters.- Throws:
java.lang.IllegalArgumentException
- The length oftitle
is greater than 45.- Since:
- PEN.UP 1.0
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the artwork.- Parameters:
description
- The description of the artwork.
The length of the description must be within 500 characters.- Throws:
java.lang.IllegalArgumentException
- The length ofdescription
is greater than 500.- Since:
- PEN.UP 1.0
-
setCollectionId
public void setCollectionId(java.lang.String collectionId)
Sets the collection ID.- Parameters:
collectionId
- The collection ID- Since:
- PEN.UP 1.0
-
-