A
A
ankstoo2012-01-10 01:27:01
Android
ankstoo, 2012-01-10 01:27:01

Ios/android library to create data model with ability to load from network and local cache?

Good afternoon.
There is a task to make applications for ios and android, the main task of which is to download data from the server, cache it locally, show it, and update it.
We are going to make UI for each platform - its own.
The data is lists with texts, html, pictures.
The task is very popular, so I'm sure it has been done many times before us.
Perhaps someone will advise a library that:
- can generate DTO classes for ios and android according to the model;
- can load objects of these classes from the local cache (for example, SQLite) and from the server;
- can check the relevance of objects in the cache and, if necessary, download updates;
- not tied to the UI. GSh is implemented on each platform separately;
- it is desirable that classes be generated in native languages ​​for platforms (Java for android, ObjC for ios).
Perhaps there is a ready-made library for this - I will be glad.
If not - most likely someone did something similar, post the code - we will finalize it together - as a result there will be a very useful library.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
corristo, 2013-01-14
@corristo

Under iOS, Core Data (data model, persistence, object graph management) + AFNetworking (network requests) + AFIncrementalStore (storage implementation for Core Data using AFNetworking to receive / send data using the usual local storage for cache) is suitable for you.
Under Android unfortunately I will not prompt. I have never heard of any single lib with implementations for both operating systems.
Here is a motivational article about AFIncrementalStore .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question