Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,18 @@ Now you got two options:
<tr><td>POST /1/webhooks </td><td>IMPLEMENTED</td></tr>
<tr><td>DELETE /1/webhooks/[idWebhook] </td><td>IMPLEMENTED</td></tr>

<tr><th colspan="2">Labels</th></tr>
<tr><td>GET /1/labels/[label] </td><td>IMPLEMENTED</td></tr>
<tr><td>POST /1/labels/[label] </td><td>IMPLEMENTED</td></tr>

</table>

## Contributors

[skydjol](https://github.com/skydjol)






Expand Down
8 changes: 6 additions & 2 deletions src/main/java/org/trello4j/CardService.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

/**
* The Interface CardService.
*
* @author
*
* @author
*/
public interface CardService {

Expand All @@ -34,6 +34,8 @@ public interface CardService {

List<Member> getMembersByCard(String cardId);

Card updateCard(String id, Map<String,String> keyValMap);

/**
* Add a new {@link Card} with the optional keyValue pairs.
* @param idList Id of the {@link org.trello4j.model.List}
Expand All @@ -42,4 +44,6 @@ public interface CardService {
* @param keyValeMap Map of the optional key-value-pairs.
*/
Card createCard(String idList, String name, Map<String, String> keyValeMap);

List<String> addLabelToCard(String idCard, String idLabel);
}
28 changes: 28 additions & 0 deletions src/main/java/org/trello4j/LabelService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package org.trello4j;

import org.trello4j.model.Label;

/**
* The Interface LabelService.
*
* @author joel
*/
public interface LabelService {

/**
* Gets the label.
*
* @param labelId
* the label id
* @return the label
*/
Label getLabel(String labelId);
/**
* Create a new label
* @param name
* @param boardId
* @param color (optionnal)
* @return
*/
Label createLabel(String name, String boardId, String color);
}
4 changes: 2 additions & 2 deletions src/main/java/org/trello4j/Trello.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* The Interface Trello.
*/
public interface Trello extends OrganizationService, NotificationService,
BoardService, CardService, ActionService, ListService, MemberService,
BoardService, CardService, ActionService, ListService, LabelService, MemberService,
ChecklistService, TokenService, WebhookService {

/**
* Gets the type.
*
*
* @param idOrName
* the id or name
* @return the type
Expand Down
11 changes: 10 additions & 1 deletion src/main/java/org/trello4j/TrelloException.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ public TrelloException() {

/**
* Instantiates a new trello exception.
*
*
* @param msg
* the msg
*/
public TrelloException(String msg) {
super(msg);
}
/**
* Instantiates a new trello exception.
*
* @param msg
* the msg
*/
public TrelloException(String msg, Throwable e) {
super(msg, e);
}

}
Loading