Ejemplo n.º 1
0
        public string Stringify()
        {
            var sort = new SortParameters()
            {
                Property  = Property,
                Direction = Direction
            };

            return(JsonConvert.SerializeObject(sort,
                                               Formatting.Indented,
                                               new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore, ContractResolver = new CamelCasePropertyNamesContractResolver()
            }));
        }
 public ProjectsRequest(SortParameters sortParam)
 {
     Sort = sortParam;
 }