rename LabelColor to Color #6
@ -2,7 +2,9 @@ package wekan.wrapper.entity;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
public enum LabelColor {
|
public enum Color {
|
||||||
|
@SerializedName("white")
|
||||||
|
WHITE,
|
||||||
@SerializedName("green")
|
@SerializedName("green")
|
||||||
GREEN,
|
GREEN,
|
||||||
@SerializedName("yellow")
|
@SerializedName("yellow")
|
@ -6,9 +6,9 @@ public class Label {
|
|||||||
@SerializedName("_id")
|
@SerializedName("_id")
|
||||||
private String id;
|
private String id;
|
||||||
private String name;
|
private String name;
|
||||||
private LabelColor color;
|
private Color color;
|
||||||
|
|
||||||
public Label(String id, String name, LabelColor color) {
|
public Label(String id, String name, Color color) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
@ -22,7 +22,7 @@ public class Label {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LabelColor getColor() {
|
public Color getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ public class LabelPrototype {
|
|||||||
* @param name The name of the new label
|
* @param name The name of the new label
|
||||||
* @param color The color of the new label
|
* @param color The color of the new label
|
||||||
*/
|
*/
|
||||||
public LabelPrototype(String name, LabelColor color) {
|
public LabelPrototype(String name, Color color) {
|
||||||
label = new Label(null, name, color);
|
label = new Label(null, name, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user