From 28691c29e93fbc4fdb5ae4866287282840fba021 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 19 Sep 2014 23:52:30 +0000 Subject: First bash at a slicer ice proxy for TMDb and an untested instantiation in p2pvr's core adapter --- libtmdb/tmdb-common.ice | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 libtmdb/tmdb-common.ice (limited to 'libtmdb/tmdb-common.ice') diff --git a/libtmdb/tmdb-common.ice b/libtmdb/tmdb-common.ice new file mode 100644 index 0000000..532d65b --- /dev/null +++ b/libtmdb/tmdb-common.ice @@ -0,0 +1,90 @@ +#ifndef TMDB_COMMON_ICE +#define TMDB_COMMON_ICE + +module TMDb { + struct Date { + short Year; + short Month; + short Day; + }; + + struct CountryRef { + ["slicer:name:iso_3166_1"] + string Id; + + ["slicer:name:name"] + string Name; + }; + sequence CountryRefList; + + struct CompanyRef { + ["slicer:name:id"] + int Id; + + ["slicer:name:name"] + string Name; + }; + sequence CompanyRefList; + + struct Language { + ["slicer:name:iso_639_1"] + string Id; + + ["slicer:name:name"] + string Name; + }; + sequence LanguageList; + + struct Genre { + ["slicer:name:id"] + int Id; + + ["slicer:name:name"] + string Name; + }; + sequence GenreList; + + struct PersonRef { + ["slicer:name:id"] + int Id; + + ["slicer:name:name"] + string Name; + + ["slicer:name:profile_path"] + string ProfilePath; + }; + sequence PersonRefList; + + struct SeasonRef { + ["slicer:name:air_date", + "slicer:conversion:std.string:stringToDate:dateToString"] + Date AirDate; + + ["slicer:name:id"] + int Id; + + ["slicer:name:poster_path"] + string PosterPath; + + ["slicer:name:season_number"] + short SeasonNumber; + + }; + sequence SeasonRefList; + + struct NetworkRef { + ["slicer:name:id"] + int Id; + + ["slicer:name:name"] + string Name; + }; + sequence NetworkRefList; + + sequence Runtimes; + sequence StringList; +}; + +#endif + -- cgit v1.2.3