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

rwjdk / TrelloDotNet / 7308990850

23 Dec 2023 03:12PM UTC coverage: 63.815% (-2.5%) from 66.31%
7308990850

push

github

rwjdk
v1.9.7

890 of 1733 branches covered (0.0%)

Branch coverage included in aggregate %.

5 of 128 new or added lines in 7 files covered. (3.91%)

2 existing lines in 2 files now uncovered.

2332 of 3316 relevant lines covered (70.33%)

54.13 hits per line

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

53.85
/TrelloDotNet/TrelloDotNet/Model/Member.cs
1
using System.Diagnostics;
2
using System.Text.Json.Serialization;
3
using TrelloDotNet.Control;
4

5
namespace TrelloDotNet.Model
6
{
7
    /// <summary>
8
    /// Represent a member (User)
9
    /// </summary>
10
    [DebuggerDisplay("{FullName} (Id: {Id})")]
11
    public class Member
12
    {
13
        /// <summary>
14
        /// Id of the Member
15
        /// </summary>
16
        [JsonPropertyName("id")]
17
        [JsonInclude]
18
        public string Id { get; private set; }
390✔
19

20
        /// <summary>
21
        /// The full name related to the account, if it is public.
22
        /// </summary>
23
        [JsonPropertyName("fullName")]
24
        [JsonInclude]
25
        public string FullName { get; private set; }
373✔
26

27
        /// <summary>
28
        /// Username of the Member
29
        /// </summary>
30
        [JsonPropertyName("username")]
31
        [JsonInclude]
32
        public string Username { get; private set; }
362✔
33

34
        /// <summary>
35
        /// The initials related to the account, if it is public.
36
        /// </summary>
37
        [JsonPropertyName("initials")]
38
        [JsonInclude]
39
        public string Initials { get; private set; }
216✔
40

41
        /// <summary>
42
        /// The base url of this member's avatar
43
        /// </summary>
44
        [JsonPropertyName("avatarUrl")]
45
        [JsonInclude]
46
        public string AvatarUrl { get; private set; }
216✔
47

48
        /// <summary>
49
        /// 30x30 Pixel version of the Members Avatar Image
50
        /// </summary>
NEW
51
        public string AvatarUrl30 => AvatarUrl != null ? $"{AvatarUrl}/30.png" : null;
×
52

53
        /// <summary>
54
        /// 50x50 Pixel version of the Members Avatar Image
55
        /// </summary>
NEW
56
        public string AvatarUrl50 => AvatarUrl != null ? $"{AvatarUrl}/50.png" : null;
×
57

58
        /// <summary>
59
        /// 170x170 Pixel version of the Members Avatar Image
60
        /// </summary>
NEW
61
        public string AvatarUrl170 => AvatarUrl != null ? $"{AvatarUrl}/170.png" : null;
×
62

63
        /// <summary>
64
        /// Original version of the Members Avatar Image
65
        /// </summary>
NEW
66
        public string AvatarUrlOriginal => AvatarUrl != null ? $"{AvatarUrl}/original.png" : null;
×
67

68
        /// <summary>
69
        /// Whether the user has confirmed their email address for their account.
70
        /// </summary>
71
        [JsonPropertyName("confirmed")]
72
        [JsonInclude]
73
        public bool Confirmed { get; private set; }
12✔
74

75
        /// <summary>
76
        /// The Email of the member (only populated if field is included in GetMemberOptions)
77
        /// </summary>
78
        [JsonPropertyName("email")]
79
        [JsonInclude]
80
        public string Email { get; private set; }
12✔
81

82
        /// <summary>
83
        /// The Type of the Members (admin, normal, observer) [only populated if field is included in GetMemberOptions]
84
        /// </summary>
85
        [JsonPropertyName("memberType")]
86
        [JsonInclude]
87
        [JsonConverter(typeof(EnumViaJsonPropertyConverter<MembershipType>))]
88
        public MembershipType MemberType { get; private set; }
12✔
89

90
        internal static Member CreateDummy()
91
        {
92
            return new Member()
119✔
93
            {
119✔
94
                FullName = "Rasmus",
119✔
95
                Id = "63d1239e857afaa8b003c633",
119✔
96
                Username = "rwj"
119✔
97
            };
119✔
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