com.ubidots.DataSource Maven / Gradle / Ivy
package com.ubidots;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.gson.Gson;
/**
* Data Source.
*
* @author Ubidots
*/
public class DataSource extends ApiObject {
DataSource(Map raw, ApiClient api) {
super(raw, api);
}
public String getName() {
return getAttributeString("name");
}
public void remove() {
bridge.delete("datasources/" + getAttributeString("id"));
}
public Variable[] getVariables() {
String json = bridge.get("datasources/" + getAttributeString("id") + "/variables");
Gson gson = new Gson();
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy