Class YoutubeClientConfig
- java.lang.Object
-
- org.json.JSONObject
-
- com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeClientConfig
-
public class YoutubeClientConfig extends org.json.JSONObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYoutubeClientConfig.AndroidVersion
-
Field Summary
Fields Modifier and Type Field Description static YoutubeClientConfigANDROIDstatic YoutubeClientConfig.AndroidVersionDEFAULT_ANDROID_VERSIONstatic YoutubeClientConfigMUSICstatic YoutubeClientConfigTV_EMBEDDEDstatic YoutubeClientConfigWEB
-
Constructor Summary
Constructors Constructor Description YoutubeClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YoutubeClientConfigcopy()java.lang.StringgetApiKey()java.lang.StringgetName()java.lang.StringgetUserAgent()YoutubeClientConfigsetAttribute(HttpInterface httpInterface)java.lang.StringtoJsonString()YoutubeClientConfigwithApiKey(java.lang.String apiKey)YoutubeClientConfigwithClientDefaultScreenParameters()YoutubeClientConfigwithClientField(java.lang.String key, java.lang.Object value)YoutubeClientConfigwithClientName(java.lang.String name)YoutubeClientConfigwithPlaybackSignatureTimestamp(java.lang.String signatureTimestamp)YoutubeClientConfigwithRootField(java.lang.String key, java.lang.Object value)YoutubeClientConfigwithThirdPartyEmbedUrl(java.lang.String embedUrl)YoutubeClientConfigwithUserAgent(java.lang.String userAgent)YoutubeClientConfigwithUserField(java.lang.String key, java.lang.Object value)-
Methods inherited from class org.json.JSONObject
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
-
-
-
Field Detail
-
DEFAULT_ANDROID_VERSION
public static final YoutubeClientConfig.AndroidVersion DEFAULT_ANDROID_VERSION
-
ANDROID
public static YoutubeClientConfig ANDROID
-
TV_EMBEDDED
public static YoutubeClientConfig TV_EMBEDDED
-
WEB
public static YoutubeClientConfig WEB
-
MUSIC
public static YoutubeClientConfig MUSIC
-
-
Method Detail
-
copy
public YoutubeClientConfig copy()
-
withClientName
public YoutubeClientConfig withClientName(java.lang.String name)
-
getName
public java.lang.String getName()
-
withUserAgent
public YoutubeClientConfig withUserAgent(java.lang.String userAgent)
-
getUserAgent
public java.lang.String getUserAgent()
-
withApiKey
public YoutubeClientConfig withApiKey(java.lang.String apiKey)
-
getApiKey
public java.lang.String getApiKey()
-
withClientDefaultScreenParameters
public YoutubeClientConfig withClientDefaultScreenParameters()
-
withThirdPartyEmbedUrl
public YoutubeClientConfig withThirdPartyEmbedUrl(java.lang.String embedUrl)
-
withPlaybackSignatureTimestamp
public YoutubeClientConfig withPlaybackSignatureTimestamp(java.lang.String signatureTimestamp)
-
withRootField
public YoutubeClientConfig withRootField(java.lang.String key, java.lang.Object value)
-
withClientField
public YoutubeClientConfig withClientField(java.lang.String key, java.lang.Object value)
-
withUserField
public YoutubeClientConfig withUserField(java.lang.String key, java.lang.Object value)
-
setAttribute
public YoutubeClientConfig setAttribute(HttpInterface httpInterface)
-
toJsonString
public java.lang.String toJsonString()
-
-