Object/ZoomFrame.pm untested

filter: Statementstmt 0.0% 0 / 86 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 / 110 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::ZoomFrame;
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::ThreeDFormat;
46 use AsposeSlidesCloud::Object::ZoomObject;
47  
48 use base ("Class::Accessor", "Class::Data::Inheritable");
49  
50  
51 #
52 #Zoom frame.
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 $self->{ type } = 'ZoomFrame';
79 return $self;
80 }
81  
82 # used by JSON for serialization
83 sub TO_JSON {
84 my $self = shift;
85 my $_data = {};
86 foreach my $_key (keys %{$self->attribute_map}) {
87 if (defined $self->{$_key}) {
88 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
89 }
90 }
91 return $_data;
92 }
93  
94  
95 __PACKAGE__->class_documentation({description => 'Zoom frame.',
96 class => 'ZoomFrame',
97 required => [], # TODO
98 } );
99  
100 __PACKAGE__->method_documentation({
101 'self_uri' => {
102 datatype => 'ResourceUri',
103 base_name => 'SelfUri',
104 description => 'Gets or sets the link to this resource.',
105 format => '',
106 read_only => '',
107 },
108 'alternate_links' => {
109 datatype => 'ARRAY[ResourceUri]',
110 base_name => 'AlternateLinks',
111 description => 'List of alternate links.',
112 format => '',
113 read_only => '',
114 },
115 'name' => {
116 datatype => 'string',
117 base_name => 'Name',
118 description => 'Gets or sets the name.',
119 format => '',
120 read_only => '',
121 },
122 'width' => {
123 datatype => 'double',
124 base_name => 'Width',
125 description => 'Gets or sets the width.',
126 format => '',
127 read_only => '',
128 },
129 'height' => {
130 datatype => 'double',
131 base_name => 'Height',
132 description => 'Gets or sets the height.',
133 format => '',
134 read_only => '',
135 },
136 'alternative_text' => {
137 datatype => 'string',
138 base_name => 'AlternativeText',
139 description => 'Gets or sets the alternative text.',
140 format => '',
141 read_only => '',
142 },
143 'alternative_text_title' => {
144 datatype => 'string',
145 base_name => 'AlternativeTextTitle',
146 description => 'The title of alternative text associated with the shape.',
147 format => '',
148 read_only => '',
149 },
150 'hidden' => {
151 datatype => 'boolean',
152 base_name => 'Hidden',
153 description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
154 format => '',
155 read_only => '',
156 },
157 'is_decorative' => {
158 datatype => 'boolean',
159 base_name => 'IsDecorative',
160 description => 'Gets or sets 'Mark as decorative' option.',
161 format => '',
162 read_only => '',
163 },
164 'x' => {
165 datatype => 'double',
166 base_name => 'X',
167 description => 'Gets or sets the X',
168 format => '',
169 read_only => '',
170 },
171 'y' => {
172 datatype => 'double',
173 base_name => 'Y',
174 description => 'Gets or sets the Y.',
175 format => '',
176 read_only => '',
177 },
178 'z_order_position' => {
179 datatype => 'int',
180 base_name => 'ZOrderPosition',
181 description => 'Gets z-order position of shape',
182 format => '',
183 read_only => '',
184 },
185 'fill_format' => {
186 datatype => 'FillFormat',
187 base_name => 'FillFormat',
188 description => 'Gets or sets the fill format.',
189 format => '',
190 read_only => '',
191 },
192 'effect_format' => {
193 datatype => 'EffectFormat',
194 base_name => 'EffectFormat',
195 description => 'Gets or sets the effect format.',
196 format => '',
197 read_only => '',
198 },
199 'three_d_format' => {
200 datatype => 'ThreeDFormat',
201 base_name => 'ThreeDFormat',
202 description => 'Gets or sets the 3D format',
203 format => '',
204 read_only => '',
205 },
206 'line_format' => {
207 datatype => 'LineFormat',
208 base_name => 'LineFormat',
209 description => 'Gets or sets the line format.',
210 format => '',
211 read_only => '',
212 },
213 'hyperlink_click' => {
214 datatype => 'Hyperlink',
215 base_name => 'HyperlinkClick',
216 description => 'Hyperlink defined for mouse click.',
217 format => '',
218 read_only => '',
219 },
220 'hyperlink_mouse_over' => {
221 datatype => 'Hyperlink',
222 base_name => 'HyperlinkMouseOver',
223 description => 'Hyperlink defined for mouse over.',
224 format => '',
225 read_only => '',
226 },
227 'type' => {
228 datatype => 'string',
229 base_name => 'Type',
230 description => 'Shape type.',
231 format => '',
232 read_only => '',
233 },
234 'image_type' => {
235 datatype => 'string',
236 base_name => 'ImageType',
237 description => 'Image type of a zoom object. ',
238 format => '',
239 read_only => '',
240 },
241 'return_to_parent' => {
242 datatype => 'boolean',
243 base_name => 'ReturnToParent',
244 description => 'Navigation behavior in slideshow. ',
245 format => '',
246 read_only => '',
247 },
248 'show_background' => {
249 datatype => 'boolean',
250 base_name => 'ShowBackground',
251 description => 'Specifies whether the Zoom will use the background of the destination slide.',
252 format => '',
253 read_only => '',
254 },
255 'image' => {
256 datatype => 'ResourceUri',
257 base_name => 'Image',
258 description => 'Internal image link for zoom object',
259 format => '',
260 read_only => '',
261 },
262 'transition_duration' => {
263 datatype => 'double',
264 base_name => 'TransitionDuration',
265 description => 'Duration of the transition between Zoom and slide.',
266 format => '',
267 read_only => '',
268 },
269 'target_slide_index' => {
270 datatype => 'int',
271 base_name => 'TargetSlideIndex',
272 description => 'Links to the target slide',
273 format => '',
274 read_only => '',
275 },
276 });
277  
278 __PACKAGE__->swagger_types( {
279 'self_uri' => 'ResourceUri',
280 'alternate_links' => 'ARRAY[ResourceUri]',
281 'name' => 'string',
282 'width' => 'double',
283 'height' => 'double',
284 'alternative_text' => 'string',
285 'alternative_text_title' => 'string',
286 'hidden' => 'boolean',
287 'is_decorative' => 'boolean',
288 'x' => 'double',
289 'y' => 'double',
290 'z_order_position' => 'int',
291 'fill_format' => 'FillFormat',
292 'effect_format' => 'EffectFormat',
293 'three_d_format' => 'ThreeDFormat',
294 'line_format' => 'LineFormat',
295 'hyperlink_click' => 'Hyperlink',
296 'hyperlink_mouse_over' => 'Hyperlink',
297 'type' => 'string',
298 'image_type' => 'string',
299 'return_to_parent' => 'boolean',
300 'show_background' => 'boolean',
301 'image' => 'ResourceUri',
302 'transition_duration' => 'double',
303 'target_slide_index' => 'int'
304 } );
305  
306 __PACKAGE__->attribute_map( {
307 'self_uri' => 'SelfUri',
308 'alternate_links' => 'AlternateLinks',
309 'name' => 'Name',
310 'width' => 'Width',
311 'height' => 'Height',
312 'alternative_text' => 'AlternativeText',
313 'alternative_text_title' => 'AlternativeTextTitle',
314 'hidden' => 'Hidden',
315 'is_decorative' => 'IsDecorative',
316 'x' => 'X',
317 'y' => 'Y',
318 'z_order_position' => 'ZOrderPosition',
319 'fill_format' => 'FillFormat',
320 'effect_format' => 'EffectFormat',
321 'three_d_format' => 'ThreeDFormat',
322 'line_format' => 'LineFormat',
323 'hyperlink_click' => 'HyperlinkClick',
324 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
325 'type' => 'Type',
326 'image_type' => 'ImageType',
327 'return_to_parent' => 'ReturnToParent',
328 'show_background' => 'ShowBackground',
329 'image' => 'Image',
330 'transition_duration' => 'TransitionDuration',
331 'target_slide_index' => 'TargetSlideIndex'
332 } );
333  
334 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
335  
336  
337 1;