com.digitaldan.harmony.messages.StartActivityMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harmony-client Show documentation
Show all versions of harmony-client Show documentation
Logitech Harmony WebSocket Client
package com.digitaldan.harmony.messages;
import java.util.HashMap;
import java.util.Map;
public class StartActivityMessage {
public static final String MIME_TYPE = "harmony.activityengine?runactivity";
public static class StartActivityRequestMessage extends RequestMessage {
HashMap params = new HashMap<>();
public StartActivityRequestMessage(int activityId, long timeStamp) {
super(MIME_TYPE);
HashMap args = new HashMap<>();
args.put("rule", "start");
params.put("activityId", String.valueOf(activityId));
params.put("timeStamp", timeStamp);
params.put("args", args);
}
@Override
public Map getParams() {
return params;
}
}
public static class StartActivityResponseMethod extends ResponseMessage {
public StartActivityResponseMethod(int code, String id, String msg) {
super(code, id, msg);
}
}
}