Interface Server
-
- All Superinterfaces:
Comparable<Sorted>
,PrettyPrintable
,Sorted
public interface Server extends Sorted, PrettyPrintable
The interface that represents a server connected to your shop.- Author:
- soknight
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull String
getAddress()
Get the IP address of this server.@NotNull LocalDateTime
getCreatedAt()
Get the creation date of this server.int
getId()
Get the unique ID of this server.@NotNull String
getName()
Get the name of this server.int
getPort()
Get the port of this server.@NotNull Optional<ProductsList>
getProducts()
Get the list of all configured products for this server.int
getShopId()
Get the ID of the owning shop.@NotNull LocalDateTime
getUpdatedAt()
Get the date of the last update of this server.@NotNull String
getVersion()
Get the actual server software version.boolean
isAddressHidden()
Check is the IP address of this server is hidden for the shop web-page.boolean
isHidden()
Check is this server is hidden for the shop web-page.boolean
isPaymentsDisabled()
Check is any payments are disabled for this server.boolean
isPortHidden()
Check is the port of this server is hidden for the shop web-page.-
Methods inherited from interface ru.easydonate.easydonate4j.data.model.PrettyPrintable
toPrettyString
-
Methods inherited from interface ru.easydonate.easydonate4j.api.v3.data.model.Sorted
compareTo, getSortIndex
-
-
-
-
Method Detail
-
getId
int getId()
Get the unique ID of this server.- Returns:
- The server ID.
-
getShopId
int getShopId()
Get the ID of the owning shop.- Returns:
- The owning shop ID.
-
getName
@NotNull @NotNull String getName()
Get the name of this server.- Returns:
- The server name.
-
getAddress
@NotNull @NotNull String getAddress()
Get the IP address of this server.- Returns:
- The server IP address.
-
getPort
int getPort()
Get the port of this server.- Returns:
- The server port.
-
getVersion
@NotNull @NotNull String getVersion()
Get the actual server software version.
A version will be available after the first server ping.
Example: Paper 1.16.5- Returns:
- The server software version.
-
isAddressHidden
boolean isAddressHidden()
Check is the IP address of this server is hidden for the shop web-page.- Returns:
- A boolean value: the check result.
-
isPortHidden
boolean isPortHidden()
Check is the port of this server is hidden for the shop web-page.- Returns:
- A boolean value: the check result.
-
isHidden
boolean isHidden()
Check is this server is hidden for the shop web-page.- Returns:
- A boolean value: the check result.
-
isPaymentsDisabled
boolean isPaymentsDisabled()
Check is any payments are disabled for this server.- Returns:
- A boolean value: the check result.
-
getProducts
@NotNull @NotNull Optional<ProductsList> getProducts()
Get the list of all configured products for this server.- Returns:
- The configured products list.
-
getCreatedAt
@NotNull @NotNull LocalDateTime getCreatedAt()
Get the creation date of this server.- Returns:
- The server creation date.
-
getUpdatedAt
@NotNull @NotNull LocalDateTime getUpdatedAt()
Get the date of the last update of this server.- Returns:
- The last server update date.
-
-