public class Group extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Group>
| Constructor and Description |
|---|
Group() |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Void> |
addDevice(java.lang.String... deviceIds)
Calls
Observer.onNext(Object) if device is added to the group. |
int |
compareTo(Group another) |
boolean |
equals(java.lang.Object o) |
java.util.List<Device> |
getDevices() |
java.lang.String |
getId() |
java.lang.String |
getName() |
int |
hashCode() |
rx.Observable<java.lang.Void> |
moveDeviceTo(java.lang.String deviceId,
int newPosition)
Calls
Observer.onNext(Object) if device is moved
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method. |
rx.Observable<java.lang.Void> |
removeDevice(java.lang.String deviceId)
Calls
Observer.onNext(Object) if device is removed
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method. |
rx.Observable<java.lang.Void> |
update(int position)
Calls
Observer.onNext(Object) if group is updated
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method. |
rx.Observable<java.lang.Void> |
update(java.lang.String name)
Calls
Observer.onNext(Object) if group is updated
Observer.onError(Throwable) otherwise. |
public java.lang.String getId()
public java.lang.String getName()
public rx.Observable<java.lang.Void> update(java.lang.String name)
Observer.onNext(Object) if group is updated
Observer.onError(Throwable) otherwise.
Subscription is necessary to run the method.Observablepublic rx.Observable<java.lang.Void> update(int position)
Observer.onNext(Object) if group is updated
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method.Observablepublic rx.Observable<java.lang.Void> addDevice(java.lang.String... deviceIds)
Observer.onNext(Object) if device is added to the group.
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method.Observablepublic rx.Observable<java.lang.Void> removeDevice(java.lang.String deviceId)
Observer.onNext(Object) if device is removed
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method.Observablepublic rx.Observable<java.lang.Void> moveDeviceTo(java.lang.String deviceId,
int newPosition)
Observer.onNext(Object) if device is moved
Observer.onError(Throwable) otherwise
Subscription is necessary to run the method.Observablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object