All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nucleus.example.network.ItemsLoader Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
package nucleus.example.network;

import retrofit.Callback;

import javax.inject.Inject;
import javax.inject.Singleton;

@Singleton
public class ItemsLoader extends RetrofitLoader {

    private String name;

    @Inject
    public ItemsLoader() {
    }

    public void request(String name) {
        this.name = name;
        request();
    }

    @Override
    protected void doRequest(Callback callback) {
        api.getItems(name.split("\\s+")[0], name.split("\\s+")[1], callback);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy