Skip to content

Commit

Permalink
Id setter removed and TotalResults added
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Sep 11, 2014
1 parent 9f37eba commit bce0ea0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,15 @@ public long Count {
}
}

public long TotalResults {
get {
var el = ElementExtensions.ReadElementExtensions<string>("totalResults", "http://a9.com/-/spec/opensearch/1.1/");
if (el.Count > 0)
return long.Parse(el[0]);
return 0;
}
}

public void SerializeToStream(System.IO.Stream stream) {
JsConfig.ExcludeTypeInfo = true;
JsConfig.IncludeTypeInfo = false;
Expand Down

0 comments on commit bce0ea0

Please sign in to comment.