예제 #1
0
        private DisqusThreadCloseRequest(DisqusThreadLookupType lookupType, params string[] threads)
        {
            var parameters = threads.Select(thread =>
                                            new KeyValuePair <string, string>(lookupType.AsParameterName(), thread));

            Parameters.AddRange(parameters);
        }
        public DisqusForumListThreadsRequest Thread(DisqusThreadLookupType lookupType, params string[] threads)
        {
            var parameters = threads.Select(thread =>
                                            new KeyValuePair <string, string>(lookupType.AsParameterName(), thread));

            Parameters.AddRange(parameters);

            return(this);
        }
예제 #3
0
 private DisqusThreadListPostsRequest(DisqusThreadLookupType lookupType, string thread)
 {
     Parameters.Add(new KeyValuePair <string, string>(lookupType.AsParameterName(), thread));
 }
예제 #4
0
 private DisqusThreadListUsersVotedThreadRequest(DisqusThreadLookupType lookupType, string thread) : base()
 {
     Parameters.Add(new KeyValuePair <string, string>(lookupType.AsParameterName(), thread));
 }
예제 #5
0
 private DisqusThreadVoteRequest(DisqusThreadLookupType lookupType, string thread, DisqusVote vote) : base()
 {
     Parameters.Add(new KeyValuePair <string, string>(lookupType.AsParameterName(), thread));
     Parameters.Add(new KeyValuePair <string, string>("vote", vote.ToString("D")));
 }