Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AbstractJoinEntity.java « interfaces « model « deck « nextcloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce14ac6beccac383b0e7cb9053b9ad3da6f5613a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package it.niedermann.nextcloud.deck.model.interfaces;

import androidx.room.Entity;
import androidx.room.Ignore;

import it.niedermann.nextcloud.deck.model.enums.DBStatus;

@Entity()
public abstract class AbstractJoinEntity {

    protected int status = DBStatus.UP_TO_DATE.getId();

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Ignore
    public DBStatus getStatusEnum() {
        return DBStatus.findById(status);
    }

    @Ignore
    public void setStatusEnum(DBStatus status) {
        this.status = status.getId();
    }
}