blob: fab8b09ba770bb9f24847cb6c431cb49abc8d2ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package com.smartdevicelink.proxy.rpc;
import android.support.annotation.NonNull;
import java.util.Hashtable;
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCResponse;
import com.smartdevicelink.proxy.rpc.enums.Result;
/**
* System Request Response is sent, when SystemRequest has been called
*
* @since SmartDeviceLink 3.0
*/
public class SystemRequestResponse extends RPCResponse {
public SystemRequestResponse() {
super(FunctionID.SYSTEM_REQUEST.toString());
}
public SystemRequestResponse(Hashtable<String, Object> hash) {
super(hash);
}
/**
* Constructs a new SystemRequestResponse object
* @param success whether the request is successfully processed
* @param resultCode whether the request is successfully processed
*/
public SystemRequestResponse(@NonNull Boolean success, @NonNull Result resultCode) {
this();
setSuccess(success);
setResultCode(resultCode);
}
}
|