APISonar


io.reark.rxgithubapp.advanced.data.schematicProvider.JsonIdColumns.JSON

> io > reark > rxgithubapp > advanced > data > schematicProvider > JsonIdColumns > JSON
io APIs reark APIs rxgithubapp APIs advanced APIs data APIs schematicProvider APIs JsonIdColumns APIs JSON APIs

Example 1
protected GitHubRepository read(@NonNull final Cursor cursor) {
        checkNotNull(cursor);

        final String json = cursor.getString(cursor.getColumnIndex(JsonIdColumns.JSON));
        return gson.fromJson(json, GitHubRepository.class);
    }
Example 2
protected ContentValues getContentValuesForItem(@NonNull final NetworkRequestStatus item) {
        checkNotNull(item);

        ContentValues contentValues = new ContentValues();
        contentValues.put(JsonIdColumns.ID, item.getUri().hashCode());
        contentValues.put(JsonIdColumns.JSON, gson.toJson(item));
        return contentValues;
    }