Object/ExifData.pm untested

filter: Statementstmt 0.0% 0 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 60 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
get_swagger_types
2.0
get_attribute_map
2.0
CRAP 2.0
1 package AsposeImagingCloud::Object::ExifData;
2
3 require 5.6.0;
4 use strict;
5 use warnings;
6 use utf8;
7 use JSON qw(decode_json);
8 use Data::Dumper;
9 use Module::Runtime qw(use_module);
10 use Log::Any qw($log);
11 use Date::Parse;
12 use DateTime;
13
14 use base "AsposeImagingCloud::Object::BaseObject";
15
16 #
17 #
18 #
19 #NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
20 #
21
22 my $swagger_types = {
23 'ApertureValue' => 'double',
24 'BodySerialNumber' => 'string',
25 'BrightnessValue' => 'double',
26 'CFAPattern' => 'string',
27 'CameraOwnerName' => 'string',
28 'ColorSpace' => 'string',
29 'ComponentsConfiguration' => 'string',
30 'CompressedBitsPerPixel' => 'double',
31 'Contrast' => 'string',
32 'CustomRendered' => 'string',
33 'DateTimeDigitized' => 'string',
34 'DateTimeOriginal' => 'string',
35 'DeviceSettingDescription' => 'string',
36 'DigitalZoomRatio' => 'double',
37 'ExifVersion' => 'string',
38 'ExposureBiasValue' => 'double',
39 'ExposureIndex' => 'double',
40 'ExposureMode' => 'string',
41 'ExposureProgram' => 'string',
42 'ExposureTime' => 'double',
43 'FNumber' => 'double',
44 'FileSource' => 'string',
45 'Flash' => 'string',
46 'FlashEnergy' => 'double',
47 'FlashpixVersion' => 'string',
48 'FocalLength' => 'double',
49 'FocalLengthIn35MmFilm' => 'int',
50 'FocalPlaneResolutionUnit' => 'string',
51 'FocalPlaneXResolution' => 'double',
52 'FocalPlaneYResolution' => 'double',
53 'GPSAltitude' => 'double',
54 'GPSAltitudeRef' => 'string',
55 'GPSAreaInformation' => 'string',
56 'GPSDOP' => 'double',
57 'GPSDestBearing' => 'double',
58 'GPSDestBearingRef' => 'string',
59 'GPSDestDistance' => 'double',
60 'GPSDestDistanceRef' => 'string',
61 'GPSDestLatitude' => 'ARRAY[double]',
62 'GPSDestLatitudeRef' => 'string',
63 'GPSDestLongitude' => 'ARRAY[double]',
64 'GPSDestLongitudeRef' => 'string',
65 'GPSDifferential' => 'int',
66 'GPSImgDirection' => 'double',
67 'GPSImgDirectionRef' => 'string',
68 'GPSDateStamp' => 'string',
69 'GPSLatitude' => 'ARRAY[double]',
70 'GPSLatitudeRef' => 'string',
71 'GPSLongitude' => 'ARRAY[double]',
72 'GPSLongitudeRef' => 'string',
73 'GPSMapDatum' => 'string',
74 'GPSMeasureMode' => 'string',
75 'GPSProcessingMethod' => 'string',
76 'GPSSatellites' => 'string',
77 'GPSSpeed' => 'double',
78 'GPSSpeedRef' => 'string',
79 'GPSStatus' => 'string',
80 'GPSTimestamp' => 'ARRAY[double]',
81 'GPSTrack' => 'string',
82 'GPSTrackRef' => 'string',
83 'GPSVersionID' => 'string',
84 'GainControl' => 'string',
85 'Gamma' => 'double',
86 'ISOSpeed' => 'int',
87 'ISOSpeedLatitudeYYY' => 'int',
88 'ISOSpeedLatitudeZZZ' => 'int',
89 'PhotographicSensitivity' => 'int',
90 'ImageUniqueID' => 'string',
91 'LensMake' => 'string',
92 'LensModel' => 'string',
93 'LensSerialNumber' => 'string',
94 'LensSpecification' => 'ARRAY[double]',
95 'LightSource' => 'string',
96 'MakerNoteRawData' => 'string',
97 'MaxApertureValue' => 'double',
98 'MeteringMode' => 'string',
99 'OECF' => 'string',
100 'PixelXDimension' => 'int',
101 'PixelYDimension' => 'int',
102 'RecommendedExposureIndex' => 'int',
103 'RelatedSoundFile' => 'string',
104 'Saturation' => 'string',
105 'SceneCaptureType' => 'string',
106 'SceneType' => 'string',
107 'SensingMethod' => 'string',
108 'SensitivityType' => 'int',
109 'Sharpness' => 'int',
110 'ShutterSpeedValue' => 'double',
111 'SpatialFrequencyResponse' => 'string',
112 'SpectralSensitivity' => 'string',
113 'StandardOutputSensitivity' => 'int',
114 'SubjectArea' => 'ARRAY[int]',
115 'SubjectDistance' => 'double',
116 'SubjectDistanceRange' => 'string',
117 'SubjectLocation' => 'ARRAY[int]',
118 'SubsecTime' => 'string',
119 'SubsecTimeDigitized' => 'string',
120 'SubsecTimeOriginal' => 'string',
121 'UserComment' => 'string',
122 'WhiteBalance' => 'string',
123 'WhitePoint' => 'ARRAY[double]'
124 };
125
126 my $attribute_map = {
127 'ApertureValue' => 'ApertureValue',
128 'BodySerialNumber' => 'BodySerialNumber',
129 'BrightnessValue' => 'BrightnessValue',
130 'CFAPattern' => 'CFAPattern',
131 'CameraOwnerName' => 'CameraOwnerName',
132 'ColorSpace' => 'ColorSpace',
133 'ComponentsConfiguration' => 'ComponentsConfiguration',
134 'CompressedBitsPerPixel' => 'CompressedBitsPerPixel',
135 'Contrast' => 'Contrast',
136 'CustomRendered' => 'CustomRendered',
137 'DateTimeDigitized' => 'DateTimeDigitized',
138 'DateTimeOriginal' => 'DateTimeOriginal',
139 'DeviceSettingDescription' => 'DeviceSettingDescription',
140 'DigitalZoomRatio' => 'DigitalZoomRatio',
141 'ExifVersion' => 'ExifVersion',
142 'ExposureBiasValue' => 'ExposureBiasValue',
143 'ExposureIndex' => 'ExposureIndex',
144 'ExposureMode' => 'ExposureMode',
145 'ExposureProgram' => 'ExposureProgram',
146 'ExposureTime' => 'ExposureTime',
147 'FNumber' => 'FNumber',
148 'FileSource' => 'FileSource',
149 'Flash' => 'Flash',
150 'FlashEnergy' => 'FlashEnergy',
151 'FlashpixVersion' => 'FlashpixVersion',
152 'FocalLength' => 'FocalLength',
153 'FocalLengthIn35MmFilm' => 'FocalLengthIn35MmFilm',
154 'FocalPlaneResolutionUnit' => 'FocalPlaneResolutionUnit',
155 'FocalPlaneXResolution' => 'FocalPlaneXResolution',
156 'FocalPlaneYResolution' => 'FocalPlaneYResolution',
157 'GPSAltitude' => 'GPSAltitude',
158 'GPSAltitudeRef' => 'GPSAltitudeRef',
159 'GPSAreaInformation' => 'GPSAreaInformation',
160 'GPSDOP' => 'GPSDOP',
161 'GPSDestBearing' => 'GPSDestBearing',
162 'GPSDestBearingRef' => 'GPSDestBearingRef',
163 'GPSDestDistance' => 'GPSDestDistance',
164 'GPSDestDistanceRef' => 'GPSDestDistanceRef',
165 'GPSDestLatitude' => 'GPSDestLatitude',
166 'GPSDestLatitudeRef' => 'GPSDestLatitudeRef',
167 'GPSDestLongitude' => 'GPSDestLongitude',
168 'GPSDestLongitudeRef' => 'GPSDestLongitudeRef',
169 'GPSDifferential' => 'GPSDifferential',
170 'GPSImgDirection' => 'GPSImgDirection',
171 'GPSImgDirectionRef' => 'GPSImgDirectionRef',
172 'GPSDateStamp' => 'GPSDateStamp',
173 'GPSLatitude' => 'GPSLatitude',
174 'GPSLatitudeRef' => 'GPSLatitudeRef',
175 'GPSLongitude' => 'GPSLongitude',
176 'GPSLongitudeRef' => 'GPSLongitudeRef',
177 'GPSMapDatum' => 'GPSMapDatum',
178 'GPSMeasureMode' => 'GPSMeasureMode',
179 'GPSProcessingMethod' => 'GPSProcessingMethod',
180 'GPSSatellites' => 'GPSSatellites',
181 'GPSSpeed' => 'GPSSpeed',
182 'GPSSpeedRef' => 'GPSSpeedRef',
183 'GPSStatus' => 'GPSStatus',
184 'GPSTimestamp' => 'GPSTimestamp',
185 'GPSTrack' => 'GPSTrack',
186 'GPSTrackRef' => 'GPSTrackRef',
187 'GPSVersionID' => 'GPSVersionID',
188 'GainControl' => 'GainControl',
189 'Gamma' => 'Gamma',
190 'ISOSpeed' => 'ISOSpeed',
191 'ISOSpeedLatitudeYYY' => 'ISOSpeedLatitudeYYY',
192 'ISOSpeedLatitudeZZZ' => 'ISOSpeedLatitudeZZZ',
193 'PhotographicSensitivity' => 'PhotographicSensitivity',
194 'ImageUniqueID' => 'ImageUniqueID',
195 'LensMake' => 'LensMake',
196 'LensModel' => 'LensModel',
197 'LensSerialNumber' => 'LensSerialNumber',
198 'LensSpecification' => 'LensSpecification',
199 'LightSource' => 'LightSource',
200 'MakerNoteRawData' => 'MakerNoteRawData',
201 'MaxApertureValue' => 'MaxApertureValue',
202 'MeteringMode' => 'MeteringMode',
203 'OECF' => 'OECF',
204 'PixelXDimension' => 'PixelXDimension',
205 'PixelYDimension' => 'PixelYDimension',
206 'RecommendedExposureIndex' => 'RecommendedExposureIndex',
207 'RelatedSoundFile' => 'RelatedSoundFile',
208 'Saturation' => 'Saturation',
209 'SceneCaptureType' => 'SceneCaptureType',
210 'SceneType' => 'SceneType',
211 'SensingMethod' => 'SensingMethod',
212 'SensitivityType' => 'SensitivityType',
213 'Sharpness' => 'Sharpness',
214 'ShutterSpeedValue' => 'ShutterSpeedValue',
215 'SpatialFrequencyResponse' => 'SpatialFrequencyResponse',
216 'SpectralSensitivity' => 'SpectralSensitivity',
217 'StandardOutputSensitivity' => 'StandardOutputSensitivity',
218 'SubjectArea' => 'SubjectArea',
219 'SubjectDistance' => 'SubjectDistance',
220 'SubjectDistanceRange' => 'SubjectDistanceRange',
221 'SubjectLocation' => 'SubjectLocation',
222 'SubsecTime' => 'SubsecTime',
223 'SubsecTimeDigitized' => 'SubsecTimeDigitized',
224 'SubsecTimeOriginal' => 'SubsecTimeOriginal',
225 'UserComment' => 'UserComment',
226 'WhiteBalance' => 'WhiteBalance',
227 'WhitePoint' => 'WhitePoint'
228 };
229
230 # new object
231 sub new {
232 my ($class, %args) = @_;
233 my $self = {
234 #
235 'ApertureValue' => $args{'ApertureValue'},
236 #
237 'BodySerialNumber' => $args{'BodySerialNumber'},
238 #
239 'BrightnessValue' => $args{'BrightnessValue'},
240 #
241 'CFAPattern' => $args{'CFAPattern'},
242 #
243 'CameraOwnerName' => $args{'CameraOwnerName'},
244 #
245 'ColorSpace' => $args{'ColorSpace'},
246 #
247 'ComponentsConfiguration' => $args{'ComponentsConfiguration'},
248 #
249 'CompressedBitsPerPixel' => $args{'CompressedBitsPerPixel'},
250 #
251 'Contrast' => $args{'Contrast'},
252 #
253 'CustomRendered' => $args{'CustomRendered'},
254 #
255 'DateTimeDigitized' => $args{'DateTimeDigitized'},
256 #
257 'DateTimeOriginal' => $args{'DateTimeOriginal'},
258 #
259 'DeviceSettingDescription' => $args{'DeviceSettingDescription'},
260 #
261 'DigitalZoomRatio' => $args{'DigitalZoomRatio'},
262 #
263 'ExifVersion' => $args{'ExifVersion'},
264 #
265 'ExposureBiasValue' => $args{'ExposureBiasValue'},
266 #
267 'ExposureIndex' => $args{'ExposureIndex'},
268 #
269 'ExposureMode' => $args{'ExposureMode'},
270 #
271 'ExposureProgram' => $args{'ExposureProgram'},
272 #
273 'ExposureTime' => $args{'ExposureTime'},
274 #
275 'FNumber' => $args{'FNumber'},
276 #
277 'FileSource' => $args{'FileSource'},
278 #
279 'Flash' => $args{'Flash'},
280 #
281 'FlashEnergy' => $args{'FlashEnergy'},
282 #
283 'FlashpixVersion' => $args{'FlashpixVersion'},
284 #
285 'FocalLength' => $args{'FocalLength'},
286 #
287 'FocalLengthIn35MmFilm' => $args{'FocalLengthIn35MmFilm'},
288 #
289 'FocalPlaneResolutionUnit' => $args{'FocalPlaneResolutionUnit'},
290 #
291 'FocalPlaneXResolution' => $args{'FocalPlaneXResolution'},
292 #
293 'FocalPlaneYResolution' => $args{'FocalPlaneYResolution'},
294 #
295 'GPSAltitude' => $args{'GPSAltitude'},
296 #
297 'GPSAltitudeRef' => $args{'GPSAltitudeRef'},
298 #
299 'GPSAreaInformation' => $args{'GPSAreaInformation'},
300 #
301 'GPSDOP' => $args{'GPSDOP'},
302 #
303 'GPSDestBearing' => $args{'GPSDestBearing'},
304 #
305 'GPSDestBearingRef' => $args{'GPSDestBearingRef'},
306 #
307 'GPSDestDistance' => $args{'GPSDestDistance'},
308 #
309 'GPSDestDistanceRef' => $args{'GPSDestDistanceRef'},
310 #
311 'GPSDestLatitude' => $args{'GPSDestLatitude'},
312 #
313 'GPSDestLatitudeRef' => $args{'GPSDestLatitudeRef'},
314 #
315 'GPSDestLongitude' => $args{'GPSDestLongitude'},
316 #
317 'GPSDestLongitudeRef' => $args{'GPSDestLongitudeRef'},
318 #
319 'GPSDifferential' => $args{'GPSDifferential'},
320 #
321 'GPSImgDirection' => $args{'GPSImgDirection'},
322 #
323 'GPSImgDirectionRef' => $args{'GPSImgDirectionRef'},
324 #
325 'GPSDateStamp' => $args{'GPSDateStamp'},
326 #
327 'GPSLatitude' => $args{'GPSLatitude'},
328 #
329 'GPSLatitudeRef' => $args{'GPSLatitudeRef'},
330 #
331 'GPSLongitude' => $args{'GPSLongitude'},
332 #
333 'GPSLongitudeRef' => $args{'GPSLongitudeRef'},
334 #
335 'GPSMapDatum' => $args{'GPSMapDatum'},
336 #
337 'GPSMeasureMode' => $args{'GPSMeasureMode'},
338 #
339 'GPSProcessingMethod' => $args{'GPSProcessingMethod'},
340 #
341 'GPSSatellites' => $args{'GPSSatellites'},
342 #
343 'GPSSpeed' => $args{'GPSSpeed'},
344 #
345 'GPSSpeedRef' => $args{'GPSSpeedRef'},
346 #
347 'GPSStatus' => $args{'GPSStatus'},
348 #
349 'GPSTimestamp' => $args{'GPSTimestamp'},
350 #
351 'GPSTrack' => $args{'GPSTrack'},
352 #
353 'GPSTrackRef' => $args{'GPSTrackRef'},
354 #
355 'GPSVersionID' => $args{'GPSVersionID'},
356 #
357 'GainControl' => $args{'GainControl'},
358 #
359 'Gamma' => $args{'Gamma'},
360 #
361 'ISOSpeed' => $args{'ISOSpeed'},
362 #
363 'ISOSpeedLatitudeYYY' => $args{'ISOSpeedLatitudeYYY'},
364 #
365 'ISOSpeedLatitudeZZZ' => $args{'ISOSpeedLatitudeZZZ'},
366 #
367 'PhotographicSensitivity' => $args{'PhotographicSensitivity'},
368 #
369 'ImageUniqueID' => $args{'ImageUniqueID'},
370 #
371 'LensMake' => $args{'LensMake'},
372 #
373 'LensModel' => $args{'LensModel'},
374 #
375 'LensSerialNumber' => $args{'LensSerialNumber'},
376 #
377 'LensSpecification' => $args{'LensSpecification'},
378 #
379 'LightSource' => $args{'LightSource'},
380 #
381 'MakerNoteRawData' => $args{'MakerNoteRawData'},
382 #
383 'MaxApertureValue' => $args{'MaxApertureValue'},
384 #
385 'MeteringMode' => $args{'MeteringMode'},
386 #
387 'OECF' => $args{'OECF'},
388 #
389 'PixelXDimension' => $args{'PixelXDimension'},
390 #
391 'PixelYDimension' => $args{'PixelYDimension'},
392 #
393 'RecommendedExposureIndex' => $args{'RecommendedExposureIndex'},
394 #
395 'RelatedSoundFile' => $args{'RelatedSoundFile'},
396 #
397 'Saturation' => $args{'Saturation'},
398 #
399 'SceneCaptureType' => $args{'SceneCaptureType'},
400 #
401 'SceneType' => $args{'SceneType'},
402 #
403 'SensingMethod' => $args{'SensingMethod'},
404 #
405 'SensitivityType' => $args{'SensitivityType'},
406 #
407 'Sharpness' => $args{'Sharpness'},
408 #
409 'ShutterSpeedValue' => $args{'ShutterSpeedValue'},
410 #
411 'SpatialFrequencyResponse' => $args{'SpatialFrequencyResponse'},
412 #
413 'SpectralSensitivity' => $args{'SpectralSensitivity'},
414 #
415 'StandardOutputSensitivity' => $args{'StandardOutputSensitivity'},
416 #
417 'SubjectArea' => $args{'SubjectArea'},
418 #
419 'SubjectDistance' => $args{'SubjectDistance'},
420 #
421 'SubjectDistanceRange' => $args{'SubjectDistanceRange'},
422 #
423 'SubjectLocation' => $args{'SubjectLocation'},
424 #
425 'SubsecTime' => $args{'SubsecTime'},
426 #
427 'SubsecTimeDigitized' => $args{'SubsecTimeDigitized'},
428 #
429 'SubsecTimeOriginal' => $args{'SubsecTimeOriginal'},
430 #
431 'UserComment' => $args{'UserComment'},
432 #
433 'WhiteBalance' => $args{'WhiteBalance'},
434 #
435 'WhitePoint' => $args{'WhitePoint'}
436 };
437
438 return bless $self, $class;
439 }
440
441 # get swagger type of the attribute
442 sub get_swagger_types {
443 return $swagger_types;
444 }
445
446 # get attribute mappping
447 sub get_attribute_map {
448 return $attribute_map;
449 }
450
451 1;