Пример #1
0
		public ActionsForBoardRequest(IBoardId board, ISince since, Paging paging, IEnumerable<ActionType> types)
			: base(board, "actions")
		{
			this.AddTypeFilter(types);
			this.AddSince(since);
			this.AddPaging(paging);
		}		
Пример #2
0
		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);			
		}
Пример #6
0
		/// <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;
		}
Пример #7
0
        public NewList(string name, IBoardId board)
        {
            Guard.NotNullOrEmpty(name, "name");
            Guard.NotNull(board, "board");

            Name = name;
            IdBoard = board.GetBoardId();
        }
Пример #8
0
 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());            
 }
Пример #9
0
		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());
        }
Пример #11
0
 public IEnumerable<List> ForBoard(IBoardId board, ListFilter filter = ListFilter.Default)
 {
     return _restClient.Request<List<List>>(new ListsForBoardRequest(board, filter));
 }
Пример #12
0
 public void ChangeName(IBoardId board, string name)
 {
     _restClient.Request(new BoardsChangeNameRequest(board, name));
 }
Пример #13
0
 public MembersForBoardRequest(IBoardId board, MemberFilter filter)
     : base(board, "members")
 {
     this.AddFilter(filter);
 }
Пример #14
0
 public void RemoveMember(IBoardId board, IMemberId member)
 {
     _restClient.Request(new BoardsRemoveMemberRequest(board, member));
 }
Пример #15
0
 public void Close(IBoardId board)
 {
     _restClient.Request(new BoardsCloseRequest(board));
 }
Пример #16
0
 public IEnumerable<Member> ForBoard(IBoardId board, MemberFilter filter = MemberFilter.Default)
 {
     return _restClient.Request<List<Member>>(new MembersForBoardRequest(board, filter));
 }
Пример #17
0
		public Task Close(IBoardId board)
		{
			return _restClient.RequestAsync(new BoardsCloseRequest(board));
		}
Пример #18
0
 public IEnumerable<List> ForBoard(IBoardId board, ListFilter filter = ListFilter.Open)
 {
     return _restClient.Request<List<List>>(new ListsForBoardRequest(board, filter));
 }
Пример #19
0
 public MembersForBoardRequest(IBoardId board, MemberFilter filter)
     : base(board, "members")
 {
     this.AddFilter(filter);
     this.AddRequiredMemberFields();
 }
 public BoardsMarkAsViewedRequest(IBoardId board)
     : base(board, "markAsViewed", Method.POST)
 {
 }
Пример #21
0
 public List Add(string name, IBoardId board)
 {
     return Add(new NewList(name, board));
 }
Пример #22
0
 public List GetListForStatus(IBoardId boardId, TaskStatus status)
 {
     return(_trello.Lists.ForBoard(boardId).FirstOrDefault(l => l.Name == status.ToString()));
 }
Пример #23
0
		public Task ChangeName(IBoardId board, string name)
		{
			return _restClient.RequestAsync(new BoardsChangeNameRequest(board, name));
		}
Пример #24
0
 public BoardsChangePermissionLevelRequest(IBoardId board, PermissionLevel permissionLevel)
     : base(board, "prefs/permissionLevel", Method.PUT)
 {
     this.AddValue(permissionLevel.ToTrelloString());
 }
Пример #25
0
		public Task ChangePermissionLevel(IBoardId board, PermissionLevel permissionLevel)
		{
			return _restClient.RequestAsync(new BoardsChangePermissionLevelRequest(board, permissionLevel));
		}
Пример #26
0
 public IEnumerable <Member> InvitedForBoard(IBoardId board)
 {
     return(_restClient.Request <List <Member> >(new MembersInvitedForBoardRequest(board)));
 }
Пример #27
0
 public BoardRequest(IBoardId boardId, string resource = "")
     : base("boards/{boardId}/" + resource)
 {
     AddParameter("boardId", boardId.GetBoardId(), ParameterType.UrlSegment);
 }
Пример #28
0
 public ListsForBoardRequest(IBoardId board, ListFilter filter)
     : base(board, "lists")
 {
     this.AddFilter(filter);
 }
Пример #29
0
		public Task ReOpen(IBoardId board)
		{
			return _restClient.RequestAsync(new BoardsReOpenRequest(board));
		}
Пример #30
0
 public IEnumerable<Checklist> GetByBoard(IBoardId board)
 {
     Guard.NotNull(board, "board");
     return _restClient.Request<List<Checklist>>(new BoardChecklistsRequest(board));
 }
Пример #31
0
 public void AddMember(IBoardId board, string email, string fullName, BoardMemberType type = BoardMemberType.Normal)
 {
     _restClient.Request(new BoardsAddMemberRequest(board, email, fullName, type));
 }
Пример #32
0
 public Task ReOpen(IBoardId board)
 {
     return _restClient.RequestAsync(new BoardsReOpenRequest(board));
 }
Пример #33
0
 public void ChangeLabelName(IBoardId board, Color color, string name)
 {
     _restClient.Request(new BoardsChangeLabelNameRequest(board, color, name));
 }
