public class EventManagementUtil
extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertEventsToJsonString(Events events)
Converts Events into a JSON String
|
static String |
convertEventToJsonString(BaseEvent event)
Converts BaseEvent into a JSON String
|
static String |
convertEventToJsonStringForCreate(BaseEvent event)
Converts BaseEvent into a JSON String
|
static CustomEvent |
extractCustomEvent(String jsonObjectString)
Converts JSON String into a CustomEvent
|
static Events |
extractEvents(String responseString)
Converts JSON String into a Events
|
static BaseEvent |
extractEventsData(String responseString)
Converts JSON String into a BaseEvent
|
static MindsphereStandardEvent |
extractStandardEvent(String jsonObjectString)
Converts JSON String into a MindsphereStandardEvent
|
public static String convertEventsToJsonString(Events events) throws MindsphereClientException
events
- Events that have to be converted into JSON StringMindsphereClientException
- thrown if an error is encountered during conversionpublic static Events extractEvents(String responseString) throws MindsphereClientException
responseString
- JSON String that have to be converted into EventsMindsphereClientException
- thrown if an error is encountered during conversionpublic static BaseEvent extractEventsData(String responseString) throws MindsphereClientException
responseString
- JSON String that have to be converted into BaseEventMindsphereClientException
- thrown if an error is encountered during conversionpublic static String convertEventToJsonStringForCreate(BaseEvent event) throws MindsphereClientException
event
- BaseEvent that have to be converted into JSON StringMindsphereClientException
- thrown if an error is encountered during conversionpublic static String convertEventToJsonString(BaseEvent event) throws MindsphereClientException
event
- BaseEvent that have to be converted into JSON StringMindsphereClientException
- thrown if an error is encountered during conversionpublic static MindsphereStandardEvent extractStandardEvent(String jsonObjectString) throws IOException
jsonObjectString
- JSON String that have to be converted into MindsphereStandardEventIOException
- thrown if an error is encountered during conversionpublic static CustomEvent extractCustomEvent(String jsonObjectString) throws IOException
jsonObjectString
- JSON String that have to be converted into CustomEventIOException
- thrown if an error is encountered during conversion