public static class EPBotFetchingStrategy.OnlineWithDefault
extends EPBotFetchingStrategy
Downloads the latest available version of the bot from the Bot Editor. In case of error, it will load the bot from a json file embedded into the app bundle.
majorVersion
: The bot major version. Used to fetch only the bot updates matching this major version. (optional)
fileName
: The bot json file name. This file must be added to your project.
EPBotFetchingStrategy.Offline, EPBotFetchingStrategy.Online, EPBotFetchingStrategy.OnlineWithDefault
Constructor and Description |
---|
OnlineWithDefault(java.lang.Integer majorVersion,
java.lang.String fileName)
Downloads the latest available version of the bot from the Bot Editor. In case of error, it will load the bot from a json file embedded into the app bundle.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName() |
java.lang.Integer |
getMajorVersion() |
void |
setFileName(java.lang.String p) |
void |
setMajorVersion(java.lang.Integer p) |
public OnlineWithDefault(java.lang.Integer majorVersion, java.lang.String fileName)
Downloads the latest available version of the bot from the Bot Editor. In case of error, it will load the bot from a json file embedded into the app bundle.
majorVersion
: The bot major version. Used to fetch only the bot updates matching this major version. (optional)
fileName
: The bot json file name. This file must be added to your project.