-
Notifications
You must be signed in to change notification settings - Fork 4
GetAllCommentsOnCardAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
8 revisions
Get All Comments on a Card (if you only wish the latest comments use GetPagedCommentsOnCardAsync instead)
/// <summary>
/// Get All Comments on a Card
/// </summary>
/// <param name="cardId">Id of Card</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>List of Comments</returns>
public async Task<List<TrelloAction>> GetAllCommentsOnCardAsync(string cardId, CancellationToken cancellationToken = default) {...}
var cardId = "63c939a5cea0cb006dc9e9db";
List<TrelloAction> trelloActions = await _trelloClient.GetAllCommentsOnCardAsync(cardId);
foreach (TrelloAction trelloAction in trelloActions)
{
string commentText = trelloAction.Data.Text;
Member memberThatCreatedTheComment = trelloAction.MemberCreator;
DateTimeOffset dateAndTimeOfTheComment = trelloAction.Date;
}
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')