/**
* Copyright (c) 2010-2016 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.openhab.binding.xbmc.rpc.calls;
import java.util.HashMap;
import java.util.Map;
import org.openhab.binding.xbmc.rpc.RpcCall;
import com.ning.http.client.AsyncHttpClient;
/**
* Player.Stop RPC
*
* @author Ard van der Leeuw
* @since 1.6.0
*/
public class ApplicationSetVolume extends RpcCall {
private Integer volume;
public ApplicationSetVolume(AsyncHttpClient client, String uri) {
super(client, uri);
}
@Override
protected String getName() {
return "Application.SetVolume";
}
public void setVolume(Integer volume) {
this.volume = volume;
}
@Override
protected Map<String, Object> getParams() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("volume", volume);
return params;
}
@Override
protected void processResponse(Map<String, Object> response) {
}
}