本文整理汇总了C#中IBoardId类的典型用法代码示例。如果您正苦于以下问题:C# IBoardId类的具体用法?C# IBoardId怎么用?C# IBoardId使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IBoardId类属于命名空间,在下文中一共展示了IBoardId类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BoardsChangeNameRequest
public BoardsChangeNameRequest(IBoardId board, string name)
: base(board, "name", Method.PUT)
{
Guard.NotNullOrEmpty(name, "name");
this.AddValue(name);
}
示例2: ActionsForBoardRequest
public ActionsForBoardRequest(IBoardId board, ISince since, Paging paging, IEnumerable<ActionType> types)
: base(board, "actions")
{
this.AddTypeFilter(types);
this.AddSince(since);
this.AddPaging(paging);
}
示例3: BoardsChangeDescriptionRequest
public BoardsChangeDescriptionRequest(IBoardId board, string description)
: base(board, "desc", Method.PUT)
{
Guard.OptionalTrelloString(description, "desc");
this.AddValue(description);
}
示例4: BoardsChangeDescriptionRequest
public BoardsChangeDescriptionRequest(IBoardId board, string description)
: base(board, "desc", Method.PUT)
{
Guard.NotNull(description, "description");
this.AddValue(description);
}
示例5: BoardsChangeNameRequest
public BoardsChangeNameRequest(IBoardId board, string name)
: base(board, "name", Method.PUT)
{
Guard.RequiredTrelloString(name, "name");
this.AddValue(name);
}
示例6: NewList
/// <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: NewList
public NewList(string name, IBoardId board)
{
Guard.NotNullOrEmpty(name, "name");
Guard.NotNull(board, "board");
Name = name;
IdBoard = board.GetBoardId();
}
示例8: BoardsAddMemberRequest
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: CardsMoveToBoardRequest
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());
}
示例10: BoardsAddMemberRequest
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: Close
public Task Close(IBoardId board)
{
return _restClient.RequestAsync(new BoardsCloseRequest(board));
}
示例12: ChangeName
public Task ChangeName(IBoardId board, string name)
{
return _restClient.RequestAsync(new BoardsChangeNameRequest(board, name));
}
示例13: ChangePermissionLevel
public Task ChangePermissionLevel(IBoardId board, PermissionLevel permissionLevel)
{
return _restClient.RequestAsync(new BoardsChangePermissionLevelRequest(board, permissionLevel));
}
示例14: ChangeDescription
public Task ChangeDescription(IBoardId board, string description)
{
return _restClient.RequestAsync(new BoardsChangeDescriptionRequest(board, description));
}
示例15: ChangeLabelName
public Task ChangeLabelName(IBoardId board, Color color, string name)
{
return _restClient.RequestAsync(new BoardsChangeLabelNameRequest(board, color, name));
}