Class SettingsParameters
-
- All Implemented Interfaces:
public class SettingsParametersThis Class holds the basic settings parameters There are ApplicationId, deviceID, applicationVersion,backendURL, and version of the server
-
-
Constructor Summary
Constructors Constructor Description SettingsParameters(String backendUrl, String applicationId)Constructor for settings parameter. SettingsParameters(String backendUrl, String applicationId, String deviceId)Constructor for settings parameter. SettingsParameters(String backendUrl, String applicationId, String deviceId, String applicationVersion)Constructor for settings parameter. SettingsParameters(String backendUrl, String applicationId, String deviceId, String applicationVersion, String apiKey)Constructor for settings parameter. SettingsParameters(Context context, AppConfig appConfig)Constructor for settings parameter. SettingsParameters(Context context, AppConfig appConfig, String apiKey)Constructor for settings parameter.
-
Method Summary
Modifier and Type Method Description inthashCode()booleanequals(Object obj)StringgetBackendUrl()Get backend Url StringgetApplicationVersion()Get the Service version StringgetApplicationId()Get the application Id StringgetDeviceId()Get device Id StringgetSdkVersion()Get BTP sdk version StringgetApiKey()Get api key StringgetClientAppId()Get client app id AppConfiggetAppConfig()Get the AppConfig used to construct this instance, or null for legacy string-based constructors. voidsetApiKey(@Nullable() String apiKey)Set api key -
-
Constructor Detail
-
SettingsParameters
SettingsParameters(String backendUrl, String applicationId)
Constructor for settings parameter.
- Parameters:
backendUrl- the backend Url to the serverapplicationId- the application Id name
-
SettingsParameters
SettingsParameters(String backendUrl, String applicationId, String deviceId)
Constructor for settings parameter.
- Parameters:
backendUrl- the backend Url to the serverapplicationId- the application Id namedeviceId- the device Id value
-
SettingsParameters
SettingsParameters(String backendUrl, String applicationId, String deviceId, String applicationVersion)
Constructor for settings parameter.
- Parameters:
backendUrl- the backend Url to the serverapplicationId- the application Id namedeviceId- the device Id valueapplicationVersion- Application Version
-
SettingsParameters
SettingsParameters(String backendUrl, String applicationId, String deviceId, String applicationVersion, String apiKey)
Constructor for settings parameter.
- Parameters:
backendUrl- the backend Url to the serverapplicationId- the application Id namedeviceId- the device Id valueapplicationVersion- Application VersionapiKey- the api key
-
SettingsParameters
SettingsParameters(Context context, AppConfig appConfig)
Constructor for settings parameter.
- Parameters:
context- Android application contextappConfig- AppConfig object
-
-
Method Detail
-
hashCode
int hashCode()
-
getBackendUrl
@NonNull() String getBackendUrl()
Get backend Url
- Returns:
the backendUrl without ending slash(/) character
-
getApplicationVersion
@Nullable() String getApplicationVersion()
Get the Service version
- Returns:
Version of the application
-
getApplicationId
@NonNull() String getApplicationId()
Get the application Id
- Returns:
application Id used
-
getDeviceId
@Nullable() String getDeviceId()
Get device Id
- Returns:
device Id string
-
getSdkVersion
@NonNull() String getSdkVersion()
Get BTP sdk version
- Returns:
BTP sdk version
-
getClientAppId
@Nullable() String getClientAppId()
Get client app id
- Returns:
client app id
-
getAppConfig
@Nullable() AppConfig getAppConfig()
Get the AppConfig used to construct this instance, or null for legacy string-based constructors.
- Returns:
AppConfig or null
-
-
-
-