@@ -0,0 +1,1585 @@
+%0Apackage me.openphoto.android.app.net;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.Reader;%0Aimport java.io.StringWriter;%0Aimport java.io.Writer;%0A%0Aimport org.apache.http.HttpResponse;%0A%0Apublic class ApiResponse %7B%0A    private HttpResponse mResponse;%0A%0A    public ApiResponse(HttpResponse response) %7B%0A        mResponse = response;%0A    %7D%0A%0A    public String getContentAsString() throws IllegalStateException, IOException %7B%0A        return convertStreamToString(mResponse.getEntity().getContent());%0A    %7D%0A%0A    public boolean hasHeader(String name) %7B%0A        return mResponse.getFirstHeader(name) != null;%0A    %7D%0A%0A    public String getHeader(String name) %7B%0A        if (!hasHeader(name)) %7B%0A            return null;%0A        %7D%0A        return mResponse.getFirstHeader(name).getValue();%0A    %7D%0A%0A    public int getStatusCode() %7B%0A        return mResponse.getStatusLine().getStatusCode();%0A    %7D%0A%0A    private String convertStreamToString(final InputStream is) throws IOException %7B%0A        if (is != null) %7B%0A            Writer writer = new StringWriter();%0A%0A            char%5B%5D buffer = new char%5B1024%5D;%0A            try %7B%0A                Reader reader = new BufferedReader(new InputStreamReader(is, %22UTF-8%22));%0A                int n;%0A                while ((n = reader.read(buffer)) != -1) %7B%0A                    writer.write(buffer, 0, n);%0A                %7D%0A            %7D finally %7B%0A                is.close();%0A            %7D%0A            return writer.toString();%0A        %7D else %7B%0A            return %22%22;%0A        %7D%0A    %7D%0A%7D%0A

add ApiResponse class