Object/JpegExifData.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::JpegExifData;
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 'Artist' => 'string',
24 'Copyright' => 'string',
25 'DateTime' => 'string',
26 'ImageDescription' => 'string',
27 'Make' => 'string',
28 'Model' => 'string',
29 'Orientation' => 'string',
30 'PrimaryChromaticities' => 'ARRAY[double]',
31 'ReferenceBlackWhite' => 'ARRAY[double]',
32 'ResolutionUnit' => 'string',
33 'Software' => 'string',
34 'TransferFunction' => 'ARRAY[int]',
35 'XResolution' => 'double',
36 'YCbCrCoefficients' => 'ARRAY[double]',
37 'YCbCrPositioning' => 'string',
38 'YResolution' => 'double',
39 'ApertureValue' => 'double',
40 'BodySerialNumber' => 'string',
41 'BrightnessValue' => 'double',
42 'CFAPattern' => 'string',
43 'CameraOwnerName' => 'string',
44 'ColorSpace' => 'string',
45 'ComponentsConfiguration' => 'string',
46 'CompressedBitsPerPixel' => 'double',
47 'Contrast' => 'string',
48 'CustomRendered' => 'string',
49 'DateTimeDigitized' => 'string',
50 'DateTimeOriginal' => 'string',
51 'DeviceSettingDescription' => 'string',
52 'DigitalZoomRatio' => 'double',
53 'ExifVersion' => 'string',
54 'ExposureBiasValue' => 'double',
55 'ExposureIndex' => 'double',
56 'ExposureMode' => 'string',
57 'ExposureProgram' => 'string',
58 'ExposureTime' => 'double',
59 'FNumber' => 'double',
60 'FileSource' => 'string',
61 'Flash' => 'string',
62 'FlashEnergy' => 'double',
63 'FlashpixVersion' => 'string',
64 'FocalLength' => 'double',
65 'FocalLengthIn35MmFilm' => 'int',
66 'FocalPlaneResolutionUnit' => 'string',
67 'FocalPlaneXResolution' => 'double',
68 'FocalPlaneYResolution' => 'double',
69 'GPSAltitude' => 'double',
70 'GPSAltitudeRef' => 'string',
71 'GPSAreaInformation' => 'string',
72 'GPSDOP' => 'double',
73 'GPSDestBearing' => 'double',
74 'GPSDestBearingRef' => 'string',
75 'GPSDestDistance' => 'double',
76 'GPSDestDistanceRef' => 'string',
77 'GPSDestLatitude' => 'ARRAY[double]',
78 'GPSDestLatitudeRef' => 'string',
79 'GPSDestLongitude' => 'ARRAY[double]',
80 'GPSDestLongitudeRef' => 'string',
81 'GPSDifferential' => 'int',
82 'GPSImgDirection' => 'double',
83 'GPSImgDirectionRef' => 'string',
84 'GPSDateStamp' => 'string',
85 'GPSLatitude' => 'ARRAY[double]',
86 'GPSLatitudeRef' => 'string',
87 'GPSLongitude' => 'ARRAY[double]',
88 'GPSLongitudeRef' => 'string',
89 'GPSMapDatum' => 'string',
90 'GPSMeasureMode' => 'string',
91 'GPSProcessingMethod' => 'string',
92 'GPSSatellites' => 'string',
93 'GPSSpeed' => 'double',
94 'GPSSpeedRef' => 'string',
95 'GPSStatus' => 'string',
96 'GPSTimestamp' => 'ARRAY[double]',
97 'GPSTrack' => 'string',
98 'GPSTrackRef' => 'string',
99 'GPSVersionID' => 'string',
100 'GainControl' => 'string',
101 'Gamma' => 'double',
102 'ISOSpeed' => 'int',
103 'ISOSpeedLatitudeYYY' => 'int',
104 'ISOSpeedLatitudeZZZ' => 'int',
105 'PhotographicSensitivity' => 'int',
106 'ImageUniqueID' => 'string',
107 'LensMake' => 'string',
108 'LensModel' => 'string',
109 'LensSerialNumber' => 'string',
110 'LensSpecification' => 'ARRAY[double]',
111 'LightSource' => 'string',
112 'MakerNoteRawData' => 'string',
113 'MaxApertureValue' => 'double',
114 'MeteringMode' => 'string',
115 'OECF' => 'string',
116 'PixelXDimension' => 'int',
117 'PixelYDimension' => 'int',
118 'RecommendedExposureIndex' => 'int',
119 'RelatedSoundFile' => 'string',
120 'Saturation' => 'string',
121 'SceneCaptureType' => 'string',
122 'SceneType' => 'string',
123 'SensingMethod' => 'string',
124 'SensitivityType' => 'int',
125 'Sharpness' => 'int',
126 'ShutterSpeedValue' => 'double',
127 'SpatialFrequencyResponse' => 'string',
128 'SpectralSensitivity' => 'string',
129 'StandardOutputSensitivity' => 'int',
130 'SubjectArea' => 'ARRAY[int]',
131 'SubjectDistance' => 'double',
132 'SubjectDistanceRange' => 'string',
133 'SubjectLocation' => 'ARRAY[int]',
134 'SubsecTime' => 'string',
135 'SubsecTimeDigitized' => 'string',
136 'SubsecTimeOriginal' => 'string',
137 'UserComment' => 'string',
138 'WhiteBalance' => 'string',
139 'WhitePoint' => 'ARRAY[double]'
140 };
141
142 my $attribute_map = {
143 'Artist' => 'Artist',
144 'Copyright' => 'Copyright',
145 'DateTime' => 'DateTime',
146 'ImageDescription' => 'ImageDescription',
147 'Make' => 'Make',
148 'Model' => 'Model',
149 'Orientation' => 'Orientation',
150 'PrimaryChromaticities' => 'PrimaryChromaticities',
151 'ReferenceBlackWhite' => 'ReferenceBlackWhite',
152 'ResolutionUnit' => 'ResolutionUnit',
153 'Software' => 'Software',
154 'TransferFunction' => 'TransferFunction',
155 'XResolution' => 'XResolution',
156 'YCbCrCoefficients' => 'YCbCrCoefficients',
157 'YCbCrPositioning' => 'YCbCrPositioning',
158 'YResolution' => 'YResolution',
159 'ApertureValue' => 'ApertureValue',
160 'BodySerialNumber' => 'BodySerialNumber',
161 'BrightnessValue' => 'BrightnessValue',
162 'CFAPattern' => 'CFAPattern',
163 'CameraOwnerName' => 'CameraOwnerName',
164 'ColorSpace' => 'ColorSpace',
165 'ComponentsConfiguration' => 'ComponentsConfiguration',
166 'CompressedBitsPerPixel' => 'CompressedBitsPerPixel',
167 'Contrast' => 'Contrast',
168 'CustomRendered' => 'CustomRendered',
169 'DateTimeDigitized' => 'DateTimeDigitized',
170 'DateTimeOriginal' => 'DateTimeOriginal',
171 'DeviceSettingDescription' => 'DeviceSettingDescription',
172 'DigitalZoomRatio' => 'DigitalZoomRatio',
173 'ExifVersion' => 'ExifVersion',
174 'ExposureBiasValue' => 'ExposureBiasValue',
175 'ExposureIndex' => 'ExposureIndex',
176 'ExposureMode' => 'ExposureMode',
177 'ExposureProgram' => 'ExposureProgram',
178 'ExposureTime' => 'ExposureTime',
179 'FNumber' => 'FNumber',
180 'FileSource' => 'FileSource',
181 'Flash' => 'Flash',
182 'FlashEnergy' => 'FlashEnergy',
183 'FlashpixVersion' => 'FlashpixVersion',
184 'FocalLength' => 'FocalLength',
185 'FocalLengthIn35MmFilm' => 'FocalLengthIn35MmFilm',
186 'FocalPlaneResolutionUnit' => 'FocalPlaneResolutionUnit',
187 'FocalPlaneXResolution' => 'FocalPlaneXResolution',
188 'FocalPlaneYResolution' => 'FocalPlaneYResolution',
189 'GPSAltitude' => 'GPSAltitude',
190 'GPSAltitudeRef' => 'GPSAltitudeRef',
191 'GPSAreaInformation' => 'GPSAreaInformation',
192 'GPSDOP' => 'GPSDOP',
193 'GPSDestBearing' => 'GPSDestBearing',
194 'GPSDestBearingRef' => 'GPSDestBearingRef',
195 'GPSDestDistance' => 'GPSDestDistance',
196 'GPSDestDistanceRef' => 'GPSDestDistanceRef',
197 'GPSDestLatitude' => 'GPSDestLatitude',
198 'GPSDestLatitudeRef' => 'GPSDestLatitudeRef',
199 'GPSDestLongitude' => 'GPSDestLongitude',
200 'GPSDestLongitudeRef' => 'GPSDestLongitudeRef',
201 'GPSDifferential' => 'GPSDifferential',
202 'GPSImgDirection' => 'GPSImgDirection',
203 'GPSImgDirectionRef' => 'GPSImgDirectionRef',
204 'GPSDateStamp' => 'GPSDateStamp',
205 'GPSLatitude' => 'GPSLatitude',
206 'GPSLatitudeRef' => 'GPSLatitudeRef',
207 'GPSLongitude' => 'GPSLongitude',
208 'GPSLongitudeRef' => 'GPSLongitudeRef',
209 'GPSMapDatum' => 'GPSMapDatum',
210 'GPSMeasureMode' => 'GPSMeasureMode',
211 'GPSProcessingMethod' => 'GPSProcessingMethod',
212 'GPSSatellites' => 'GPSSatellites',
213 'GPSSpeed' => 'GPSSpeed',
214 'GPSSpeedRef' => 'GPSSpeedRef',
215 'GPSStatus' => 'GPSStatus',
216 'GPSTimestamp' => 'GPSTimestamp',
217 'GPSTrack' => 'GPSTrack',
218 'GPSTrackRef' => 'GPSTrackRef',
219 'GPSVersionID' => 'GPSVersionID',
220 'GainControl' => 'GainControl',
221 'Gamma' => 'Gamma',
222 'ISOSpeed' => 'ISOSpeed',
223 'ISOSpeedLatitudeYYY' => 'ISOSpeedLatitudeYYY',
224 'ISOSpeedLatitudeZZZ' => 'ISOSpeedLatitudeZZZ',
225 'PhotographicSensitivity' => 'PhotographicSensitivity',
226 'ImageUniqueID' => 'ImageUniqueID',
227 'LensMake' => 'LensMake',
228 'LensModel' => 'LensModel',
229 'LensSerialNumber' => 'LensSerialNumber',
230 'LensSpecification' => 'LensSpecification',
231 'LightSource' => 'LightSource',
232 'MakerNoteRawData' => 'MakerNoteRawData',
233 'MaxApertureValue' => 'MaxApertureValue',
234 'MeteringMode' => 'MeteringMode',
235 'OECF' => 'OECF',
236 'PixelXDimension' => 'PixelXDimension',
237 'PixelYDimension' => 'PixelYDimension',
238 'RecommendedExposureIndex' => 'RecommendedExposureIndex',
239 'RelatedSoundFile' => 'RelatedSoundFile',
240 'Saturation' => 'Saturation',
241 'SceneCaptureType' => 'SceneCaptureType',
242 'SceneType' => 'SceneType',
243 'SensingMethod' => 'SensingMethod',
244 'SensitivityType' => 'SensitivityType',
245 'Sharpness' => 'Sharpness',
246 'ShutterSpeedValue' => 'ShutterSpeedValue',
247 'SpatialFrequencyResponse' => 'SpatialFrequencyResponse',
248 'SpectralSensitivity' => 'SpectralSensitivity',
249 'StandardOutputSensitivity' => 'StandardOutputSensitivity',
250 'SubjectArea' => 'SubjectArea',
251 'SubjectDistance' => 'SubjectDistance',
252 'SubjectDistanceRange' => 'SubjectDistanceRange',
253 'SubjectLocation' => 'SubjectLocation',
254 'SubsecTime' => 'SubsecTime',
255 'SubsecTimeDigitized' => 'SubsecTimeDigitized',
256 'SubsecTimeOriginal' => 'SubsecTimeOriginal',
257 'UserComment' => 'UserComment',
258 'WhiteBalance' => 'WhiteBalance',
259 'WhitePoint' => 'WhitePoint'
260 };
261
262 # new object
263 sub new {
264 my ($class, %args) = @_;
265 my $self = {
266 #
267 'Artist' => $args{'Artist'},
268 #
269 'Copyright' => $args{'Copyright'},
270 #
271 'DateTime' => $args{'DateTime'},
272 #
273 'ImageDescription' => $args{'ImageDescription'},
274 #
275 'Make' => $args{'Make'},
276 #
277 'Model' => $args{'Model'},
278 #
279 'Orientation' => $args{'Orientation'},
280 #
281 'PrimaryChromaticities' => $args{'PrimaryChromaticities'},
282 #
283 'ReferenceBlackWhite' => $args{'ReferenceBlackWhite'},
284 #
285 'ResolutionUnit' => $args{'ResolutionUnit'},
286 #
287 'Software' => $args{'Software'},
288 #
289 'TransferFunction' => $args{'TransferFunction'},
290 #
291 'XResolution' => $args{'XResolution'},
292 #
293 'YCbCrCoefficients' => $args{'YCbCrCoefficients'},
294 #
295 'YCbCrPositioning' => $args{'YCbCrPositioning'},
296 #
297 'YResolution' => $args{'YResolution'},
298 #
299 'ApertureValue' => $args{'ApertureValue'},
300 #
301 'BodySerialNumber' => $args{'BodySerialNumber'},
302 #
303 'BrightnessValue' => $args{'BrightnessValue'},
304 #
305 'CFAPattern' => $args{'CFAPattern'},
306 #
307 'CameraOwnerName' => $args{'CameraOwnerName'},
308 #
309 'ColorSpace' => $args{'ColorSpace'},
310 #
311 'ComponentsConfiguration' => $args{'ComponentsConfiguration'},
312 #
313 'CompressedBitsPerPixel' => $args{'CompressedBitsPerPixel'},
314 #
315 'Contrast' => $args{'Contrast'},
316 #
317 'CustomRendered' => $args{'CustomRendered'},
318 #
319 'DateTimeDigitized' => $args{'DateTimeDigitized'},
320 #
321 'DateTimeOriginal' => $args{'DateTimeOriginal'},
322 #
323 'DeviceSettingDescription' => $args{'DeviceSettingDescription'},
324 #
325 'DigitalZoomRatio' => $args{'DigitalZoomRatio'},
326 #
327 'ExifVersion' => $args{'ExifVersion'},
328 #
329 'ExposureBiasValue' => $args{'ExposureBiasValue'},
330 #
331 'ExposureIndex' => $args{'ExposureIndex'},
332 #
333 'ExposureMode' => $args{'ExposureMode'},
334 #
335 'ExposureProgram' => $args{'ExposureProgram'},
336 #
337 'ExposureTime' => $args{'ExposureTime'},
338 #
339 'FNumber' => $args{'FNumber'},
340 #
341 'FileSource' => $args{'FileSource'},
342 #
343 'Flash' => $args{'Flash'},
344 #
345 'FlashEnergy' => $args{'FlashEnergy'},
346 #
347 'FlashpixVersion' => $args{'FlashpixVersion'},
348 #
349 'FocalLength' => $args{'FocalLength'},
350 #
351 'FocalLengthIn35MmFilm' => $args{'FocalLengthIn35MmFilm'},
352 #
353 'FocalPlaneResolutionUnit' => $args{'FocalPlaneResolutionUnit'},
354 #
355 'FocalPlaneXResolution' => $args{'FocalPlaneXResolution'},
356 #
357 'FocalPlaneYResolution' => $args{'FocalPlaneYResolution'},
358 #
359 'GPSAltitude' => $args{'GPSAltitude'},
360 #
361 'GPSAltitudeRef' => $args{'GPSAltitudeRef'},
362 #
363 'GPSAreaInformation' => $args{'GPSAreaInformation'},
364 #
365 'GPSDOP' => $args{'GPSDOP'},
366 #
367 'GPSDestBearing' => $args{'GPSDestBearing'},
368 #
369 'GPSDestBearingRef' => $args{'GPSDestBearingRef'},
370 #
371 'GPSDestDistance' => $args{'GPSDestDistance'},
372 #
373 'GPSDestDistanceRef' => $args{'GPSDestDistanceRef'},
374 #
375 'GPSDestLatitude' => $args{'GPSDestLatitude'},
376 #
377 'GPSDestLatitudeRef' => $args{'GPSDestLatitudeRef'},
378 #
379 'GPSDestLongitude' => $args{'GPSDestLongitude'},
380 #
381 'GPSDestLongitudeRef' => $args{'GPSDestLongitudeRef'},
382 #
383 'GPSDifferential' => $args{'GPSDifferential'},
384 #
385 'GPSImgDirection' => $args{'GPSImgDirection'},
386 #
387 'GPSImgDirectionRef' => $args{'GPSImgDirectionRef'},
388 #
389 'GPSDateStamp' => $args{'GPSDateStamp'},
390 #
391 'GPSLatitude' => $args{'GPSLatitude'},
392 #
393 'GPSLatitudeRef' => $args{'GPSLatitudeRef'},
394 #
395 'GPSLongitude' => $args{'GPSLongitude'},
396 #
397 'GPSLongitudeRef' => $args{'GPSLongitudeRef'},
398 #
399 'GPSMapDatum' => $args{'GPSMapDatum'},
400 #
401 'GPSMeasureMode' => $args{'GPSMeasureMode'},
402 #
403 'GPSProcessingMethod' => $args{'GPSProcessingMethod'},
404 #
405 'GPSSatellites' => $args{'GPSSatellites'},
406 #
407 'GPSSpeed' => $args{'GPSSpeed'},
408 #
409 'GPSSpeedRef' => $args{'GPSSpeedRef'},
410 #
411 'GPSStatus' => $args{'GPSStatus'},
412 #
413 'GPSTimestamp' => $args{'GPSTimestamp'},
414 #
415 'GPSTrack' => $args{'GPSTrack'},
416 #
417 'GPSTrackRef' => $args{'GPSTrackRef'},
418 #
419 'GPSVersionID' => $args{'GPSVersionID'},
420 #
421 'GainControl' => $args{'GainControl'},
422 #
423 'Gamma' => $args{'Gamma'},
424 #
425 'ISOSpeed' => $args{'ISOSpeed'},
426 #
427 'ISOSpeedLatitudeYYY' => $args{'ISOSpeedLatitudeYYY'},
428 #
429 'ISOSpeedLatitudeZZZ' => $args{'ISOSpeedLatitudeZZZ'},
430 #
431 'PhotographicSensitivity' => $args{'PhotographicSensitivity'},
432 #
433 'ImageUniqueID' => $args{'ImageUniqueID'},
434 #
435 'LensMake' => $args{'LensMake'},
436 #
437 'LensModel' => $args{'LensModel'},
438 #
439 'LensSerialNumber' => $args{'LensSerialNumber'},
440 #
441 'LensSpecification' => $args{'LensSpecification'},
442 #
443 'LightSource' => $args{'LightSource'},
444 #
445 'MakerNoteRawData' => $args{'MakerNoteRawData'},
446 #
447 'MaxApertureValue' => $args{'MaxApertureValue'},
448 #
449 'MeteringMode' => $args{'MeteringMode'},
450 #
451 'OECF' => $args{'OECF'},
452 #
453 'PixelXDimension' => $args{'PixelXDimension'},
454 #
455 'PixelYDimension' => $args{'PixelYDimension'},
456 #
457 'RecommendedExposureIndex' => $args{'RecommendedExposureIndex'},
458 #
459 'RelatedSoundFile' => $args{'RelatedSoundFile'},
460 #
461 'Saturation' => $args{'Saturation'},
462 #
463 'SceneCaptureType' => $args{'SceneCaptureType'},
464 #
465 'SceneType' => $args{'SceneType'},
466 #
467 'SensingMethod' => $args{'SensingMethod'},
468 #
469 'SensitivityType' => $args{'SensitivityType'},
470 #
471 'Sharpness' => $args{'Sharpness'},
472 #
473 'ShutterSpeedValue' => $args{'ShutterSpeedValue'},
474 #
475 'SpatialFrequencyResponse' => $args{'SpatialFrequencyResponse'},
476 #
477 'SpectralSensitivity' => $args{'SpectralSensitivity'},
478 #
479 'StandardOutputSensitivity' => $args{'StandardOutputSensitivity'},
480 #
481 'SubjectArea' => $args{'SubjectArea'},
482 #
483 'SubjectDistance' => $args{'SubjectDistance'},
484 #
485 'SubjectDistanceRange' => $args{'SubjectDistanceRange'},
486 #
487 'SubjectLocation' => $args{'SubjectLocation'},
488 #
489 'SubsecTime' => $args{'SubsecTime'},
490 #
491 'SubsecTimeDigitized' => $args{'SubsecTimeDigitized'},
492 #
493 'SubsecTimeOriginal' => $args{'SubsecTimeOriginal'},
494 #
495 'UserComment' => $args{'UserComment'},
496 #
497 'WhiteBalance' => $args{'WhiteBalance'},
498 #
499 'WhitePoint' => $args{'WhitePoint'}
500 };
501
502 return bless $self, $class;
503 }
504
505 # get swagger type of the attribute
506 sub get_swagger_types {
507 return $swagger_types;
508 }
509
510 # get attribute mappping
511 sub get_attribute_map {
512 return $attribute_map;
513 }
514
515 1;