summaryrefslogtreecommitdiff
path: root/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java')
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
index e17d9b7d9..9011f3865 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/rpc/WindowState.java
@@ -104,8 +104,9 @@ public class WindowState extends RPCStruct {
* @param approximatePosition The approximate percentage that the window is open - 0 being fully closed, 100 being fully
* open
*/
- public void setApproximatePosition(@NonNull Integer approximatePosition) {
+ public WindowState setApproximatePosition(@NonNull Integer approximatePosition) {
setValue(KEY_APPROXIMATE_POSITION, approximatePosition);
+ return this;
}
/**
@@ -124,8 +125,9 @@ public class WindowState extends RPCStruct {
* @param deviation The percentage deviation of the approximatePosition. e.g. If the approximatePosition is 50
* and the deviation is 10, then the window's location is somewhere between 40 and 60.
*/
- public void setDeviation(@NonNull Integer deviation) {
+ public WindowState setDeviation(@NonNull Integer deviation) {
setValue(KEY_DEVIATION, deviation);
+ return this;
}
/**