Object/ZoomObject.pm untested

filter: Statementstmt 0.0% 0 / 85 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 20 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 109 CC 2 SCAR 8.7
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
1 =begin comment
2  
3 Copyright (c) 2019 Aspose Pty Ltd
4  
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11  
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
14  
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 SOFTWARE.
22  
23 =end comment
24  
25 =cut
26  
27 package AsposeSlidesCloud::Object::ZoomObject;
28  
29 require 5.6.0;
30 use strict;
31 use warnings;
32 use utf8;
33 use JSON qw(decode_json);
34 use Data::Dumper;
35 use Module::Runtime qw(use_module);
36 use Log::Any qw($log);
37 use Date::Parse;
38 use DateTime;
39  
40 use AsposeSlidesCloud::Object::EffectFormat;
41 use AsposeSlidesCloud::Object::FillFormat;
42 use AsposeSlidesCloud::Object::Hyperlink;
43 use AsposeSlidesCloud::Object::LineFormat;
44 use AsposeSlidesCloud::Object::ResourceUri;
45 use AsposeSlidesCloud::Object::ShapeBase;
46 use AsposeSlidesCloud::Object::ThreeDFormat;
47  
48 use base ("Class::Accessor", "Class::Data::Inheritable");
49  
50  
51 #
52 #Zoom object.
53 #
54 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
55 # REF: https://github.com/swagger-api/swagger-codegen
56 #
57  
58 #
59 # NOTE: This class is auto generated by the swagger code generator program.
60 # Do not edit the class manually.
61 # Ref: https://github.com/swagger-api/swagger-codegen
62 #
63 __PACKAGE__->mk_classdata('attribute_map' => {});
64 __PACKAGE__->mk_classdata('swagger_types' => {});
65 __PACKAGE__->mk_classdata('method_documentation' => {});
66 __PACKAGE__->mk_classdata('class_documentation' => {});
67  
68 # new object
69 sub new {
70 my ($class, %args) = @_;
71  
72 my $self = bless {}, $class;
73
74 foreach my $attribute (keys %{$class->attribute_map}) {
75 my $args_key = $class->attribute_map->{$attribute};
76 $self->$attribute( $args{ $args_key } );
77 }
78 return $self;
79 }
80  
81 # used by JSON for serialization
82 sub TO_JSON {
83 my $self = shift;
84 my $_data = {};
85 foreach my $_key (keys %{$self->attribute_map}) {
86 if (defined $self->{$_key}) {
87 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
88 }
89 }
90 return $_data;
91 }
92  
93  
94 __PACKAGE__->class_documentation({description => 'Zoom object.',
95 class => 'ZoomObject',
96 required => [], # TODO
97 } );
98  
99 __PACKAGE__->method_documentation({
100 'self_uri' => {
101 datatype => 'ResourceUri',
102 base_name => 'SelfUri',
103 description => 'Gets or sets the link to this resource.',
104 format => '',
105 read_only => '',
106 },
107 'alternate_links' => {
108 datatype => 'ARRAY[ResourceUri]',
109 base_name => 'AlternateLinks',
110 description => 'List of alternate links.',
111 format => '',
112 read_only => '',
113 },
114 'name' => {
115 datatype => 'string',
116 base_name => 'Name',
117 description => 'Gets or sets the name.',
118 format => '',
119 read_only => '',
120 },
121 'width' => {
122 datatype => 'double',
123 base_name => 'Width',
124 description => 'Gets or sets the width.',
125 format => '',
126 read_only => '',
127 },
128 'height' => {
129 datatype => 'double',
130 base_name => 'Height',
131 description => 'Gets or sets the height.',
132 format => '',
133 read_only => '',
134 },
135 'alternative_text' => {
136 datatype => 'string',
137 base_name => 'AlternativeText',
138 description => 'Gets or sets the alternative text.',
139 format => '',
140 read_only => '',
141 },
142 'alternative_text_title' => {
143 datatype => 'string',
144 base_name => 'AlternativeTextTitle',
145 description => 'The title of alternative text associated with the shape.',
146 format => '',
147 read_only => '',
148 },
149 'hidden' => {
150 datatype => 'boolean',
151 base_name => 'Hidden',
152 description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
153 format => '',
154 read_only => '',
155 },
156 'is_decorative' => {
157 datatype => 'boolean',
158 base_name => 'IsDecorative',
159 description => 'Gets or sets 'Mark as decorative' option.',
160 format => '',
161 read_only => '',
162 },
163 'x' => {
164 datatype => 'double',
165 base_name => 'X',
166 description => 'Gets or sets the X',
167 format => '',
168 read_only => '',
169 },
170 'y' => {
171 datatype => 'double',
172 base_name => 'Y',
173 description => 'Gets or sets the Y.',
174 format => '',
175 read_only => '',
176 },
177 'z_order_position' => {
178 datatype => 'int',
179 base_name => 'ZOrderPosition',
180 description => 'Gets z-order position of shape',
181 format => '',
182 read_only => '',
183 },
184 'fill_format' => {
185 datatype => 'FillFormat',
186 base_name => 'FillFormat',
187 description => 'Gets or sets the fill format.',
188 format => '',
189 read_only => '',
190 },
191 'effect_format' => {
192 datatype => 'EffectFormat',
193 base_name => 'EffectFormat',
194 description => 'Gets or sets the effect format.',
195 format => '',
196 read_only => '',
197 },
198 'three_d_format' => {
199 datatype => 'ThreeDFormat',
200 base_name => 'ThreeDFormat',
201 description => 'Gets or sets the 3D format',
202 format => '',
203 read_only => '',
204 },
205 'line_format' => {
206 datatype => 'LineFormat',
207 base_name => 'LineFormat',
208 description => 'Gets or sets the line format.',
209 format => '',
210 read_only => '',
211 },
212 'hyperlink_click' => {
213 datatype => 'Hyperlink',
214 base_name => 'HyperlinkClick',
215 description => 'Hyperlink defined for mouse click.',
216 format => '',
217 read_only => '',
218 },
219 'hyperlink_mouse_over' => {
220 datatype => 'Hyperlink',
221 base_name => 'HyperlinkMouseOver',
222 description => 'Hyperlink defined for mouse over.',
223 format => '',
224 read_only => '',
225 },
226 'type' => {
227 datatype => 'string',
228 base_name => 'Type',
229 description => '',
230 format => '',
231 read_only => '',
232 },
233 'image_type' => {
234 datatype => 'string',
235 base_name => 'ImageType',
236 description => 'Image type of a zoom object. ',
237 format => '',
238 read_only => '',
239 },
240 'return_to_parent' => {
241 datatype => 'boolean',
242 base_name => 'ReturnToParent',
243 description => 'Navigation behavior in slideshow. ',
244 format => '',
245 read_only => '',
246 },
247 'show_background' => {
248 datatype => 'boolean',
249 base_name => 'ShowBackground',
250 description => 'Specifies whether the Zoom will use the background of the destination slide.',
251 format => '',
252 read_only => '',
253 },
254 'image' => {
255 datatype => 'ResourceUri',
256 base_name => 'Image',
257 description => 'Internal image link for zoom object',
258 format => '',
259 read_only => '',
260 },
261 'transition_duration' => {
262 datatype => 'double',
263 base_name => 'TransitionDuration',
264 description => 'Duration of the transition between Zoom and slide.',
265 format => '',
266 read_only => '',
267 },
268 });
269  
270 __PACKAGE__->swagger_types( {
271 'self_uri' => 'ResourceUri',
272 'alternate_links' => 'ARRAY[ResourceUri]',
273 'name' => 'string',
274 'width' => 'double',
275 'height' => 'double',
276 'alternative_text' => 'string',
277 'alternative_text_title' => 'string',
278 'hidden' => 'boolean',
279 'is_decorative' => 'boolean',
280 'x' => 'double',
281 'y' => 'double',
282 'z_order_position' => 'int',
283 'fill_format' => 'FillFormat',
284 'effect_format' => 'EffectFormat',
285 'three_d_format' => 'ThreeDFormat',
286 'line_format' => 'LineFormat',
287 'hyperlink_click' => 'Hyperlink',
288 'hyperlink_mouse_over' => 'Hyperlink',
289 'type' => 'string',
290 'image_type' => 'string',
291 'return_to_parent' => 'boolean',
292 'show_background' => 'boolean',
293 'image' => 'ResourceUri',
294 'transition_duration' => 'double'
295 } );
296  
297 __PACKAGE__->attribute_map( {
298 'self_uri' => 'SelfUri',
299 'alternate_links' => 'AlternateLinks',
300 'name' => 'Name',
301 'width' => 'Width',
302 'height' => 'Height',
303 'alternative_text' => 'AlternativeText',
304 'alternative_text_title' => 'AlternativeTextTitle',
305 'hidden' => 'Hidden',
306 'is_decorative' => 'IsDecorative',
307 'x' => 'X',
308 'y' => 'Y',
309 'z_order_position' => 'ZOrderPosition',
310 'fill_format' => 'FillFormat',
311 'effect_format' => 'EffectFormat',
312 'three_d_format' => 'ThreeDFormat',
313 'line_format' => 'LineFormat',
314 'hyperlink_click' => 'HyperlinkClick',
315 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
316 'type' => 'Type',
317 'image_type' => 'ImageType',
318 'return_to_parent' => 'ReturnToParent',
319 'show_background' => 'ShowBackground',
320 'image' => 'Image',
321 'transition_duration' => 'TransitionDuration'
322 } );
323  
324 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
325  
326  
327 1;