RedditSharp.Things.Subreddit.InitAsync C# (CSharp) Method

InitAsync() public method

public InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent ) : Task
reddit Reddit
json JToken
webAgent IWebAgent
return Task
        public async Task<Subreddit> InitAsync(Reddit reddit, JToken json, IWebAgent webAgent)
        {
            CommonInit(reddit, json, webAgent);
            await Task.Factory.StartNew(() => JsonConvert.PopulateObject(json["data"].ToString(), this, reddit.JsonSerializerSettings));
            SetName();

            return this;
        }