Android API para Almacenamiento de Data

platform API License Bintray Android Arsenal Jitpack CircleCi

by Romell Domínguez

latestVersion es 1.0.a

Agregar en tu archivo build.gradle del proyecto Android:

repositories {
    jcenter()
}
dependencies {
    implementation 'com.romellfudi.store:fudi-store:{latestVersion}'
}

Implementación

Debes decorar tu clase con la anotación @JsonIgnoreProperties e implementar sus set & get:

@JsonIgnoreProperties(ignoreUnknown = true)
public class ObjectBean {
    private String data;
    private ArrayList<ObjectDetailBean> objectDetailBeans;
    // need getters
    ...
}

En caso los atributos no tengan métodos, se referenciará un valor ``nulo

Almacenando un objeto genérico de un clase:

SharePreferenced.save(myObjectClass,MyClass.class);

Almacenando distintas instancias de una clase:

SharePreferenced.save(myObjectClass,MyClass.class,"OBJ1");

License

Copyright 2016 Romell D.Z.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

2016, November