blob: 1b5168267d112f1cee4fab943ed8a8191bb16c7c (
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
|
#ifndef __TVSCRAPER_MOVIEDBACTORS_H
#define __TVSCRAPER_MOVIEDBACTORS_H
using namespace std;
// --- cMovieDBActor -------------------------------------------------------------
class cMovieDBActor {
public:
cMovieDBActor(void) {
id = 0;
thumbUrl = "";
name = "";
role = "";
width = 370;
height = 556;
};
int id;
string thumbUrl;
int width;
int height;
string name;
string role;
void Dump(void) {
cout << "id: " << id << endl;
cout << "name: " << name << endl;
cout << "role: " << role << endl;
cout << "thumbnail: " << thumbUrl << endl;
};
};
// --- cMovieDBActors -------------------------------------------------------------
class cMovieDbActors {
private:
string json;
string actorsBaseUrl;
public:
cMovieDbActors(string json, string actorsBaseUrl);
virtual ~cMovieDbActors(void);
void ParseJSON(vector<cMovieDBActor*> *actors);
};
#endif //__TVSCRAPER_MOVIEDBACTORS_H
|