blob: 9e9c2fd7fee83b2c7b30f6222669a49643079397 (
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
|
#ifndef __TVSCRAPER_MOVIEDBMOVIE_H
#define __TVSCRAPER_MOVIEDBMOVIE_H
#include "moviedbactor.h"
using namespace std;
struct searchResult {
int id;
int distance;
};
// --- cMovieDbMovie -------------------------------------------------------------
class cMovieDbMovie {
private:
string json;
vector<searchResult> resultSet;
string apiKey;
string baseUrl;
string posterBaseUrl;
string backdropBaseUrl;
string actorBaseUrl;
vector<cMovieDBActor*> actors;
int currentActor;
int FindBestResult(void);
public:
cMovieDbMovie(string json);
virtual ~cMovieDbMovie(void);
int id;
string title;
string originalTitle;
string tagline;
string overview;
string backdropPath;
int backdropWidth;
int backdropHeight;
string posterPath;
int posterWidth;
int posterHeight;
bool adult;
int collectionID;
string collectionName;
string collectionPosterPath;
string collectionBackdropPath;
int budget;
int revenue;
string genres;
string homepage;
string imdbid;
string releaseDate;
int runtime;
float popularity;
float voteAverage;
int ParseJSONForMovieId(string movieSearchString);
void ParseJSON(void);
void SetApiKey(string apiKey) { this->apiKey = apiKey; };
void SetBaseUrl(string baseUrl) { this->baseUrl = baseUrl; };
void SetPosterBaseUrl(string url) { posterBaseUrl = url; };
void SetBackdropBaseUrl(string url) { backdropBaseUrl = url; };
void SetActorBaseUrl(string url) { actorBaseUrl = url; };
void ReadActors(void);
cMovieDBActor *GetActor(void);
void Dump();
};
#endif //__TVSCRAPER_TVDBSERIES_H
|