blob: 49b8a990efa9c6b268422e02a16d6ca69e47db42 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
package it.niedermann.nextcloud.deck.model.interfaces;
import android.support.annotation.NonNull;
import java.util.Date;
import it.niedermann.nextcloud.deck.model.enums.DBStatus;
public interface IRemoteEntity {
default IRemoteEntity getEntity() {return this;}
default Long getLocalId() {
return getEntity().getLocalId();
}
default void setLocalId(Long localId) {
getEntity().setLocalId(localId);
}
default long getAccountId() {
return getEntity().getAccountId();
}
default void setAccountId(long accountId) {
getEntity().setAccountId(accountId);
}
default Long getId() {
return getEntity().getId();
}
default void setId(Long id) {
getEntity().setId(id);
}
default int getStatus() {
return getEntity().getStatus();
}
default void setStatus(@NonNull int status) {
getEntity().setStatus(status);
}
default Date getLastModified() {
return getEntity().getLastModified();
}
default void setLastModified(Date lastModified) {
getEntity().setLastModified(lastModified);
}
default Date getLastModifiedLocal() {
return getEntity().getLastModifiedLocal();
}
default void setLastModifiedLocal(Date lastModifiedLocal) {
getEntity().setLastModifiedLocal(lastModifiedLocal);
}
default DBStatus getStatusEnum() {
return getEntity().getStatusEnum();
}
default void setStatusEnum(DBStatus status) {
getEntity().setStatusEnum(status);
}
}
|