• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rwjdk / TrelloDotNet / 13163656973

05 Feb 2025 06:02PM UTC coverage: 45.486% (-2.7%) from 48.162%
13163656973

push

github

rwjdk
WIP

942 of 2803 branches covered (33.61%)

Branch coverage included in aggregate %.

1 of 456 new or added lines in 6 files covered. (0.22%)

11 existing lines in 4 files now uncovered.

2444 of 4641 relevant lines covered (52.66%)

42.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/TrelloDotNet/Model/Options/GetInboxCardOptions/GetInboxCardOptions.cs
1
using System.Collections.Generic;
2
using TrelloDotNet.Model.Options.GetCardOptions;
3

4
namespace TrelloDotNet.Model.Options.GetInboxCardOptions
5
{
6
    /// <summary>
7
    /// Options on how and what should be included on the cards (Example only a few fields to increase performance or more nested data to avoid more API calls)
8
    /// </summary>
9
    public class GetInboxCardOptions
10
    {
11
        /// <summary>
12
        /// all or a comma-separated list of fields. Defaults: badges, checkItemStates, closed, dateLastActivity, desc, descData, due, start, email, idBoard, idChecklists, idLabels, idList, idMembers, idShort, idAttachmentCover, manualCoverAttachment, labels, name, pos, shortUrl, url
13
        /// </summary>
14
        public CardFields CardFields { get; set; }
×
15

16
        /// <summary>
17
        /// Provide one or more Card-action types there (TrelloDotNet.Model.Webhook.WebhookActionTypes) to get them included with the Card
18
        /// </summary>
19
        public ActionTypesToInclude ActionsTypes { get; set; }
×
20

21
        /// <summary>
22
        /// Controls if cards should include their attachments (Default: False)
23
        /// </summary>
24
        public GetCardOptionsIncludeAttachments IncludeAttachments { get; set; } = GetCardOptionsIncludeAttachments.False;
×
25

26
        /// <summary>
27
        /// What attachments-fields to include if IncludeAttachments are set to 'True' or 'Cover'
28
        /// </summary>
29
        public AttachmentFields AttachmentFields { get; set; }
×
30

31
        /// <summary>
32
        /// Whether to return checklist objects for members on the card (Default: False)
33
        /// </summary>
34
        public bool IncludeChecklists { get; set; }
×
35

36
        /// <summary>
37
        /// What checklist-fields to include if IncludeChecklists are set to True
38
        /// </summary>
39
        public ChecklistFields ChecklistFields { get; set; }
×
40

41
        /// <summary>
42
        /// Whether to return CustomFieldsItem objects of the card (Default: False)
43
        /// </summary>
44
        public bool IncludeCustomFieldItems { get; set; }
×
45

46
        /// <summary>
47
        /// Limit how many object are returned (Default All) [Only used by methods where multiple objects are returned
48
        /// </summary>
49
        public int? Limit { get; set; }
×
50

51
        /// <summary>
52
        /// A Card ID
53
        /// </summary>
54
        public string Before { get; set; } = null;
×
55

56
        /// <summary>
57
        /// A Card ID
58
        /// </summary>
59
        public string Since { get; set; } = null;
×
60

61
        /// <summary>
62
        /// What Kind of Cards should be included (Active, Closed/Archived or All)
63
        /// </summary>
64
        public CardsFilter? Filter { get; set; }
×
65

66
        /// <summary>
67
        /// Order the cards returned by this (only used when multiple cards are returned)
68
        /// </summary>
69
        public CardsOrderBy? OrderBy { get; set; }
×
70

71
        /// <summary>
72
        /// Additional Parameters not supported out-of-the-box
73
        /// </summary>
74
        public List<QueryParameter> AdditionalParameters { get; set; } = new List<QueryParameter>();
×
75

76
        /// <summary>
77
        /// Add conditions of which of the data from the call is actually returned (Note: this is in-memory filtering as Trello's API is not able to filter on server-side)
78
        /// </summary>
NEW
79
        public List<CardsFilterCondition> FilterConditions { get; set; } = new List<CardsFilterCondition>();
×
80

81
        internal GetCardOptions.GetCardOptions ToCardOptions()
82
        {
83
            return new GetCardOptions.GetCardOptions
×
84
            {
×
85
                ActionsTypes = ActionsTypes,
×
86
                AdditionalParameters = AdditionalParameters,
×
87
                AttachmentFields = AttachmentFields,
×
88
                Before = Before,
×
89
                CardFields = CardFields,
×
90
                IncludeCustomFieldItems = IncludeCustomFieldItems,
×
91
                ChecklistFields = ChecklistFields,
×
92
                IncludeAttachments = IncludeAttachments,
×
93
                IncludeChecklists = IncludeChecklists,
×
94
                Limit = Limit,
×
95
                Since = Since,
×
96
                Filter = Filter
×
97
            };
×
98
        }
99
    }
100
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc