Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjdk committed Oct 6, 2024
1 parent 8ebc5ba commit 3cea296
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog
*Below is the version history of [TrelloDotNet](https://github.com/rwjdk/TrelloDotNet) (An wrapper of the Trello API)*

## Unreleased
#### TrelloClient
- `GetBoardOptions` now have Filter options (All, Open, Closed or Starred boards)

<hr/>

## 1.11.1 (5th of October 2024)
#### Special
- Started Long-term preparing for v2.0 by obsoleting various things
Expand All @@ -9,6 +15,7 @@
- Added overload [GetLabelsOfBoardAsync](https://github.com/rwjdk/TrelloDotNet/wiki/GetLabelsOfBoardAsync) that let you specify `GetLabelOptions` in order to control fields returned and how many labels are returned (Default: 50, Max: 1000)
- All Get`<object>`Options now have an `AddtionalParameters` where you can inject additional QueryParameters should the out-of-the box framework not support it
- Added `Limit`, and `Before`/`Since` (paginating options) to `GetCardOptions`

<hr/>

## 1.11.0 (17th of September 2024)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public class GetBoardOptions
/// </summary>
public bool IncludePluginData { get; set; }

/// <summary>
/// What types of boards are returned (Default: All)
/// </summary>
public GetBoardOptionsFilter Filter { get; set; } = GetBoardOptionsFilter.All;

/// <summary>
/// Additional Parameters not supported out-of-the-box
/// </summary>
Expand Down Expand Up @@ -82,6 +87,7 @@ internal QueryParameter[] GetParameters()
}

parameters.Add(new QueryParameter("lists", IncludeLists.GetJsonPropertyName()));
parameters.Add(new QueryParameter("filter", Filter.GetJsonPropertyName()));
parameters.Add(new QueryParameter("cards", IncludeCards.GetJsonPropertyName()));
parameters.Add(new QueryParameter("labels", IncludeLabels ? "all" : "none"));
parameters.Add(new QueryParameter("pluginData", IncludePluginData));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System.Text.Json.Serialization;

namespace TrelloDotNet.Model.Options.GetBoardOptions
{
/// <summary>
/// What type of boards should be returned
/// </summary>
public enum GetBoardOptionsFilter
{
/// <summary>
/// All Boards regardless if they are open or note
/// </summary>
[JsonPropertyName("all")]
All,

/// <summary>
/// Closed Boards
/// </summary>
[JsonPropertyName("closed")]
Closed,

/// <summary>
/// Open Boards
/// </summary>
[JsonPropertyName("open")]
Open,

/// <summary>
/// Boards current Member have starred
/// </summary>
[JsonPropertyName("starred")]
Starred
}
}

0 comments on commit 3cea296

Please sign in to comment.