Back to project page final_year_frontend.
The source code is released under:
MIT License
If you think the Android project final_year_frontend listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.james.erebus.networking; // w w w . j a v a 2 s . com import java.net.URI; import java.net.URISyntaxException; /** * Child class of the {@link com.james.erebus.networking.Retriever} class for retrieving subscriptions * @author james * */ public class SubscriptionRetriever extends Retriever{ URI uri; String filename; public SubscriptionRetriever() { try { uri = new URI("http://teamfrag.net:3002/subscriptions.json"); } catch (URISyntaxException e) { e.printStackTrace(); } filename = "subscriptions.json"; } public SubscriptionRetriever(String subId) { try { uri = new URI("http://teamfrag.net:3002/subscriptions/" + subId + ".json"); } catch (URISyntaxException e) { e.printStackTrace(); } } /** * * @return The filename where subscriptions are stored internally */ public String getSubscriptionsFilename() { return filename; } /** * * @return The URI where subscriptions are stored on the server */ public URI getURI() { return uri; } }