1 (* Wrapper around Perl Net::Google::Reponse class.
2 * Copyright (C) 2003 Merjis Ltd.
3 * $Id: pl_Net_Google_Response.ml,v 1.2 2003-10-15 16:51:12 rich Exp $
8 let _ = eval "use Net::Google::Response"
10 class net_google_response sv =
14 method documentFiltering =
15 bool_of_sv (call_method sv "documentFiltering" [])
16 method searchComments =
17 string_of_sv (call_method sv "searchComments" [])
18 method estimateTotalResultsNumber =
19 int_of_sv (call_method sv "estimateTotalResultsNumber" [])
20 method estimateIsExact =
21 bool_of_sv (call_method sv "estimateIsExact" [])
23 string_of_sv (call_method sv "searchQuery" [])
25 int_of_sv (call_method sv "startIndex" [])
27 int_of_sv (call_method sv "endIndex" [])
29 string_of_sv (call_method sv "searchTips" [])
30 method directoryCategories =
31 let sv = call_method sv "directoryCategories" [] in
32 let av = deref_array sv in
33 av_map (fun sv -> new net_google_response sv) av
35 float_of_sv (call_method sv "searchTime" [])
37 string_of_sv (call_method sv "toString" [])
39 string_of_sv (call_method sv "title" [])
41 string_of_sv (call_method sv "URL" [])
43 string_of_sv (call_method sv "snippet" [])
45 string_of_sv (call_method sv "cachedSize" [])
46 method directoryTitle =
47 string_of_sv (call_method sv "directoryTitle" [])
49 string_of_sv (call_method sv "summary" [])
51 string_of_sv (call_method sv "hostName" [])
53 (* method directoryCategory *)