public static List <Board> List(ITrelloApi api) { var member = Member.Get(api); var boards = api.GetBoards(member.Id, "id,name"); return(boards); }
public TrelloToTFS(IOptions <AppSettings> config, ITrelloApi trelloApi, ITFSApi tfsApi) { _config = config.Value; _trelloApi = trelloApi; _tfsApi = tfsApi; }
public AppService(IOptions <AppSettings> config, ITrelloApi trelloApi, ITFSApi tfsApi, ITrelloToTFS trelloToTFS, ITrelloReportService trelloReportService) { _config = config.Value; _trelloApi = trelloApi; _tfsApi = tfsApi; _trelloToTFS = trelloToTFS; _trelloReportService = trelloReportService; }
public static Comment Create(Comment comment, ITrelloApi api) { var newComment = api.CreateComment(comment); return(newComment); }
public static List <Comment> List(string id, ITrelloApi api) { var comments = api.GetComments(id); return(comments); }
public static List <Card> List(string boardId, ITrelloApi api) { var cards = api.GetCards(boardId, "id,name,desc,idBoard"); return(cards); }
public static Card Get(string id, ITrelloApi api) { var card = api.GetCard(id, "id,name,desc,idBoard"); return(card); }
public static Member Get(ITrelloApi api) { var member = api.GetMember("id,username,email"); return(member); }
public BoardsController(ITrelloApi api) { this._api = api; }