summaryrefslogtreecommitdiff
path: root/service/models.ice
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 08:30:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 08:30:08 +0000
commitafb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b (patch)
treee63b671e8dd8e3813ed2fa76a82a5aa39c5c2667 /service/models.ice
downloadmirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.bz2
mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.xz
mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.zip
Initial commit, WIP
Diffstat (limited to 'service/models.ice')
-rw-r--r--service/models.ice25
1 files changed, 25 insertions, 0 deletions
diff --git a/service/models.ice b/service/models.ice
new file mode 100644
index 0000000..cb48459
--- /dev/null
+++ b/service/models.ice
@@ -0,0 +1,25 @@
+#ifndef MIRRORSEARCH_MODELS
+#define MIRRORSEARCH_MODELS
+
+module MirrorSearch {
+ class SearchService {
+ ["slicer:db:pkey"]
+ int id;
+ string name;
+ string baseurl;
+ string listxpath;
+ string urlxpath;
+ };
+ class SearchHit {
+ ["slicer:db:pkey"]
+ int id;
+ int serviceid;
+ string url;
+ };
+
+ sequence<SearchService> SearchServices;
+ sequence<SearchHit> SearchHits;
+};
+
+#endif
+