com.flowthings.client.api.MutableDomainObjectApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flowthings-client-core Show documentation
Show all versions of flowthings-client-core Show documentation
A client library for flowthings.io realtime event processing
package com.flowthings.client.api;
public class MutableDomainObjectApi extends DomainObjectApi {
public MutableDomainObjectApi(Class clazz) {
super(clazz);
}
/**
* Update an object with new attributes
*
* @param id
* - the object's ID
* @param t
* - an object containing new values
* @return - A request object, to pass to an API
*/
public Request update(String id, T t) {
return Request.createObjectRequest(clazz, Request.Action.UPDATE)//
.body(t).id(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy