Giter Site home page Giter Site logo

xgrommx / rxandroid-architecture-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zsiegel/rxandroid-architecture-sample

0.0 3.0 0.0 175 KB

A sample project to demonstrate a an android app that can consume data from multiple sources using RxJava

License: MIT License

Java 100.00%

rxandroid-architecture-sample's Introduction

rxandroid-architecture-sample

A sample project to demonstrate an android app that can consume data from multiple sources using RxJava.

The basic project has 4 modules

  • app (this is the android application)
  • persistence (this is an android module that typically would have a content provider or even local data caching)
  • api (this is a java module for communication with an API)
  • core (this is a java module containing core domain classes)

Each module provides a specific set of functionality and exposes a Dagger module for access to their services.

At the application level we combine these modules and services and create a single service layer for the application to communicate with.

In this example the UserService that we use in our application is composed of both a UserApiService and a UserPersistenceService. The UserService is responsible for composing and serving the data based on the DataRequest.

A DataRequest at the basic level allows the user to specify their source (local(persistence), remote(api), or refresh(persistence and api)) and an ID to get a specific resource. This can be later extended for more querying and filtering as needed.

rxandroid-architecture-sample's People

Contributors

zsiegel avatar

Watchers

 avatar  avatar  avatar

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.