Пример #34
0
 public Task AddMember(IBoardId board, string email, string fullName, BoardMemberType type = BoardMemberType.Normal)
 {
     return _restClient.RequestAsync(new BoardsAddMemberRequest(board, email, fullName, type));
 }
Пример #35
0
 public void ReOpen(IBoardId board)
 {
     _restClient.Request(new BoardsReOpenRequest(board));
 }
Пример #36
0
 public Task ChangeLabelName(IBoardId board, Color color, string name)
 {
     return _restClient.RequestAsync(new BoardsChangeLabelNameRequest(board, color, name));
 }
Пример #37
0
		public Task ChangeLabelName(IBoardId board, Color color, string name)
		{
			return _restClient.RequestAsync(new BoardsChangeLabelNameRequest(board, color, name));
		}
Пример #38
0
 public Task ChangePermissionLevel(IBoardId board, PermissionLevel permissionLevel)
 {
     return _restClient.RequestAsync(new BoardsChangePermissionLevelRequest(board, permissionLevel));
 }
Пример #39
0
 public List Add(string name, IBoardId board)
 {
     return Add(new NewList(name, board));
 }
Пример #40
0
 public Task MarkAsViewed(IBoardId board)
 {
     return _restClient.RequestAsync(new BoardsMarkAsViewedRequest(board));
 }
Пример #41
0
 public Task Move(ICardId card, IBoardId board, IListId list = null)
 {
     return(_restClient.RequestAsync(new CardsMoveToBoardRequest(card, board, list)));
 }
Пример #42
0
		public Task ChangeDescription(IBoardId board, string description)
		{
			return _restClient.RequestAsync(new BoardsChangeDescriptionRequest(board, description));
		}
Пример #43
0
 public Task RemoveMember(IBoardId board, IMemberId member)
 {
     return _restClient.RequestAsync(new BoardsRemoveMemberRequest(board, member));
 }
Пример #44
0
 public Task <Card> WithShortId(int shortId, IBoardId boardId)
 {
     return(_restClient.RequestAsync <Card>(new CardsWithShortIdRequest(shortId, boardId)));
 }
Пример #45
0
 public Task AddMember(IBoardId board, IMemberId member, BoardMemberType type = BoardMemberType.Normal)
 {
     return _restClient.RequestAsync(new BoardsAddMemberRequest(board, member, type));
 }
Пример #46
0
 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);
 }
Пример #47
0
 public Task ChangeDescription(IBoardId board, string description)
 {
     return _restClient.RequestAsync(new BoardsChangeDescriptionRequest(board, description));
 }
 public Task <IEnumerable <Member> > ForBoard(IBoardId board, MemberFilter filter = MemberFilter.All)
 {
     return(_restClient.RequestListAsync <Member>(new MembersForBoardRequest(board, filter)));
 }
Пример #49
0
 public Task ChangeName(IBoardId board, string name)
 {
     return _restClient.RequestAsync(new BoardsChangeNameRequest(board, name));
 }
 public Task <IEnumerable <Member> > InvitedForBoard(IBoardId board)
 {
     return(_restClient.RequestListAsync <Member>(new MembersInvitedForBoardRequest(board)));
 }
Пример #51
0
 public Task Close(IBoardId board)
 {
     return _restClient.RequestAsync(new BoardsCloseRequest(board));
 }
Пример #52
0
 public Task <IEnumerable <List> > ForBoard(IBoardId board, ListFilter filter = ListFilter.Open)
 {
     return(_restClient.RequestListAsync <List>(new ListsForBoardRequest(board, filter)));
 }
Пример #53
0
 public ActionsForBoardRequest(IBoardId board, ISince since, Paging paging)
     : base(board, "actions")
 {
     this.AddSince(since);
     this.AddPaging(paging);
 }
Пример #54
0
 public Task <List> Add(string name, IBoardId board)
 {
     return(Add(new NewList(name, board)));
 }
Пример #55
0
 public ChecklistsAddRequest(IBoardId board, string name)
     : base(board, "checklists", Method.POST)
 {
     Guard.NotNullOrEmpty(name, "name");
     AddParameter("name", name);
 }
Пример #56
0
 public void Move(ICardId card, IBoardId board, IListId list = null)
 {
     _restClient.Request(new CardsMoveToBoardRequest(card, board, list));
 }
Пример #57
0
		public BoardsCloseRequest(IBoardId board)
			: base(board, "closed", Method.PUT)
		{
			this.AddValue("true");			
		}
Пример #58
0
 public Card WithShortId(int shortId, IBoardId boardId)
 {
     return(_restClient.Request <Card>(new CardsWithShortIdRequest(shortId, boardId)));
 }
Пример #59
0
 public BoardChecklistsRequest(IBoardId boardId)
     : base(boardId, "checklists")
 {
 }
Пример #60
0
 public IEnumerable <Card> ForBoard(IBoardId board, BoardCardFilter filter = BoardCardFilter.Visible)
 {
     return(_restClient.Request <List <Card> >(new CardsForBoardRequest(board, filter)));
 }