コード例 #1
0
 public IVotesSearchLawApiCall Sorting(VotesSorting sorting)
 {
   this.Parameters["sort"] = sorting.String();
   return this;
 }
コード例 #2
0
 public IVotesSearchResult Search(long? convocation = null, DateTime? from = null, DateTime? to = null, long? faction = null, long? deputy = null, string number = null, string keywords = null, int? page = null, PageSize? limit = null, VotesSorting? sorting = null)
 {
   return this.caller.Call<VotesSearchResult>("/{0}/voteSearch".FormatSelf(this.caller.ApiToken), new Dictionary<string, object> { { "convocation", convocation }, { "from", from != null ? from.Value.RuLawDate() : null }, { "to", to != null ? to.Value.RuLawDate() : null }, { "faction", faction }, { "deputy", deputy }, { "number", number }, { "keywords", keywords }, { "page", page }, { "limit", (int?) limit }, { "sort", sorting != null ? sorting.Value.String() : null } }).Data;
 }