From d9ea6ac7185bfc54d58279a3455313f51360bfd9 Mon Sep 17 00:00:00 2001 From: Bilal Date: Wed, 23 May 2018 11:56:31 -0400 Subject: =?UTF-8?q?Updates=20per=20Joey=E2=80=99s=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdl_android/build.gradle | 1 + .../smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java | 13 +++++++++++-- .../com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdl_android/build.gradle b/sdl_android/build.gradle index 7904206a9..bdce1c53d 100644 --- a/sdl_android/build.gradle +++ b/sdl_android/build.gradle @@ -42,6 +42,7 @@ dependencies { }) testImplementation 'junit:junit:4.12' testImplementation 'org.mockito:mockito-core:2.9.0' + implementation 'com.android.support:support-annotations:27.1.1' } diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java index da6d27d9b..445594fb6 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java +++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OnSeekMediaClockTimer.java @@ -1,5 +1,7 @@ package com.smartdevicelink.proxy.rpc; +import android.support.annotation.NonNull; + import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCNotification; @@ -25,7 +27,7 @@ import java.util.Hashtable; * Describes the hour, minute and second values used for the current media clock timer. * Y * - * SmartDeviceLink 4.7 + * SmartDeviceLink 4.6 * * */ @@ -46,6 +48,13 @@ public class OnSeekMediaClockTimer extends RPCNotification { public OnSeekMediaClockTimer(Hashtable hash) { super(hash); } + /** + *Constructs a newly allocated OnSeekMediaClockTimer object + */ + public OnSeekMediaClockTimer(@NonNull StartTime seekTime) { + this(); + setSeekTime(seekTime); + } /** * Gets the StartTime object representing the current media clock timer * @@ -59,7 +68,7 @@ public class OnSeekMediaClockTimer extends RPCNotification { * * @param seekTime -a StartTime object with specifying hour, minute, second values */ - public void setSeekTime( StartTime seekTime ) { + public void setSeekTime( @NonNull StartTime seekTime ) { setParameters(KEY_SEEK_TIME, seekTime); } diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java index 29951c773..b24905a79 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java +++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SetMediaClockTimer.java @@ -57,7 +57,7 @@ import java.util.Hashtable; * Defines if seek media clock timer functionality will be available. * N * If omitted, the value is set to false. The value is retained until the next SetMediaClockTimer is sent. - * SmartDeviceLink 4.7 + * SmartDeviceLink 4.6 * * * -- cgit v1.2.1