File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace RedditSharp.Things
8
8
/// <summary>
9
9
/// A user that is banned in a subreddit.
10
10
/// </summary>
11
- public class BannedUser : RelUser
11
+ public class BannedUser : NotedUser
12
12
{
13
13
/// <inheritdoc />
14
14
public BannedUser ( IWebAgent agent , JToken json ) : base ( agent , json ) {
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using Newtonsoft . Json ;
3
+ using Newtonsoft . Json . Linq ;
4
+
5
+ namespace RedditSharp . Things . User
6
+ {
7
+ public class NotedUser : RelUser
8
+ {
9
+ public NotedUser ( IWebAgent agent , JToken json ) : base ( agent , json )
10
+ {
11
+ }
12
+
13
+ [ JsonProperty ( "note" ) ]
14
+ public String Note { get ; internal set ; }
15
+ }
16
+ }
Original file line number Diff line number Diff line change 4
4
5
5
namespace RedditSharp . Things . User
6
6
{
7
+ /// <summary>
8
+ /// Represents a user that was added to a user list or listing at a
9
+ /// time.
10
+ /// </summary>
7
11
public class RelUser : PartialUser
8
12
{
9
13
public RelUser ( IWebAgent agent , JToken json ) : base ( agent , json )
10
14
{
11
15
}
12
16
17
+ /// <summary>
18
+ /// The base-36 fullname of the rel item
19
+ /// </summary>
20
+ [ JsonProperty ( "rel_id" ) ]
21
+ public String RelFullName { get ; internal set ; }
22
+
13
23
/// <summary>
14
24
/// UTC time of when this user was added to the list
15
25
/// </summary>
16
26
[ JsonProperty ( "date" ) ]
17
27
[ JsonConverter ( typeof ( UnixTimestampConverter ) ) ]
18
- public DateTime ? DateUTC { get ; set ; }
28
+ public DateTime ? DateUTC { get ; internal set ; }
19
29
}
20
30
}
You can’t perform that action at this time.
0 commit comments