com.tumblr.jumblr.types
Class AudioPost

java.lang.Object
  extended by com.tumblr.jumblr.types.Resource
      extended by com.tumblr.jumblr.types.Post
          extended by com.tumblr.jumblr.types.AudioPost

public class AudioPost
extends Post

This class represents a post of type "audio"

Author:
jc

Field Summary
 
Fields inherited from class com.tumblr.jumblr.types.Resource
client
 
Constructor Summary
AudioPost()
           
 
Method Summary
 Map<String,Object> detail()
          Get the details about this post (along with base details)
 String getAlbumArtUrl()
          Get the album art for this post
 String getAlbumName()
          Get the album for this post
 String getArtistName()
          Get the artist for this post
 String getCaption()
          Get the caption for this post
 String getEmbedCode()
          Get the embed code for this Post
 Integer getPlayCount()
          Get the play count for this post
 String getTrackName()
          Get the track name for this post
 Integer getTrackNumber()
          Get the track number for this post
 Integer getYear()
          Get the year for this post
 void setCaption(String caption)
          Set the caption for this post
 void setData(File file)
          Set the data for this post
 void setExternalUrl(String url)
          Set the external url for this post
 
Methods inherited from class com.tumblr.jumblr.types.Post
addTag, delete, getBlogName, getDateGMT, getFormat, getId, getPostUrl, getRebloggedFromId, getRebloggedFromName, getReblogKey, getSourceUrl, getState, getTags, getTimestamp, getType, isBookmarklet, isLiked, isMobile, like, reblog, reblog, removeTag, save, setBlogName, setDate, setDate, setFormat, setId, setSlug, setState, setTags, toString, unlike
 
Methods inherited from class com.tumblr.jumblr.types.Resource
getClient, setClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioPost

public AudioPost()
Method Detail

getPlayCount

public Integer getPlayCount()
Get the play count for this post

Returns:
the play count

getTrackName

public String getTrackName()
Get the track name for this post

Returns:
the track name

getAlbumName

public String getAlbumName()
Get the album for this post

Returns:
the album name

getArtistName

public String getArtistName()
Get the artist for this post

Returns:
the artist

getAlbumArtUrl

public String getAlbumArtUrl()
Get the album art for this post

Returns:
the album art

getYear

public Integer getYear()
Get the year for this post

Returns:
the year

getTrackNumber

public Integer getTrackNumber()
Get the track number for this post

Returns:
the track number

getCaption

public String getCaption()
Get the caption for this post

Returns:
the caption

getEmbedCode

public String getEmbedCode()
Get the embed code for this Post

Returns:
the embed code

setExternalUrl

public void setExternalUrl(String url)
Set the external url for this post

Parameters:
url - the external url
Throws:
IllegalArgumentException - when data is already set

setData

public void setData(File file)
Set the data for this post

Parameters:
file - the file to read from
Throws:
IllegalArgumentException - source is already set

setCaption

public void setCaption(String caption)
Set the caption for this post

Parameters:
caption - the caption

detail

public Map<String,Object> detail()
Get the details about this post (along with base details)

Overrides:
detail in class Post
Returns:
the detail


Copyright © 2013. All Rights Reserved.