summaryrefslogtreecommitdiff
path: root/service/models.ice
blob: 7d8382966758a82faa2ce4ef9ffc712e799061a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef MIRRORSEARCH_MODELS
#define MIRRORSEARCH_MODELS

module MirrorSearch {
	class SearchService {
		["slicer:db:pkey"]
		int id;
		string name;
		string baseurl;
		optional(0) string referrer;
		optional(1) string useragent;
		string listxpath;
		string urlxpath;
		int parserflags;
	};
	class SearchHit {
		["slicer:db:pkey"]
		int id;
		int serviceid;
		string url;
	};

	sequence<SearchService> SearchServices;
	sequence<SearchHit> SearchHits;
};

#endif