summaryrefslogtreecommitdiff
path: root/libtmdb/tmdb-common.ice
blob: 3619af6ade658ed87c13e1b9d13f230040eae6b9 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef TMDB_COMMON_ICE
#define TMDB_COMMON_ICE

["slicer:include:conversions.h"]
module TMDb {
	["slicer:conversion:std.string:stringToDate:dateToString:nodeclare"]
	struct Date {
		short Year;
		short Month;
		short Day;
	};

	struct CountryRef {
		["slicer:name:iso_3166_1"]
		string Id;

		["slicer:name:name"]
		string Name;
	};
	sequence<CountryRef> CountryRefList;

	struct CompanyRef {
		["slicer:name:id"]
		int Id;

		["slicer:name:name"]
		string Name;
	};
	sequence<CompanyRef> CompanyRefList;

	struct Language {
		["slicer:name:iso_639_1"]
		string Id;

		["slicer:name:name"]
		string Name;
	};
	sequence<Language> LanguageList;

	struct Genre {
		["slicer:name:id"]
		int Id;

		["slicer:name:name"]
		string Name;
	};
	sequence<Genre> GenreList;

	struct PersonRef {
		["slicer:name:id"]
		int Id;

		["slicer:name:name"]
		string Name;

		["slicer:name:profile_path"]
		string ProfilePath;
	};
	sequence<PersonRef> PersonRefList;

	struct SeasonRef {
		["slicer:name:air_date"]
		Date AirDate;

		["slicer:name:id"]
		int Id;

		["slicer:name:poster_path"]
		string PosterPath;

		["slicer:name:season_number"]
		short SeasonNumber;

	};
	sequence<SeasonRef> SeasonRefList;

	struct NetworkRef {
		["slicer:name:id"]
		int Id;

		["slicer:name:name"]
		string Name;
	};
	sequence<NetworkRef> NetworkRefList;

	sequence<short> Runtimes;
	sequence<string> StringList;
};

#endif