release 0.1 #30
@ -3,6 +3,7 @@ package wekan.wrapper.entity;
|
|||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class Board {
|
public class Board {
|
||||||
@SerializedName("_id")
|
@SerializedName("_id")
|
||||||
@ -13,8 +14,8 @@ public class Board {
|
|||||||
private Date createdAt;
|
private Date createdAt;
|
||||||
private Date modifiedAt;
|
private Date modifiedAt;
|
||||||
private int starts;
|
private int starts;
|
||||||
// TODO list of labels
|
private List<Label> labels;
|
||||||
// TODO list of members
|
private List<Member> members;
|
||||||
private Permission permission;
|
private Permission permission;
|
||||||
@SerializedName("color")
|
@SerializedName("color")
|
||||||
private BoardBackgroundColor backgroundColor;
|
private BoardBackgroundColor backgroundColor;
|
||||||
@ -59,6 +60,14 @@ public class Board {
|
|||||||
return starts;
|
return starts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Label> getLabels() {
|
||||||
|
return labels;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Member> getMembers() {
|
||||||
|
return members;
|
||||||
|
}
|
||||||
|
|
||||||
public Permission getPermission() {
|
public Permission getPermission() {
|
||||||
return permission;
|
return permission;
|
||||||
}
|
}
|
||||||
@ -125,13 +134,15 @@ public class Board {
|
|||||||
", createdAt=" + createdAt +
|
", createdAt=" + createdAt +
|
||||||
", modifiedAt=" + modifiedAt +
|
", modifiedAt=" + modifiedAt +
|
||||||
", starts=" + starts +
|
", starts=" + starts +
|
||||||
|
", labels=" + labels +
|
||||||
|
", members=" + members +
|
||||||
", permission=" + permission +
|
", permission=" + permission +
|
||||||
", color=" + backgroundColor +
|
", backgroundColor=" + backgroundColor +
|
||||||
", description='" + description + '\'' +
|
", description='" + description + '\'' +
|
||||||
", subtasksDefaultBoardId='" + subtasksDefaultBoardId + '\'' +
|
", subtasksDefaultBoardId='" + subtasksDefaultBoardId + '\'' +
|
||||||
", subtasksDefaultListId='" + subtasksDefaultListId + '\'' +
|
", subtasksDefaultListId='" + subtasksDefaultListId + '\'' +
|
||||||
", allowsSubtasks=" + allowsSubtasks +
|
", allowsSubtasks=" + allowsSubtasks +
|
||||||
", presentParentTask='" + presentParentTask + '\'' +
|
", presentParentTask=" + presentParentTask +
|
||||||
", startAt=" + startAt +
|
", startAt=" + startAt +
|
||||||
", dueAt=" + dueAt +
|
", dueAt=" + dueAt +
|
||||||
", endAt=" + endAt +
|
", endAt=" + endAt +
|
||||||
|
25
wrapper/src/main/java/wekan/wrapper/entity/Label.java
Normal file
25
wrapper/src/main/java/wekan/wrapper/entity/Label.java
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package wekan.wrapper.entity;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
public class Label {
|
||||||
|
@SerializedName("_id")
|
||||||
|
private String id;
|
||||||
|
private String name;
|
||||||
|
private LabelColor color;
|
||||||
|
|
||||||
|
public Label(String id, String name, LabelColor color) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
this.color = color;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Label{" +
|
||||||
|
"id='" + id + '\'' +
|
||||||
|
", name='" + name + '\'' +
|
||||||
|
", color=" + color +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
54
wrapper/src/main/java/wekan/wrapper/entity/LabelColor.java
Normal file
54
wrapper/src/main/java/wekan/wrapper/entity/LabelColor.java
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
package wekan.wrapper.entity;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
public enum LabelColor {
|
||||||
|
@SerializedName("green")
|
||||||
|
GREEN,
|
||||||
|
@SerializedName("yellow")
|
||||||
|
YELLOW,
|
||||||
|
@SerializedName("orange")
|
||||||
|
ORANGE,
|
||||||
|
@SerializedName("red")
|
||||||
|
RED,
|
||||||
|
@SerializedName("purple")
|
||||||
|
PURPLE,
|
||||||
|
@SerializedName("blue")
|
||||||
|
BLUE,
|
||||||
|
@SerializedName("sky")
|
||||||
|
SKY,
|
||||||
|
@SerializedName("lime")
|
||||||
|
LIME,
|
||||||
|
@SerializedName("pink")
|
||||||
|
PINK,
|
||||||
|
@SerializedName("black")
|
||||||
|
BLACK,
|
||||||
|
@SerializedName("silver")
|
||||||
|
SILVER,
|
||||||
|
@SerializedName("peachpuff")
|
||||||
|
PEACHPUFF,
|
||||||
|
@SerializedName("crimson")
|
||||||
|
CRIMSON,
|
||||||
|
@SerializedName("plum")
|
||||||
|
PLUM,
|
||||||
|
@SerializedName("darkgreen")
|
||||||
|
DARKGREEN,
|
||||||
|
@SerializedName("slateblue")
|
||||||
|
SLATEBLUE,
|
||||||
|
@SerializedName("magenta")
|
||||||
|
MAGENTA,
|
||||||
|
@SerializedName("gold")
|
||||||
|
GOLD,
|
||||||
|
@SerializedName("navy")
|
||||||
|
NAVY,
|
||||||
|
@SerializedName("gray")
|
||||||
|
GRAY,
|
||||||
|
@SerializedName("saddlebrown")
|
||||||
|
SADDLEBROWN,
|
||||||
|
@SerializedName("paleturquoise")
|
||||||
|
PALETURQUOISE,
|
||||||
|
@SerializedName("mistyrose")
|
||||||
|
MISTYROSE,
|
||||||
|
@SerializedName("indigo")
|
||||||
|
INDIGO
|
||||||
|
}
|
28
wrapper/src/main/java/wekan/wrapper/entity/Member.java
Normal file
28
wrapper/src/main/java/wekan/wrapper/entity/Member.java
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
package wekan.wrapper.entity;
|
||||||
|
|
||||||
|
public class Member {
|
||||||
|
private String userId;
|
||||||
|
private boolean isActive;
|
||||||
|
private boolean isAdmin;
|
||||||
|
private boolean isNoComments;
|
||||||
|
private boolean isCommentOnly;
|
||||||
|
|
||||||
|
public Member(String userId, boolean isActive, boolean isAdmin, boolean isNoComments, boolean isCommentOnly) {
|
||||||
|
this.userId = userId;
|
||||||
|
this.isActive = isActive;
|
||||||
|
this.isAdmin = isAdmin;
|
||||||
|
this.isNoComments = isNoComments;
|
||||||
|
this.isCommentOnly = isCommentOnly;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Member{" +
|
||||||
|
"userId='" + userId + '\'' +
|
||||||
|
", isActive=" + isActive +
|
||||||
|
", isAdmin=" + isAdmin +
|
||||||
|
", isNoComments=" + isNoComments +
|
||||||
|
", isCommentOnly=" + isCommentOnly +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user