public class RelayrJavaSdk
extends java.lang.Object
User by calling getUser().
This is main object in Relayr SDK that can be used to fetch users Device,
Transmitter, Group and Account objects.
Every mentioned object has it's own interaction methods so direct usage of APIs is not necessary.
However it's still possible to obtain any of the desired API handlers through appropriate method:
getUserApi()getRelayrApi()getDeviceApi()getGroupsApi()getAccountsApi()getPublishersApi()getProjectsApi()getRuleTemplateApi()getAggregatedDataService() ()} or using AggregatedDataHelpergetRawDataService() ()} ()} or using RawDataHelpergetDeviceModelsApi() or using cache getDeviceModelsCache()| Modifier and Type | Class and Description |
|---|---|
static class |
RelayrJavaSdk.Builder
Initializes the SDK.
|
| Constructor and Description |
|---|
RelayrJavaSdk() |
| Modifier and Type | Method and Description |
|---|---|
static AccountsApi |
getAccountsApi() |
static AggregatedDataService |
getAggregatedDataService() |
static DeviceApi |
getDeviceApi() |
static DeviceModelsApi |
getDeviceModelsApi() |
static DeviceModelCache |
getDeviceModelsCache() |
static GroupsApi |
getGroupsApi() |
static retrofit.RestAdapter.LogLevel |
getLogLevel()
Returns log level set when initializing the SDK.
|
static NotificationService |
getNotificationService() |
static ProjectsApi |
getProjectsApi() |
static PublishersApi |
getPublishersApi() |
static RawDataService |
getRawDataService() |
static RelayrApi |
getRelayrApi() |
static RuleTemplateApi |
getRuleTemplateApi() |
static rx.Observable<User> |
getUser() |
static UserApi |
getUserApi() |
static java.lang.String |
getVersion() |
static WebSocketClient |
getWebSocketClient()
|
static boolean |
isProductionEnvironment()
Returns true if production environment servers are used.
|
public static retrofit.RestAdapter.LogLevel getLogLevel()
RestAdapter.LogLevel.NONE,
RestAdapter.LogLevel.BASIC,
RestAdapter.LogLevel.HEADERS,
RestAdapter.LogLevel.HEADERS_AND_ARGS,
RestAdapter.LogLevel.FULL,public static boolean isProductionEnvironment()
public static rx.Observable<User> getUser()
Device,
Transmitter, Group and Account.
Any of the mentioned objects has it's own special methods so direct usage of APIs is not necessary but it's still possiblepublic static java.lang.String getVersion()
public static RelayrApi getRelayrApi()
RelayrApipublic static AccountsApi getAccountsApi()
AccountsApipublic static DeviceApi getDeviceApi()
DeviceApipublic static GroupsApi getGroupsApi()
GroupsApipublic static UserApi getUserApi()
UserApipublic static AggregatedDataService getAggregatedDataService()
AggregatedDataService
Device.getAggregatedDataHelper() can be used to fetch aggregated history data for each device.public static RawDataService getRawDataService()
RawDataService
Device.getRawDataHelper() can be used to fetch raw history data for each device.public static NotificationService getNotificationService()
NotificationServicepublic static RuleTemplateApi getRuleTemplateApi()
RuleTemplateApi
Provides an API for the creation of Rule Engine Rules on the base of pre made templates.public static WebSocketClient getWebSocketClient()
public static DeviceModelsApi getDeviceModelsApi()
DeviceModelsApipublic static DeviceModelCache getDeviceModelsCache()
DeviceModel objects.
Cache will be populated with models from Device.modelId when device is fetched.
Use instead of getDeviceModelsApi()public static PublishersApi getPublishersApi()
PublishersApi.public static ProjectsApi getProjectsApi()
ProjectsApi.