com.barchart.ondemand.api.OnDemandRequest Maven / Gradle / Ivy
package com.barchart.ondemand.api;
import java.util.Map;
public interface OnDemandRequest {
public enum GenericRequestField {
QUARTER, ANNUAL;
public String getValue(GenericRequestField field) {
switch (field) {
case QUARTER:
return "Quarter";
case ANNUAL:
return "Annual";
default:
return "";
}
}
}
public static String BASE_URL = "http://ondemand.websol.barchart.com/";
String endpoint();
String name();
Map parameters();
}