blob: eb92b6fcc9e28b273df79280dd33cc62a1350f6e (
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
|
package com.ford.avarsdl.requests;
import com.ford.avarsdl.service.SDLService;
import com.ford.avarsdl.util.Logger;
import com.ford.syncV4.proxy.SyncProxyALM;
import com.ford.syncV4.proxy.rpc.CancelAccess;
import org.json.JSONObject;
/**
* Created with Android Studio.
* Author: Chernyshov Yuriy - Mobile Development
* Date: 11/26/13
* Time: 11:41 AM
*/
public class CancelAccessCommand implements RequestCommand {
@Override
public void execute(int id, JSONObject jsonParameters) {
SyncProxyALM proxy = SDLService.getProxyInstance();
if (proxy != null) {
CancelAccess msg = new CancelAccess();
msg.setCorrelationID(id);
try {
//Logger.d(getClass().getSimpleName() + " Sending Cancel Access: " + jsonParameters);
proxy.sendRPCRequest(msg);
} catch (Throwable e) {
Logger.e(getClass().getSimpleName() + " can't send message", e);
}
}
}
}
|