@@ 8-152 (lines=145) @@ | ||
5 | use Hborras\TwitterAdsSDK\TwitterAds\Fields\VideoWebsiteCardFields; |
|
6 | use Hborras\TwitterAdsSDK\TwitterAds\Resource; |
|
7 | ||
8 | class VideoWebsiteCard extends Resource |
|
9 | { |
|
10 | const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/video_website'; |
|
11 | const RESOURCE = 'accounts/{account_id}/cards/video_website/{id}'; |
|
12 | ||
13 | /** Read Only */ |
|
14 | protected $id; |
|
15 | protected $preview_url; |
|
16 | protected $created_at; |
|
17 | protected $updated_at; |
|
18 | protected $deleted; |
|
19 | ||
20 | protected $properties = [ |
|
21 | VideoWebsiteCardFields::NAME, |
|
22 | VideoWebsiteCardFields::WEBSITE_TITLE, |
|
23 | VideoWebsiteCardFields::WEBSITE_URL, |
|
24 | VideoWebsiteCardFields::VIDEO_ID, |
|
25 | ]; |
|
26 | ||
27 | /** Writable */ |
|
28 | protected $name; |
|
29 | protected $website_title; |
|
30 | protected $website_url; |
|
31 | protected $video_id; |
|
32 | ||
33 | /** |
|
34 | * @return mixed |
|
35 | */ |
|
36 | public function getId() |
|
37 | { |
|
38 | return $this->id; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @return array |
|
43 | */ |
|
44 | public function getProperties() |
|
45 | { |
|
46 | return $this->properties; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param array $properties |
|
51 | */ |
|
52 | public function setProperties($properties) |
|
53 | { |
|
54 | $this->properties = $properties; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return mixed |
|
59 | */ |
|
60 | public function getName() |
|
61 | { |
|
62 | return $this->name; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @param mixed $name |
|
67 | */ |
|
68 | public function setName($name) |
|
69 | { |
|
70 | $this->name = $name; |
|
71 | } |
|
72 | ||
73 | /** |
|
74 | * @return mixed |
|
75 | */ |
|
76 | public function getWebsiteTitle() |
|
77 | { |
|
78 | return $this->website_title; |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * @param mixed $website_title |
|
83 | */ |
|
84 | public function setWebsiteTitle($website_title) |
|
85 | { |
|
86 | $this->website_title = $website_title; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @return mixed |
|
91 | */ |
|
92 | public function getWebsiteUrl() |
|
93 | { |
|
94 | return $this->website_url; |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @param mixed $website_url |
|
99 | */ |
|
100 | public function setWebsiteUrl($website_url) |
|
101 | { |
|
102 | $this->website_url = $website_url; |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * @return mixed |
|
107 | */ |
|
108 | public function getVideoId() |
|
109 | { |
|
110 | return $this->video_id; |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @param mixed $video_id |
|
115 | */ |
|
116 | public function setVideoId($video_id) |
|
117 | { |
|
118 | $this->video_id = $video_id; |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @return mixed |
|
123 | */ |
|
124 | public function getPreviewUrl() |
|
125 | { |
|
126 | return $this->preview_url; |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * @return mixed |
|
131 | */ |
|
132 | public function getCreatedAt() |
|
133 | { |
|
134 | return $this->created_at; |
|
135 | } |
|
136 | ||
137 | /** |
|
138 | * @return mixed |
|
139 | */ |
|
140 | public function getUpdatedAt() |
|
141 | { |
|
142 | return $this->updated_at; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * @return mixed |
|
147 | */ |
|
148 | public function getDeleted() |
|
149 | { |
|
150 | return $this->deleted; |
|
151 | } |
|
152 | } |
|
153 |
@@ 13-157 (lines=145) @@ | ||
10 | use Hborras\TwitterAdsSDK\TwitterAds\Fields\WebsiteCardFields; |
|
11 | use Hborras\TwitterAdsSDK\TwitterAds\Resource; |
|
12 | ||
13 | class WebsiteCard extends Resource |
|
14 | { |
|
15 | const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/website'; |
|
16 | const RESOURCE = 'accounts/{account_id}/cards/website/{id}'; |
|
17 | ||
18 | /** Read Only */ |
|
19 | protected $id; |
|
20 | protected $preview_url; |
|
21 | protected $created_at; |
|
22 | protected $updated_at; |
|
23 | protected $deleted; |
|
24 | ||
25 | protected $properties = [ |
|
26 | WebsiteCardFields::NAME, |
|
27 | WebsiteCardFields::WEBSITE_TITLE, |
|
28 | WebsiteCardFields::WEBSITE_URL, |
|
29 | WebsiteCardFields::IMAGE_MEDIA_ID, |
|
30 | ]; |
|
31 | ||
32 | /** Writable */ |
|
33 | protected $name; |
|
34 | protected $website_title; |
|
35 | protected $website_url; |
|
36 | protected $image_media_id; |
|
37 | ||
38 | /** |
|
39 | * @return mixed |
|
40 | */ |
|
41 | public function getId() |
|
42 | { |
|
43 | return $this->id; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return array |
|
48 | */ |
|
49 | public function getProperties() |
|
50 | { |
|
51 | return $this->properties; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param array $properties |
|
56 | */ |
|
57 | public function setProperties($properties) |
|
58 | { |
|
59 | $this->properties = $properties; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return mixed |
|
64 | */ |
|
65 | public function getName() |
|
66 | { |
|
67 | return $this->name; |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * @param mixed $name |
|
72 | */ |
|
73 | public function setName($name) |
|
74 | { |
|
75 | $this->name = $name; |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * @return mixed |
|
80 | */ |
|
81 | public function getWebsiteTitle() |
|
82 | { |
|
83 | return $this->website_title; |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * @param mixed $website_title |
|
88 | */ |
|
89 | public function setWebsiteTitle($website_title) |
|
90 | { |
|
91 | $this->website_title = $website_title; |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * @return mixed |
|
96 | */ |
|
97 | public function getWebsiteUrl() |
|
98 | { |
|
99 | return $this->website_url; |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * @param mixed $website_url |
|
104 | */ |
|
105 | public function setWebsiteUrl($website_url) |
|
106 | { |
|
107 | $this->website_url = $website_url; |
|
108 | } |
|
109 | ||
110 | /** |
|
111 | * @return mixed |
|
112 | */ |
|
113 | public function getImageMediaId() |
|
114 | { |
|
115 | return $this->image_media_id; |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * @param mixed $image_media_id |
|
120 | */ |
|
121 | public function setImageMediaId($image_media_id) |
|
122 | { |
|
123 | $this->image_media_id = $image_media_id; |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * @return mixed |
|
128 | */ |
|
129 | public function getPreviewUrl() |
|
130 | { |
|
131 | return $this->preview_url; |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * @return mixed |
|
136 | */ |
|
137 | public function getCreatedAt() |
|
138 | { |
|
139 | return $this->created_at; |
|
140 | } |
|
141 | ||
142 | /** |
|
143 | * @return mixed |
|
144 | */ |
|
145 | public function getUpdatedAt() |
|
146 | { |
|
147 | return $this->updated_at; |
|
148 | } |
|
149 | ||
150 | /** |
|
151 | * @return mixed |
|
152 | */ |
|
153 | public function getDeleted() |
|
154 | { |
|
155 | return $this->deleted; |
|
156 | } |
|
157 | } |
|
158 |