Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src/main/kotlin/com/aafanasev/fonoapi/retrofit
README.md
build.gradle configure publishing Mar 31, 2018

README.md

FonoApi Java Client

Download

Usage

Java

FonoApiService api = new FonoApiFactory().create();
        
api.getLatest("<token>", "samsung", 10).enqueue(new Callback<List<DeviceEntity>>() {

    @Override
    public void onResponse(Call<List<DeviceEntity>> call, Response<List<DeviceEntity>> response) {
        response.body().forEach(device -> {
            System.out.println(device.getDeviceName());
        });
    }

    @Override
    public void onFailure(Call<List<DeviceEntity>> call, Throwable t) {}

});

More samples in Kotlin and Java you can find here

Install

Maven

<dependency>
  <groupId>com.aafanasev</groupId>
  <artifactId>fonoapi-retrofit</artifactId>
  <version>1.0</version>
  <type>pom</type>
</dependency>

Gradle

// add repository
repositories {
    maven {
        url 'https://dl.bintray.com/aafanasev/maven'
    }
}

// add dependency
compile 'com.aafanasev:fonoapi-retrofit:1.0'
You can’t perform that action at this time.