Back to project page Boxee-Thumb-Remote.
The source code is released under:
Apache License
If you think the Android project Boxee-Thumb-Remote 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 net.evendanan.android.thumbremote.network; //from ww w . j a va 2 s . c o m public class Response { private final boolean mSuccess; private final int mResponseCode; private final String mResponse; Response(boolean success, int responseCode, String response) { mSuccess = success; mResponse = response; mResponseCode = responseCode; } /** * Returns whether the fetch resulted in a 200. */ public boolean success() { return mSuccess; } public int responseCode(){ return mResponseCode; } /** * Returns the fetched content, or null if the fetch failed. */ public String response() { return mResponse; } }