BaconographyPortable.Model.Reddit.RedditService.AddComment C# (CSharp) Method

AddComment() public method

public AddComment ( string parentId, string content ) : System.Threading.Tasks.Task
parentId string
content string
return System.Threading.Tasks.Task
        public virtual async Task AddComment(string parentId, string content)
        {
            var modhash = await GetCurrentModhash();

            var arguments = new Dictionary<string, string>
            {
                {"thing_id", parentId},
                {"text", content.Replace("\r\n", "\n").Replace("+", "%2B")},
                {"uh", modhash}
            };

            ProcessJsonErrors(await this.SendPost(await GetCurrentLoginCookie(), arguments, "http://www.reddit.com/api/comment"));
        }