
com.radioreference.api.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of radio-reference-api Show documentation
Show all versions of radio-reference-api Show documentation
Java library to use the RadioReference.com API
The newest version!
package com.radioreference.api;
import com.radioreference.model.Country;
import com.radioreference.model.County;
import com.radioreference.model.Feed;
import com.radioreference.model.State;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
import java.util.List;
class Response {
@Root(name = "feeds")
static class Feeds {
@ElementList(inline = true, required = true, entry = "feed", type = Feed.class)
private List feeds;
public List getFeeds() {
return feeds;
}
@Override
public String toString() {
return "{feeds=" + feeds + '}';
}
}
@Root
static class Countries {
@ElementList(inline = true, required = true, entry = "country", type = Country.class)
private List countries;
public List getCountries() {
return countries;
}
@Override
public String toString() {
return "{countries=" + countries + '}';
}
}
@Root
static class States {
@ElementList(inline = true, required = true, entry = "state", type = State.class)
private List states;
public List getStates() {
return states;
}
@Override
public String toString() {
return "{states=" + states + '}';
}
}
@Root
static class Counties {
@ElementList(inline = true, required = true, entry = "county", type = County.class)
private List counties;
public List getCounties() {
return counties;
}
@Override
public String toString() {
return "{counties=" + counties + '}';
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy