public ActionsForBoardRequest(IBoardId board, ISince since, Paging paging, IEnumerable<ActionType> types) : base(board, "actions") { this.AddTypeFilter(types); this.AddSince(since); this.AddPaging(paging); }
public BoardsChangeNameRequest(IBoardId board, string name) : base(board, "name", Method.PUT) { Guard.RequiredTrelloString(name, "name"); this.AddValue(name); }
public BoardsChangeNameRequest(IBoardId board, string name) : base(board, "name", Method.PUT) { Guard.NotNullOrEmpty(name, "name"); this.AddValue(name); }
public BoardsChangeDescriptionRequest(IBoardId board, string description) : base(board, "desc", Method.PUT) { Guard.NotNull(description, "description"); this.AddValue(description); }
public BoardsChangeDescriptionRequest(IBoardId board, string description) : base(board, "desc", Method.PUT) { Guard.OptionalTrelloString(description, "desc"); this.AddValue(description); }
/// <param name="name">A string with a length from 1 to 16384.</param> /// <param name="board">Id of the board that the list should be added to.</param> public NewList(string name, IBoardId board) { Guard.NotNull(board, "board"); Name = name; IdBoard = board; }
public NewList(string name, IBoardId board) { Guard.NotNullOrEmpty(name, "name"); Guard.NotNull(board, "board"); Name = name; IdBoard = board.GetBoardId(); }
public BoardsAddMemberRequest(IBoardId board, IMemberId member, BoardMemberType type) : base(board, "members/{idMember}", Method.PUT) { Guard.NotNull(member, "member"); AddParameter("idMember", member.GetMemberId(), ParameterType.UrlSegment); AddParameter("type", type.ToTrelloString()); }
public CardsMoveToBoardRequest(ICardId card, IBoardId board, IListId list) : base(card, "idBoard", Method.PUT) { Guard.NotNull(board, "board"); this.AddValue(board.GetBoardId()); if (list != null) AddParameter("idList", list.GetListId()); }
public BoardsAddMemberRequest(IBoardId board, string email, string fullName, BoardMemberType type) : base(board, "members", Method.PUT) { Guard.RequiredTrelloString(email, "email"); Guard.RequiredTrelloString(fullName, "fullName"); AddParameter("email", email); AddParameter("fullName", fullName); AddParameter("type", type.ToTrelloString()); }
public IEnumerable<List> ForBoard(IBoardId board, ListFilter filter = ListFilter.Default) { return _restClient.Request<List<List>>(new ListsForBoardRequest(board, filter)); }
public void ChangeName(IBoardId board, string name) { _restClient.Request(new BoardsChangeNameRequest(board, name)); }
public MembersForBoardRequest(IBoardId board, MemberFilter filter) : base(board, "members") { this.AddFilter(filter); }
public void RemoveMember(IBoardId board, IMemberId member) { _restClient.Request(new BoardsRemoveMemberRequest(board, member)); }
public void Close(IBoardId board) { _restClient.Request(new BoardsCloseRequest(board)); }
public IEnumerable<Member> ForBoard(IBoardId board, MemberFilter filter = MemberFilter.Default) { return _restClient.Request<List<Member>>(new MembersForBoardRequest(board, filter)); }
public Task Close(IBoardId board) { return _restClient.RequestAsync(new BoardsCloseRequest(board)); }
public IEnumerable<List> ForBoard(IBoardId board, ListFilter filter = ListFilter.Open) { return _restClient.Request<List<List>>(new ListsForBoardRequest(board, filter)); }
public MembersForBoardRequest(IBoardId board, MemberFilter filter) : base(board, "members") { this.AddFilter(filter); this.AddRequiredMemberFields(); }
public BoardsMarkAsViewedRequest(IBoardId board) : base(board, "markAsViewed", Method.POST) { }
public List Add(string name, IBoardId board) { return Add(new NewList(name, board)); }
public List GetListForStatus(IBoardId boardId, TaskStatus status) { return(_trello.Lists.ForBoard(boardId).FirstOrDefault(l => l.Name == status.ToString())); }
public Task ChangeName(IBoardId board, string name) { return _restClient.RequestAsync(new BoardsChangeNameRequest(board, name)); }
public BoardsChangePermissionLevelRequest(IBoardId board, PermissionLevel permissionLevel) : base(board, "prefs/permissionLevel", Method.PUT) { this.AddValue(permissionLevel.ToTrelloString()); }
public Task ChangePermissionLevel(IBoardId board, PermissionLevel permissionLevel) { return _restClient.RequestAsync(new BoardsChangePermissionLevelRequest(board, permissionLevel)); }
public IEnumerable <Member> InvitedForBoard(IBoardId board) { return(_restClient.Request <List <Member> >(new MembersInvitedForBoardRequest(board))); }
public BoardRequest(IBoardId boardId, string resource = "") : base("boards/{boardId}/" + resource) { AddParameter("boardId", boardId.GetBoardId(), ParameterType.UrlSegment); }
public ListsForBoardRequest(IBoardId board, ListFilter filter) : base(board, "lists") { this.AddFilter(filter); }
public Task ReOpen(IBoardId board) { return _restClient.RequestAsync(new BoardsReOpenRequest(board)); }
public IEnumerable<Checklist> GetByBoard(IBoardId board) { Guard.NotNull(board, "board"); return _restClient.Request<List<Checklist>>(new BoardChecklistsRequest(board)); }
public void AddMember(IBoardId board, string email, string fullName, BoardMemberType type = BoardMemberType.Normal) { _restClient.Request(new BoardsAddMemberRequest(board, email, fullName, type)); }
public void ChangeLabelName(IBoardId board, Color color, string name) { _restClient.Request(new BoardsChangeLabelNameRequest(board, color, name)); }
public Task AddMember(IBoardId board, string email, string fullName, BoardMemberType type = BoardMemberType.Normal) { return _restClient.RequestAsync(new BoardsAddMemberRequest(board, email, fullName, type)); }
public void ReOpen(IBoardId board) { _restClient.Request(new BoardsReOpenRequest(board)); }
public Task ChangeLabelName(IBoardId board, Color color, string name) { return _restClient.RequestAsync(new BoardsChangeLabelNameRequest(board, color, name)); }
public Task MarkAsViewed(IBoardId board) { return _restClient.RequestAsync(new BoardsMarkAsViewedRequest(board)); }
public Task Move(ICardId card, IBoardId board, IListId list = null) { return(_restClient.RequestAsync(new CardsMoveToBoardRequest(card, board, list))); }
public Task ChangeDescription(IBoardId board, string description) { return _restClient.RequestAsync(new BoardsChangeDescriptionRequest(board, description)); }
public Task RemoveMember(IBoardId board, IMemberId member) { return _restClient.RequestAsync(new BoardsRemoveMemberRequest(board, member)); }
public Task <Card> WithShortId(int shortId, IBoardId boardId) { return(_restClient.RequestAsync <Card>(new CardsWithShortIdRequest(shortId, boardId))); }
public Task AddMember(IBoardId board, IMemberId member, BoardMemberType type = BoardMemberType.Normal) { return _restClient.RequestAsync(new BoardsAddMemberRequest(board, member, type)); }
public BoardsRequest(IBoardId board, string resource = "", Method method = Method.GET) : base("boards/{boardId}/" + resource, method) { Guard.NotNull(board, "board"); AddParameter("boardId", board.GetBoardId(), ParameterType.UrlSegment); }
public Task <IEnumerable <Member> > ForBoard(IBoardId board, MemberFilter filter = MemberFilter.All) { return(_restClient.RequestListAsync <Member>(new MembersForBoardRequest(board, filter))); }
public Task <IEnumerable <Member> > InvitedForBoard(IBoardId board) { return(_restClient.RequestListAsync <Member>(new MembersInvitedForBoardRequest(board))); }
public Task <IEnumerable <List> > ForBoard(IBoardId board, ListFilter filter = ListFilter.Open) { return(_restClient.RequestListAsync <List>(new ListsForBoardRequest(board, filter))); }
public ActionsForBoardRequest(IBoardId board, ISince since, Paging paging) : base(board, "actions") { this.AddSince(since); this.AddPaging(paging); }
public Task <List> Add(string name, IBoardId board) { return(Add(new NewList(name, board))); }
public ChecklistsAddRequest(IBoardId board, string name) : base(board, "checklists", Method.POST) { Guard.NotNullOrEmpty(name, "name"); AddParameter("name", name); }
public void Move(ICardId card, IBoardId board, IListId list = null) { _restClient.Request(new CardsMoveToBoardRequest(card, board, list)); }
public BoardsCloseRequest(IBoardId board) : base(board, "closed", Method.PUT) { this.AddValue("true"); }
public Card WithShortId(int shortId, IBoardId boardId) { return(_restClient.Request <Card>(new CardsWithShortIdRequest(shortId, boardId))); }
public BoardChecklistsRequest(IBoardId boardId) : base(boardId, "checklists") { }
public IEnumerable <Card> ForBoard(IBoardId board, BoardCardFilter filter = BoardCardFilter.Visible) { return(_restClient.Request <List <Card> >(new CardsForBoardRequest(board, filter))); }