Skip to content

Commit ebc5818

Browse files
committed
Adding ParentCardId and ParentBoardId to Card
1 parent fc329ba commit ebc5818

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

LeanKit.API.Client.Library/TransferObjects/Card.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public class Card
7474
public List<CardEvent> HistoryEvents { get; set; }
7575
public List<CardContextView> CardContexts { get; set; }
7676

77+
public virtual int? ParentCardId { get; set; }
78+
public virtual int? ParentBoardId { get; set; }
79+
7780
public CardView ToCardView()
7881
{
7982
var cardView = new CardView();
@@ -102,6 +105,8 @@ public CardView ToCardView()
102105
cardView.LastActivity = LastActivity;
103106
cardView.LastComment = LastComment;
104107
cardView.DateArchived = DateArchived;
108+
cardView.ParentBoardId = ParentBoardId;
109+
cardView.ParentCardId = ParentCardId;
105110

106111
return cardView;
107112
}

LeanKit.API.Client.Library/TransferObjects/CardView.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ public virtual string PriorityText
5454
public virtual string DateArchived { get; set; }
5555
public virtual string LastComment { get; set; }
5656
public virtual int CommentsCount { get; set; }
57-
57+
5858
public List<Comment> Comments { get; set; }
5959
public List<CardEvent> HistoryEvents { get; set; }
6060

61+
public int? ParentCardId { get; set; }
62+
public int? ParentBoardId { get; set; }
63+
6164
public Card ToCard()
6265
{
6366
var card = new Card();
@@ -88,6 +91,9 @@ public Card ToCard()
8891
card.LastActivity = LastActivity;
8992
card.LastComment = LastComment;
9093
card.DateArchived = DateArchived;
94+
card.ParentCardId = ParentCardId;
95+
card.ParentBoardId = ParentBoardId;
96+
9197
return card;
9298
}
9399
}

0 commit comments

Comments
 (0)