APISonar


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

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

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

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

        ContentValues contentValues = new ContentValues();
        contentValues.put(GitHubRepositorySearchColumns.SEARCH, item.getSearch());
        contentValues.put(GitHubRepositorySearchColumns.JSON, gson.toJson(item));
        return contentValues;
    }