use of com.kboyarshinov.realmrxjavaexample.model.Issue in project realm-rxjava-example by kboyarshinov.
the class RealmDataService method issueFromRealm.
private static Issue issueFromRealm(RealmIssue realmIssue) {
final String title = realmIssue.getTitle();
final String body = realmIssue.getBody();
final User user = userFromRealm(realmIssue.getUser());
final RealmList<RealmLabel> realmLabels = realmIssue.getLabels();
final List<Label> labels = new ArrayList<>(realmLabels.size());
for (RealmLabel realmLabel : realmLabels) {
labels.add(labelFromRealm(realmLabel));
}
return new Issue(title, body, user, labels);
}
Aggregations