Git Product home page Git Product logo

mobile_techs's People

Stargazers

 avatar

Watchers

 avatar  avatar

mobile_techs's Issues

Create WeatherRepo interface

  1. Add following API:
    • void fetchWeather(String query, WeatherCallback callback).
  2. Add inner interface WeatherCallback with API:
    • void done(WeatherResponse response).

Create List activity

  1. Add following UI: EditText with search button on top. RecyclerView with short weather items.
  2. Use WeatherRepoProvider to get WeatherRepo.
  3. Fetch data for needed query using WeatherRepo.
  4. Open Details screen after click on list item.
  5. Pass WeatherEntry as Parcelable to Details screen.
  6. Display for every item: date and time, weather summary (snow, cloudy, etc.), min/max temp.

Create WeatherResponse entity class

Entity JSON structure

{"cod":"200","list":[...]}
  1. Add needed fields.
  2. Add JsonProperty annotations for Jackson.
  3. Implement Parcelable interface.

Create WeatherEntry entity class

Entinty JSON structure:

{"dt":1452546000,"main":{"temp":269.2,"temp_min":266.348,"temp_max":269.2,"pressure":1000.91,"humidity":92},"weather":[{"main":"Snow","description":"light snow"}],"wind":{"speed":5.31,"deg":114.004},"dt_txt":"2016-01-11 21:00:00"}
  1. Add needed fields.
  2. Add JsonProperty annotations for Jackson.
  3. Implement Parcelable interface.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.