From 63297f3817eebdf7276c5dbce2f742e4265791d9 Mon Sep 17 00:00:00 2001 From: Umberto Furno Date: Tue, 12 Nov 2019 00:55:42 +0100 Subject: [PATCH] Implementation card object --- .../main/java/wekan/wrapper/entity/Card.java | 326 ++++++++++++++++++ 1 file changed, 326 insertions(+) diff --git a/wrapper/src/main/java/wekan/wrapper/entity/Card.java b/wrapper/src/main/java/wekan/wrapper/entity/Card.java index d1b3ea6..8c64fb5 100644 --- a/wrapper/src/main/java/wekan/wrapper/entity/Card.java +++ b/wrapper/src/main/java/wekan/wrapper/entity/Card.java @@ -1,4 +1,330 @@ package wekan.wrapper.entity; +import com.google.gson.annotations.SerializedName; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + public class Card { + + public Card(String authorId, String title, String swimlaneId, String description) { + this.authorId= authorId; + this.title = title; + this.swimlaneId = swimlaneId; + this.description = description; + } + + public Card() { + + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Boolean getArchived() { + return archived; + } + + public void setArchived(Boolean archived) { + this.archived = archived; + } + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getListId() { + return listId; + } + + public void setListId(String listId) { + this.listId = listId; + } + + public String getSwimlaneId() { + return swimlaneId; + } + + public void setSwimlaneId(String swimlaneId) { + this.swimlaneId = swimlaneId; + } + + public String getBoardId() { + return boardId; + } + + public void setBoardId(String boardId) { + this.boardId = boardId; + } + + public String getCoverId() { + return coverId; + } + + public void setCoverId(String coverId) { + this.coverId = coverId; + } + + public String getColor() { + return color; + } + + public void setColor(String color) { + this.color = color; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getModifiedAt() { + return modifiedAt; + } + + public void setModifiedAt(Date modifiedAt) { + this.modifiedAt = modifiedAt; + } + + public List getCustomFields() { + return customFields; + } + + public void setCustomFields(List customFields) { + this.customFields = customFields; + } + + public Date getDateLastActivity() { + return dateLastActivity; + } + + public void setDateLastActivity(Date dateLastActivity) { + this.dateLastActivity = dateLastActivity; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getRequestedBy() { + return requestedBy; + } + + public void setRequestedBy(String requestedBy) { + this.requestedBy = requestedBy; + } + + public String getAssignedBy() { + return assignedBy; + } + + public void setAssignedBy(String assignedBy) { + this.assignedBy = assignedBy; + } + + public List getLabelIds() { + return labelIds; + } + + public void setLabelIds(List labelIds) { + this.labelIds = labelIds; + } + + public List getMembers() { + return members; + } + + public void setMembers(List members) { + this.members = members; + } + + public List getAssignees() { + return assignees; + } + + public void setAssignees(List assignees) { + this.assignees = assignees; + } + + public Date getReceivedAt() { + return receivedAt; + } + + public void setReceivedAt(Date receivedAt) { + this.receivedAt = receivedAt; + } + + public Date getStartAt() { + return startAt; + } + + public void setStartAt(Date startAt) { + this.startAt = startAt; + } + + public Date getDueAt() { + return dueAt; + } + + public void setDueAt(Date dueAt) { + this.dueAt = dueAt; + } + + public Date getEndAt() { + return endAt; + } + + public void setEndAt(Date endAt) { + this.endAt = endAt; + } + + public int getSpentTime() { + return spentTime; + } + + public void setSpentTime(int spentTime) { + this.spentTime = spentTime; + } + + public Boolean getOvertime() { + return isOvertime; + } + + public void setOvertime(Boolean overtime) { + isOvertime = overtime; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public int getSort() { + return sort; + } + + public void setSort(int sort) { + this.sort = sort; + } + + public int getSubtaskSort() { + return subtaskSort; + } + + public void setSubtaskSort(int subtaskSort) { + this.subtaskSort = subtaskSort; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getLinkedId() { + return linkedId; + } + + public void setLinkedId(String linkedId) { + this.linkedId = linkedId; + } + + @Override + public String toString() { + return "Card{" + + "id='" + id + '\'' + + ", title='" + title + '\'' + + ", archived=" + archived + + ", parentId='" + parentId + '\'' + + ", listId='" + listId + '\'' + + ", swimlaneId='" + swimlaneId + '\'' + + ", boardId='" + boardId + '\'' + + ", coverId='" + coverId + '\'' + + ", color='" + color + '\'' + + ", createdAt=" + createdAt + + ", modifiedAt=" + modifiedAt + + ", customFields=" + customFields + + ", dateLastActivity=" + dateLastActivity + + ", description='" + description + '\'' + + ", requestedBy='" + requestedBy + '\'' + + ", assignedBy='" + assignedBy + '\'' + + ", labelIds=" + labelIds + + ", members=" + members + + ", assignees=" + assignees + + ", receivedAt='" + receivedAt + '\'' + + ", startAt='" + startAt + '\'' + + ", dueAt='" + dueAt + '\'' + + ", endAt='" + endAt + '\'' + + ", spentTime=" + spentTime + + ", isOvertime=" + isOvertime + + ", userId='" + userId + '\'' + + ", sort=" + sort + + ", subtaskSort=" + subtaskSort + + ", type='" + type + '\'' + + ", linkedId='" + linkedId + '\'' + + '}'; + } + + @SerializedName("_id") + private String id; + private String title; + private Boolean archived; + private String parentId; + private String listId; + private String swimlaneId; + private String boardId; + private String coverId; + private String color; + private Date createdAt; + private Date modifiedAt; + private List customFields; + private Date dateLastActivity; + private String description; + private String requestedBy; + private String assignedBy; + private List labelIds; + private List members; + private List assignees; + private Date receivedAt; + private Date startAt; + private Date dueAt; + private Date endAt; + private int spentTime; + private Boolean isOvertime; + private String userId; + private int sort; + private int subtaskSort; + private String type; + private String linkedId; + private String authorId; }