// Path: app/src/main/java/de/lukasniemeier/gamecenterlivesender/utils/Functional.java
// public class Functional {
// 
//     public interface Procedure {
//         void execute();
//     }
// 
//     public interface Consumer<T> {
//         void accept(T t);
//     }
// 
//     public interface BiConsumer<R, S> {
//         void accept(R r, S s);
//     }
// 
//     public interface Supplier<T> {
//         T get();
//     }
// 
//     public interface Function<T, R> {
//         R apply(T t);
//     }
// 
//     public interface Predicate<T> {
//         boolean test(T t);
//     }
// }


import android.content.Context;
import org.droidparts.net.http.HTTPResponse;
import org.droidparts.net.http.RESTClient2;
import org.joda.time.DateTime;
import de.lukasniemeier.gamecenterlivesender.utils.Functional;

package de.lukasniemeier.gamecenterlivesender.http;




public class GetHttpTask extends HttpTask {

    private final DateTime modifiedSince;
    private final boolean asBody;

    public GetHttpTask(RESTClient2 restClient,
                       String url,
                       DateTime modifiedSince,
                       Context ctx,

// Path: app/src/main/java/de/lukasniemeier/gamecenterlivesender/utils/Functional.java
// public class Functional {
// 
//     public interface Procedure {
//         void execute();
//     }
// 
//     public interface Consumer<T> {
//         void accept(T t);
//     }
// 
//     public interface BiConsumer<R, S> {
//         void accept(R r, S s);
//     }
// 
//     public interface Supplier<T> {
//         T get();
//     }
// 
//     public interface Function<T, R> {
//         R apply(T t);
//     }
// 
//     public interface Predicate<T> {
//         boolean test(T t);
//     }
// }


// Path: app/src/main/java/de/lukasniemeier/gamecenterlivesender/http/GetHttpTask.java
import android.content.Context;
import org.droidparts.net.http.HTTPResponse;
import org.droidparts.net.http.RESTClient2;
import org.joda.time.DateTime;
import de.lukasniemeier.gamecenterlivesender.utils.Functional;

package de.lukasniemeier.gamecenterlivesender.http;




public class GetHttpTask extends HttpTask {

    private final DateTime modifiedSince;
    private final boolean asBody;

    public GetHttpTask(RESTClient2 restClient,
                       String url,
                       DateTime modifiedSince,
                       Context ctx,

                       Functional.Consumer<HTTPResponse> successFunction,
