contentful / vault

Easy persistence of Contentful data for Android over SQLite.
https://contentful.github.io/vault/
Apache License 2.0
85 stars 19 forks source link

How can I get Location fields with Vault? #150

Closed imecstamas closed 5 years ago

imecstamas commented 5 years ago

In the contentful web app we are using a Location which I can't get it to work on Android with Vault. There is no such model for it as for the Asset for example. How can I get it work? Thanks, Tamas

mariobodemann commented 5 years ago

Hey,

a location is a simple Map with loc and lat as keys. We will add this to our backlog, to try and avoid to have untyped maps anywhere, but for now we Map is the answer.

Greetings, Mario

mariobodemann commented 5 years ago

https://github.com/contentful/vault/blob/master/tests-integration/src/test/java/com/contentful/vaultintegration/lib/allthethings/AllTheThingsResource.java#L22

See above link for the definition in the test cases.

imecstamas commented 5 years ago

Thank you very much, it's working!