Package com.lariflix.jemm.dtos
Class JellyfinConnectionResult
java.lang.Object
com.lariflix.jemm.dtos.JellyfinConnectionResult
This class represents the result of a connection attempt to a Jellyfin server.
It is used to store and manage information related to the result of a connection attempt.
- Since:
- 1.0
- Author:
- Cesar Bianchi
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new JellyfinConnectionResult object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the message associated with the connection result.int
Gets the response code of the connection attempt.boolean
Checks if the connection attempt was successful.void
setIsConnected
(boolean isConnected) Sets the connection status.void
setMessage
(String message) Sets the message associated with the connection result.void
setResponseCode
(int responseCode) Sets the response code of the connection attempt.
-
Constructor Details
-
JellyfinConnectionResult
public JellyfinConnectionResult()Constructs a new JellyfinConnectionResult object.
-
-
Method Details
-
getMessage
Gets the message associated with the connection result.- Returns:
- The message.
-
setMessage
Sets the message associated with the connection result.- Parameters:
message
- The message to set.
-
getResponseCode
public int getResponseCode()Gets the response code of the connection attempt.- Returns:
- The response code.
-
setResponseCode
public void setResponseCode(int responseCode) Sets the response code of the connection attempt.- Parameters:
responseCode
- The response code to set.
-
isIsConnected
public boolean isIsConnected()Checks if the connection attempt was successful.- Returns:
- True if connected, false otherwise.
-
setIsConnected
public void setIsConnected(boolean isConnected) Sets the connection status.- Parameters:
isConnected
- The connection status to set.
-
getIsConnected
public boolean getIsConnected()
-