diff options
Diffstat (limited to 'libtmdb/tmdb-api.ice')
-rw-r--r-- | libtmdb/tmdb-api.ice | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libtmdb/tmdb-api.ice b/libtmdb/tmdb-api.ice new file mode 100644 index 0000000..e116f2d --- /dev/null +++ b/libtmdb/tmdb-api.ice @@ -0,0 +1,21 @@ +#ifndef TMDB_API_ICE +#define TMDB_API_ICE + +#include "tmdb-models.ice" + +module TMDb { + exception HttpException { + int code; + }; + interface API { + idempotent SearchMultiResults SearchMulti(string query, optional(0) int page); + idempotent SearchMovieResults SearchMovies(string query, optional(1) int year, optional(0) int page); + idempotent SearchPersonResults SearchPersons(string query, optional(0) int page); + idempotent SearchTvResults SearchTv(string query, optional(0) int page); + idempotent Movie GetMovie(int id); + idempotent TvSeries GetTvSeries(int id); + }; +}; + +#endif + |