/** * ******************************************************************************* * Copyright 2016 Tom Praschan * <p/> * 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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * 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. * ****************************************************************************** */ package de.tap.easy_xkcd.database; import io.realm.RealmObject; import io.realm.annotations.PrimaryKey; public class RealmComic extends RealmObject { @PrimaryKey private int comicNumber; private boolean isRead; private boolean isFavorite; private String title; private String transcript; private String url; private String preview; public int getComicNumber() { return comicNumber; } public void setComicNumber(int comicNumber) { this.comicNumber = comicNumber; } public boolean isRead() { return isRead; } public void setRead(boolean read) { isRead = read; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getTranscript() { return transcript; } public void setTranscript(String transcript) { this.transcript = transcript; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public boolean isFavorite() { return isFavorite; } public void setFavorite(boolean favorite) { isFavorite = favorite; } public String getPreview() { return preview; } public void setPreview(String preview) { this.preview = preview; } }