This class represents the request parameters that can be used when calling the topics service.
Author: Daniel Saidi [[email protected]] Link: http://github.com/danielsaidi/desk-csharp-sdk
Наследование: ParametersBase
        public void ToString_ShouldHandleNoSetValues()
        {
            var param = new GetTopicsParameters();

            Assert.That(param.ToString(), Is.EqualTo(string.Empty));
        }
Пример #2
0
 public GetTopicsResponse GetTopicsMapped(GetTopicsParameters parameters)
 {
     return new GetTopicsResponse(GetTopics(parameters));
 }
        public void ToString_ShouldHandleMultipleValues(int count, int page)
        {
            var param = new GetTopicsParameters { Count = count, Page = page };

            Assert.That(param.ToString(), Is.EqualTo("?count=" + count + "&page=" + page));
        }
Пример #4
0
 public IRestResponse GetTopics(GetTopicsParameters parameters)
 {
     return Api.Call("topics.json" + parameters, Method.GET);
 }