Package io.github.intisy.gradle.online
Class UsesExtension
java.lang.Object
io.github.intisy.gradle.online.UsesExtension
Represents an extension for configuring various settings related to URL usage, presets, debugging, and auto-updating.
- Author:
- Finn Birich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of presets.intGets the current update delay.getUrls()Gets the list of URLs.booleanChecks if auto-update is enabled.booleanisDebug()Checks if debug mode is enabled.voidsetAutoUpdate(boolean autoUpdate) Sets the auto-update feature.voidsetDebug(boolean debug) Sets the debug mode.voidsetPresets(List<String> presets) Sets the list of presets.voidsetUpdateDelay(int updateDelay) Sets the update delay.voidSets the list of URLs.
-
Constructor Details
-
UsesExtension
public UsesExtension()
-
-
Method Details
-
setUpdateDelay
public void setUpdateDelay(int updateDelay) Sets the update delay.- Parameters:
updateDelay- The delay in milliseconds between updates.
-
getUpdateDelay
public int getUpdateDelay()Gets the current update delay.- Returns:
- The delay in milliseconds between updates.
-
isAutoUpdate
public boolean isAutoUpdate()Checks if auto-update is enabled.- Returns:
- true if auto-update is enabled, false otherwise.
-
setAutoUpdate
public void setAutoUpdate(boolean autoUpdate) Sets the auto-update feature.- Parameters:
autoUpdate- true to enable auto-update, false to disable it.
-
isDebug
public boolean isDebug()Checks if debug mode is enabled.- Returns:
- true if debug mode is enabled, false otherwise.
-
setDebug
public void setDebug(boolean debug) Sets the debug mode.- Parameters:
debug- true to enable debug mode, false to disable it.
-
getUrls
Gets the list of URLs.- Returns:
- A List of Strings containing the URLs.
-
setUrls
Sets the list of URLs.- Parameters:
urls- A List of Strings containing the URLs to be set.
-
getPresets
Gets the list of presets.- Returns:
- A List of Strings containing the presets.
-
setPresets
Sets the list of presets.- Parameters:
presets- A List of Strings containing the presets to be set.
-