forked from CrustyJew/RedditSharp-DEPRECATED-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiSubs.cs
More file actions
28 lines (25 loc) · 787 Bytes
/
MultiSubs.cs
File metadata and controls
28 lines (25 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace RedditSharp.Multi
{
/// <summary>
/// Class to contain the information for a single subreddit in a multi
/// </summary>
public class MultiSubs : RedditObject
{
/// <summary>
/// Name of the subreddit
/// </summary>
[JsonProperty("name")]
public string Name { get; private set; }
/// <summary>
/// Creates a new MultiSubs implementation
/// </summary>
/// <param name="agent">WebAgent object to use</param>
/// <param name="json">Token to use for the name</param>
protected internal MultiSubs(IWebAgent agent, JToken json) : base(agent)
{
Helpers.PopulateObject(json, this);
}
}
}