Search in sources :

Example 1 with Curren_weather

use of com.octo.android.robospice.retrofit.test.model.Curren_weather in project robospice by stephanenicolas.

the class JsonObjectPersisterFactoryTest method buildWeather.

private WeatherResult buildWeather(String temp, String tempUnit) {
    WeatherResult weatherRequestStatus = new WeatherResult();
    Weather weather = new Weather();
    List<Curren_weather> currents = new ArrayList<Curren_weather>();
    Curren_weather current_weather = new Curren_weather();
    current_weather.setTemp(temp);
    current_weather.setTemp_unit(tempUnit);
    currents.add(current_weather);
    weather.setCurren_weather(currents);
    weatherRequestStatus.setWeather(weather);
    return weatherRequestStatus;
}
Also used : Weather(com.octo.android.robospice.retrofit.test.model.Weather) WeatherResult(com.octo.android.robospice.retrofit.test.model.WeatherResult) ArrayList(java.util.ArrayList) Curren_weather(com.octo.android.robospice.retrofit.test.model.Curren_weather)

Aggregations

Curren_weather (com.octo.android.robospice.retrofit.test.model.Curren_weather)1 Weather (com.octo.android.robospice.retrofit.test.model.Weather)1 WeatherResult (com.octo.android.robospice.retrofit.test.model.WeatherResult)1 ArrayList (java.util.ArrayList)1