Package com.lariflix.jemm.dtos
Class JellyfinCredentials
java.lang.Object
com.lariflix.jemm.dtos.JellyfinCredentials
This class represents the credentials for a Jellyfin server.
It is used to store and manage information related to the credentials used to connect to a Jellyfin server.
- Since:
- 1.0
- Author:
- Cesar Bianchi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JellyfinCredentials.JellyfinCredentials
(String cURL, String cToken) Constructor for JellyfinCredentials with specified base URL and token. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the base URL of the Jellyfin server.Retrieves the API token for authentication.void
setBaseURL
(String baseURL) Sets the base URL of the Jellyfin server.void
setTokenAPI
(String tokenAPI) Sets the API token for authentication.
-
Field Details
-
baseURL
-
tokenAPI
-
-
Constructor Details
-
JellyfinCredentials
public JellyfinCredentials()Default constructor for JellyfinCredentials. -
JellyfinCredentials
Constructor for JellyfinCredentials with specified base URL and token.- Parameters:
cURL
- the base URL of the Jellyfin servercToken
- the API token for authentication
-
-
Method Details
-
getBaseURL
Retrieves the base URL of the Jellyfin server.- Returns:
- the base URL
-
setBaseURL
Sets the base URL of the Jellyfin server.- Parameters:
baseURL
- the base URL to set
-
getTokenAPI
Retrieves the API token for authentication.- Returns:
- the API token
-
setTokenAPI
Sets the API token for authentication.- Parameters:
tokenAPI
- the API token to set
-