예제 #1
0
        public static List <Board> List(ITrelloApi api)
        {
            var member = Member.Get(api);
            var boards = api.GetBoards(member.Id, "id,name");

            return(boards);
        }
예제 #2
0
 public TrelloToTFS(IOptions <AppSettings> config,
                    ITrelloApi trelloApi,
                    ITFSApi tfsApi)
 {
     _config    = config.Value;
     _trelloApi = trelloApi;
     _tfsApi    = tfsApi;
 }
예제 #3
0
 public AppService(IOptions <AppSettings> config,
                   ITrelloApi trelloApi,
                   ITFSApi tfsApi,
                   ITrelloToTFS trelloToTFS,
                   ITrelloReportService trelloReportService)
 {
     _config              = config.Value;
     _trelloApi           = trelloApi;
     _tfsApi              = tfsApi;
     _trelloToTFS         = trelloToTFS;
     _trelloReportService = trelloReportService;
 }
예제 #4
0
        public static Comment Create(Comment comment, ITrelloApi api)
        {
            var newComment = api.CreateComment(comment);

            return(newComment);
        }
예제 #5
0
        public static List <Comment> List(string id, ITrelloApi api)
        {
            var comments = api.GetComments(id);

            return(comments);
        }
예제 #6
0
        public static List <Card> List(string boardId, ITrelloApi api)
        {
            var cards = api.GetCards(boardId, "id,name,desc,idBoard");

            return(cards);
        }
예제 #7
0
        public static Card Get(string id, ITrelloApi api)
        {
            var card = api.GetCard(id, "id,name,desc,idBoard");

            return(card);
        }
예제 #8
0
        public static Member Get(ITrelloApi api)
        {
            var member = api.GetMember("id,username,email");

            return(member);
        }
예제 #9
0
 public BoardsController(ITrelloApi api)
 {
     this._api = api;
 }