release 0.1 #30

Manually merged
noemi3 merged 150 commits from release/0.1 into master 2020-01-18 14:59:02 +00:00
4 changed files with 122 additions and 4 deletions
Showing only changes of commit af7334e42a - Show all commits

View File

@ -3,6 +3,7 @@ package wekan.wrapper.entity;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
import java.util.List;
public class Board {
@SerializedName("_id")
@ -13,8 +14,8 @@ public class Board {
private Date createdAt;
private Date modifiedAt;
private int starts;
// TODO list of labels
// TODO list of members
private List<Label> labels;
private List<Member> members;
private Permission permission;
@SerializedName("color")
private BoardBackgroundColor backgroundColor;
@ -59,6 +60,14 @@ public class Board {
return starts;
}
public List<Label> getLabels() {
return labels;
}
public List<Member> getMembers() {
return members;
}
public Permission getPermission() {
return permission;
}
@ -125,13 +134,15 @@ public class Board {
", createdAt=" + createdAt +
", modifiedAt=" + modifiedAt +
", starts=" + starts +
", labels=" + labels +
", members=" + members +
", permission=" + permission +
", color=" + backgroundColor +
", backgroundColor=" + backgroundColor +
", description='" + description + '\'' +
", subtasksDefaultBoardId='" + subtasksDefaultBoardId + '\'' +
", subtasksDefaultListId='" + subtasksDefaultListId + '\'' +
", allowsSubtasks=" + allowsSubtasks +
", presentParentTask='" + presentParentTask + '\'' +
", presentParentTask=" + presentParentTask +
", startAt=" + startAt +
", dueAt=" + dueAt +
", endAt=" + endAt +

View 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 +
'}';
}
}

View 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
}

View 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 +
'}';
}
}