summaryrefslogtreecommitdiff
path: root/PVideo.h
blob: ae61da46c4b308e8c1af7de07f67c10cae8eb00f (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
#ifndef VIDEO_H
#define VIDEO_H

#include <Poco/DOM/DOMParser.h>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/NamedNodeMap.h>
#include <Poco/DOM/NodeIterator.h>
#include <Poco/DOM/NodeFilter.h>
#include <Poco/DOM/NodeList.h>
#include <Poco/DOM/AutoPtr.h>
#include <Poco/Exception.h>
#include <Poco/Timestamp.h>
#include <Poco/String.h>

#include <vector>
#include <iostream>

#include "XmlObject.h"
#include "Media.h"

using Poco::XML::DOMParser;
using Poco::XML::Document;
using Poco::XML::NodeIterator;
using Poco::XML::NodeFilter;
using Poco::XML::Node;
using Poco::XML::AutoPtr;
using Poco::Exception;

namespace plexclient
{

class Video: XmlObject
{
public:
	Video(Poco::XML::Node* pNode);
	~Video();

public:
	int m_iRatingKey;
	std::string m_sStudio;
	MediaType m_tType;
	std::string m_sTitle;
	std::string m_sOriginalTitle;
	std::string m_sContentRating;
	std::string m_sSummary;
	long m_lViewoffset;
	Poco::Timestamp m_tLastViewedAt;
	int m_iYear;
	std::string m_sThumb;
	std::string m_sArt;
	long m_iDuration;
	Poco::Timestamp m_tAddedAt;
	Poco::Timestamp m_tUpdatedAt;

	std::vector<std::string> m_vGenre;
	std::vector<std::string> m_vWriter;
	std::vector<std::string> m_vDirector;
	std::vector<std::string> m_vCountry;
	std::vector<std::string> m_vRole;
	std::string m_sCollection;
	Media *m_pMedia;

};

}

#endif // VIDEO_H