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

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java175
1 files changed, 175 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java
new file mode 100644
index 000000000..63b1a6949
--- /dev/null
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/Card.java
@@ -0,0 +1,175 @@
+package it.niedermann.nextcloud.deck.model;
+
+import java.time.LocalDate;
+import java.util.ArrayList;
+import java.util.List;
+
+public class Card extends RemoteEntity {
+
+ private String title;
+ private String description;
+ private long stackId;
+ private String type;
+ private LocalDate lastModified;
+ private LocalDate createdAt;
+ private LocalDate deletedAt;
+ private List<Label> labels = new ArrayList<>();
+ private List<User> assignedUsers;
+ private String attachments;
+ private int attachmentCount;
+ private String owner;
+ private String order;
+ private boolean archived;
+ private String dueDate;
+ private int overdue;
+ private int commentsUnread;
+
+ public Card(long remoteId, String title) {
+ super(remoteId);
+ this.title = title;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public long getStackId() {
+ return stackId;
+ }
+
+ public void setStackId(long stackId) {
+ this.stackId = stackId;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public LocalDate getLastModified() {
+ return lastModified;
+ }
+
+ public void setLastModified(LocalDate lastModified) {
+ this.lastModified = lastModified;
+ }
+
+ public LocalDate getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(LocalDate createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public LocalDate getDeletedAt() {
+ return deletedAt;
+ }
+
+ public void setDeletedAt(LocalDate deletedAt) {
+ this.deletedAt = deletedAt;
+ }
+
+ public List<Label> getLabels() {
+ return labels;
+ }
+
+ public void setLabels(List<Label> labels) {
+ this.labels = labels;
+ }
+
+ public void addLabel(Label label){
+ this.labels.add(label);
+ }
+
+ public List<User> getAssignedUsers() {
+ return assignedUsers;
+ }
+
+ public void setAssignedUsers(List<User> assignedUsers) {
+ this.assignedUsers = assignedUsers;
+ }
+
+ public void addAssignedUser(User user) {
+ this.assignedUsers.add(user);
+ }
+
+ public String getAttachments() {
+ return attachments;
+ }
+
+ public void setAttachments(String attachments) {
+ this.attachments = attachments;
+ }
+
+ public int getAttachmentCount() {
+ return attachmentCount;
+ }
+
+ public void setAttachmentCount(int attachmentCount) {
+ this.attachmentCount = attachmentCount;
+ }
+
+ public String getOwner() {
+ return owner;
+ }
+
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ public String getOrder() {
+ return order;
+ }
+
+ public void setOrder(String order) {
+ this.order = order;
+ }
+
+ public boolean isArchived() {
+ return archived;
+ }
+
+ public void setArchived(boolean archived) {
+ this.archived = archived;
+ }
+
+ public String getDueDate() {
+ return dueDate;
+ }
+
+ public void setDueDate(String dueDate) {
+ this.dueDate = dueDate;
+ }
+
+ public int getOverdue() {
+ return overdue;
+ }
+
+ public void setOverdue(int overdue) {
+ this.overdue = overdue;
+ }
+
+ public int getCommentsUnread() {
+ return commentsUnread;
+ }
+
+ public void setCommentsUnread(int commentsUnread) {
+ this.commentsUnread = commentsUnread;
+ }
+}