File tree Expand file tree Collapse file tree 3 files changed +10
-33
lines changed
src/main/java/com/julienvey/trello Expand file tree Collapse file tree 3 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ public class Label extends TrelloEntity {
88 private String color ;
99 private String name ;
1010
11+ public Label () {
12+ }
13+
14+ public Label (String value ) {
15+ String [] parts = value .split ("," , 2 );
16+ color = parts [0 ].trim ();
17+ if (parts .length >1 ) name = parts [1 ].trim ();
18+ }
19+
1120 /* Accessors */
1221 public String getColor () {
1322 return color ;
Original file line number Diff line number Diff line change 44import com .julienvey .trello .TrelloHttpClient ;
55import com .julienvey .trello .domain .*;
66import com .julienvey .trello .impl .domaininternal .Comment ;
7- import com .julienvey .trello .impl . domaininternal .Label ;
7+ import com .julienvey .trello .domain .Label ;
88import com .julienvey .trello .impl .http .RestTemplateHttpClient ;
99import org .slf4j .Logger ;
1010import org .slf4j .LoggerFactory ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments