blob: 590172ff17b454a42ab77caadbf966cfd4a05a4a [file] [log] [blame]
/**
* Copyright (c) 2017 CEA.
* 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
*
* Contributors:
* CEA - initial API and implementation and/or initial documentation
*/
package org.eclipse.sensinact.studio.http.client.snamessage;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
/**
* @author Etienne Gandrille
*/
public class RestProvidersList extends RestMessage {
public static final Object KEY = "PROVIDERS_LIST";
// {"statusCode":200,"providers":["webcam_10","weather_11"],"type":"PROVIDERS_LIST","uri":"/"}
public RestProvidersList(JSONObject jsonObject) throws JSONException {
super(jsonObject, "providers");
}
public List<String> getProviders() {
return internalList;
}
}