public class

ExternalTokens

extends Model
java.lang.Object
   ↳ java.util.Observable
     ↳ fm.audiobox.core.models.Model
       ↳ fm.audiobox.core.models.ExternalTokens

Class Overview

For each of the external services the boolean value indicates if we have stored a OAuth token for the user.

Such attributes are automatically set by the system and cannot be changed manually.

Summary

Constants
String BOX
String DROPBOX
String FACEBOOK
String GDRIVE
String LASTFM
String MEGA
String SKYDRIVE
String SOUNDCLOUD
String TWITCHTV
String TWITTER
String YOUTUBE
Public Constructors
ExternalTokens()
Public Methods
boolean isBoxEnabled()
Checks if Box is enabled.
boolean isDropboxEnabled()
Checks if Dropbox is enabled.
boolean isFacebookEnabled()
Checks if Facebook is enabled.
boolean isGdriveEnabled()
Checks if Google Drive is enabled.
boolean isLastfmEnabled()
Checks if Last.fm is enabled.
boolean isMegaEnabled()
Checks if Mega is enabled.
boolean isSkydriveEnabled()
Checks if SkyDrive is enabled.
boolean isSoundcloudEnabled()
Checks if Soundcloud is enabled.
boolean isTwitchtvEnabled()
Checks if Twitch.tv is enabled.
boolean isTwitterEnabled()
Checks if Twitter is enabled.
boolean isYoutubeEnabled()
Checks if YouTube is enabled.
[Expand]
Inherited Methods
From class fm.audiobox.core.models.Model
From class java.util.Observable
From class java.lang.Object

Constants

public static final String BOX

Constant Value: "box"

public static final String DROPBOX

Constant Value: "dropbox"

public static final String FACEBOOK

Constant Value: "facebook"

public static final String GDRIVE

Constant Value: "gdrive"

public static final String LASTFM

Constant Value: "lastfm"

public static final String MEGA

Constant Value: "mega"

public static final String SKYDRIVE

Constant Value: "skydrive"

public static final String SOUNDCLOUD

Constant Value: "soundcloud"

public static final String TWITCHTV

Constant Value: "twitchtv"

public static final String TWITTER

Constant Value: "twitter"

public static final String YOUTUBE

Constant Value: "youtube"

Public Constructors

public ExternalTokens ()

Public Methods

public boolean isBoxEnabled ()

Checks if Box is enabled.

Returns
  • the true if a Box account is linked, false otherwise

public boolean isDropboxEnabled ()

Checks if Dropbox is enabled.

Returns
  • the true if a Dropbox account is linked, false otherwise

public boolean isFacebookEnabled ()

Checks if Facebook is enabled.

Returns
  • the true if a Facebook account is linked, false otherwise

public boolean isGdriveEnabled ()

Checks if Google Drive is enabled.

Returns
  • the true if a Google Drive account is linked, false otherwise

public boolean isLastfmEnabled ()

Checks if Last.fm is enabled.

Returns
  • the true if a Last.fm account is linked, false otherwise

public boolean isMegaEnabled ()

Checks if Mega is enabled.

Returns
  • the true if a Mega account is linked, false otherwise

public boolean isSkydriveEnabled ()

Checks if SkyDrive is enabled.

Returns
  • the true if a SkyDrive account is linked, false otherwise

public boolean isSoundcloudEnabled ()

Checks if Soundcloud is enabled.

Returns
  • the true if a Soundcloud account is linked, false otherwise

public boolean isTwitchtvEnabled ()

Checks if Twitch.tv is enabled.

Returns
  • the true if a Twitch.tv account is linked, false otherwise

public boolean isTwitterEnabled ()

Checks if Twitter is enabled.

Returns
  • the true if a Twitter account is linked, false otherwise

public boolean isYoutubeEnabled ()

Checks if YouTube is enabled.

Returns
  • the true if a YouTube account is linked, false otherwise