| 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::Effect; | ||
| 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 | |||
| 41 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 42 | |||
| 43 | |||
| 44 | # | ||
| 45 | #Represents comment of slide | ||
| 46 | # | ||
| 47 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 48 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 49 | # | ||
| 50 | |||
| 51 | # | ||
| 52 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 53 | # Do not edit the class manually. | ||
| 54 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 55 | # | ||
| 56 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 57 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 58 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 59 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 60 | |||
| 61 | # new object | ||
| 62 | sub new { | ||
| 63 | my ($class, %args) = @_; | ||
| 64 | |||
| 65 | my $self = bless {}, $class; | ||
| 66 | |||
| 67 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 68 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 69 | $self->$attribute( $args{ $args_key } ); | ||
| 70 | } | ||
| 71 | return $self; | ||
| 72 | } | ||
| 73 | |||
| 74 | # used by JSON for serialization | ||
| 75 | sub TO_JSON { | ||
| 76 | my $self = shift; | ||
| 77 | my $_data = {}; | ||
| 78 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 79 | if (defined $self->{$_key}) { | ||
| 80 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 81 | } | ||
| 82 | } | ||
| 83 | return $_data; | ||
| 84 | } | ||
| 85 | |||
| 86 | |||
| 87 | __PACKAGE__->class_documentation({description => 'Represents comment of slide', | ||
| 88 | class => 'Effect', | ||
| 89 | required => [], # TODO | ||
| 90 | } ); | ||
| 91 | |||
| 92 | __PACKAGE__->method_documentation({ | ||
| 93 | 'type' => { | ||
| 94 | datatype => 'string', | ||
| 95 | base_name => 'Type', | ||
| 96 | description => 'Effect type.', | ||
| 97 | format => '', | ||
| 98 | read_only => '', | ||
| 99 | }, | ||
| 100 | 'subtype' => { | ||
| 101 | datatype => 'string', | ||
| 102 | base_name => 'Subtype', | ||
| 103 | description => 'Effect subtype.', | ||
| 104 | format => '', | ||
| 105 | read_only => '', | ||
| 106 | }, | ||
| 107 | 'preset_class_type' => { | ||
| 108 | datatype => 'string', | ||
| 109 | base_name => 'PresetClassType', | ||
| 110 | description => 'Preset class type.', | ||
| 111 | format => '', | ||
| 112 | read_only => '', | ||
| 113 | }, | ||
| 114 | 'animate_text_type' => { | ||
| 115 | datatype => 'string', | ||
| 116 | base_name => 'AnimateTextType', | ||
| 117 | description => 'Preset class type.', | ||
| 118 | format => '', | ||
| 119 | read_only => '', | ||
| 120 | }, | ||
| 121 | 'shape_index' => { | ||
| 122 | datatype => 'int', | ||
| 123 | base_name => 'ShapeIndex', | ||
| 124 | description => 'Shape index.', | ||
| 125 | format => '', | ||
| 126 | read_only => '', | ||
| 127 | }, | ||
| 128 | 'paragraph_index' => { | ||
| 129 | datatype => 'int', | ||
| 130 | base_name => 'ParagraphIndex', | ||
| 131 | description => 'Paragraph index.', | ||
| 132 | format => '', | ||
| 133 | read_only => '', | ||
| 134 | }, | ||
| 135 | 'trigger_type' => { | ||
| 136 | datatype => 'string', | ||
| 137 | base_name => 'TriggerType', | ||
| 138 | description => 'Effect trigger type.', | ||
| 139 | format => '', | ||
| 140 | read_only => '', | ||
| 141 | }, | ||
| 142 | 'accelerate' => { | ||
| 143 | datatype => 'double', | ||
| 144 | base_name => 'Accelerate', | ||
| 145 | description => 'The percentage of duration accelerate behavior effect.', | ||
| 146 | format => '', | ||
| 147 | read_only => '', | ||
| 148 | }, | ||
| 149 | 'auto_reverse' => { | ||
| 150 | datatype => 'boolean', | ||
| 151 | base_name => 'AutoReverse', | ||
| 152 | description => 'True to automatically play the animation in reverse after playing it in the forward direction.', | ||
| 153 | format => '', | ||
| 154 | read_only => '', | ||
| 155 | }, | ||
| 156 | 'decelerate' => { | ||
| 157 | datatype => 'double', | ||
| 158 | base_name => 'Decelerate', | ||
| 159 | description => 'The percentage of duration decelerate behavior effect.', | ||
| 160 | format => '', | ||
| 161 | read_only => '', | ||
| 162 | }, | ||
| 163 | 'duration' => { | ||
| 164 | datatype => 'double', | ||
| 165 | base_name => 'Duration', | ||
| 166 | description => 'The duration of animation effect.', | ||
| 167 | format => '', | ||
| 168 | read_only => '', | ||
| 169 | }, | ||
| 170 | 'repeat_count' => { | ||
| 171 | datatype => 'double', | ||
| 172 | base_name => 'RepeatCount', | ||
| 173 | description => 'The number of times the effect should repeat.', | ||
| 174 | format => '', | ||
| 175 | read_only => '', | ||
| 176 | }, | ||
| 177 | 'repeat_duration' => { | ||
| 178 | datatype => 'double', | ||
| 179 | base_name => 'RepeatDuration', | ||
| 180 | description => 'The number of times the effect should repeat.', | ||
| 181 | format => '', | ||
| 182 | read_only => '', | ||
| 183 | }, | ||
| 184 | 'restart' => { | ||
| 185 | datatype => 'string', | ||
| 186 | base_name => 'Restart', | ||
| 187 | description => 'The way for a effect to restart after complete.', | ||
| 188 | format => '', | ||
| 189 | read_only => '', | ||
| 190 | }, | ||
| 191 | 'speed' => { | ||
| 192 | datatype => 'double', | ||
| 193 | base_name => 'Speed', | ||
| 194 | description => 'The percentage by which to speed up (or slow down) the timing.', | ||
| 195 | format => '', | ||
| 196 | read_only => '', | ||
| 197 | }, | ||
| 198 | 'trigger_delay_time' => { | ||
| 199 | datatype => 'double', | ||
| 200 | base_name => 'TriggerDelayTime', | ||
| 201 | description => 'Delay time after trigger.', | ||
| 202 | format => '', | ||
| 203 | read_only => '', | ||
| 204 | }, | ||
| 205 | 'repeat_until_end_slide' => { | ||
| 206 | datatype => 'boolean', | ||
| 207 | base_name => 'RepeatUntilEndSlide', | ||
| 208 | description => 'Specifies if the effect will repeat until the end of slide.', | ||
| 209 | format => '', | ||
| 210 | read_only => '', | ||
| 211 | }, | ||
| 212 | 'repeat_until_next_click' => { | ||
| 213 | datatype => 'boolean', | ||
| 214 | base_name => 'RepeatUntilNextClick', | ||
| 215 | description => 'Specifies if the effect will repeat until the next click.', | ||
| 216 | format => '', | ||
| 217 | read_only => '', | ||
| 218 | }, | ||
| 219 | 'stop_previous_sound' => { | ||
| 220 | datatype => 'boolean', | ||
| 221 | base_name => 'StopPreviousSound', | ||
| 222 | description => 'This attribute specifies if the animation effect stops the previous sound.', | ||
| 223 | format => '', | ||
| 224 | read_only => '', | ||
| 225 | }, | ||
| 226 | 'rewind' => { | ||
| 227 | datatype => 'boolean', | ||
| 228 | base_name => 'Rewind', | ||
| 229 | description => 'This attribute specifies if the effect will rewind when done playing.', | ||
| 230 | format => '', | ||
| 231 | read_only => '', | ||
| 232 | }, | ||
| 233 | 'after_animation_type' => { | ||
| 234 | datatype => 'string', | ||
| 235 | base_name => 'AfterAnimationType', | ||
| 236 | description => 'Defined an after animation color for effect.', | ||
| 237 | format => '', | ||
| 238 | read_only => '', | ||
| 239 | }, | ||
| 240 | 'after_animation_color' => { | ||
| 241 | datatype => 'string', | ||
| 242 | base_name => 'AfterAnimationColor', | ||
| 243 | description => 'Defined an after animation color for effect. Applied when the AfterAnimationType property is set to Color.', | ||
| 244 | format => '', | ||
| 245 | read_only => '', | ||
| 246 | }, | ||
| 247 | }); | ||
| 248 | |||
| 249 | __PACKAGE__->swagger_types( { | ||
| 250 | 'type' => 'string', | ||
| 251 | 'subtype' => 'string', | ||
| 252 | 'preset_class_type' => 'string', | ||
| 253 | 'animate_text_type' => 'string', | ||
| 254 | 'shape_index' => 'int', | ||
| 255 | 'paragraph_index' => 'int', | ||
| 256 | 'trigger_type' => 'string', | ||
| 257 | 'accelerate' => 'double', | ||
| 258 | 'auto_reverse' => 'boolean', | ||
| 259 | 'decelerate' => 'double', | ||
| 260 | 'duration' => 'double', | ||
| 261 | 'repeat_count' => 'double', | ||
| 262 | 'repeat_duration' => 'double', | ||
| 263 | 'restart' => 'string', | ||
| 264 | 'speed' => 'double', | ||
| 265 | 'trigger_delay_time' => 'double', | ||
| 266 | 'repeat_until_end_slide' => 'boolean', | ||
| 267 | 'repeat_until_next_click' => 'boolean', | ||
| 268 | 'stop_previous_sound' => 'boolean', | ||
| 269 | 'rewind' => 'boolean', | ||
| 270 | 'after_animation_type' => 'string', | ||
| 271 | 'after_animation_color' => 'string' | ||
| 272 | } ); | ||
| 273 | |||
| 274 | __PACKAGE__->attribute_map( { | ||
| 275 | 'type' => 'Type', | ||
| 276 | 'subtype' => 'Subtype', | ||
| 277 | 'preset_class_type' => 'PresetClassType', | ||
| 278 | 'animate_text_type' => 'AnimateTextType', | ||
| 279 | 'shape_index' => 'ShapeIndex', | ||
| 280 | 'paragraph_index' => 'ParagraphIndex', | ||
| 281 | 'trigger_type' => 'TriggerType', | ||
| 282 | 'accelerate' => 'Accelerate', | ||
| 283 | 'auto_reverse' => 'AutoReverse', | ||
| 284 | 'decelerate' => 'Decelerate', | ||
| 285 | 'duration' => 'Duration', | ||
| 286 | 'repeat_count' => 'RepeatCount', | ||
| 287 | 'repeat_duration' => 'RepeatDuration', | ||
| 288 | 'restart' => 'Restart', | ||
| 289 | 'speed' => 'Speed', | ||
| 290 | 'trigger_delay_time' => 'TriggerDelayTime', | ||
| 291 | 'repeat_until_end_slide' => 'RepeatUntilEndSlide', | ||
| 292 | 'repeat_until_next_click' => 'RepeatUntilNextClick', | ||
| 293 | 'stop_previous_sound' => 'StopPreviousSound', | ||
| 294 | 'rewind' => 'Rewind', | ||
| 295 | 'after_animation_type' => 'AfterAnimationType', | ||
| 296 | 'after_animation_color' => 'AfterAnimationColor' | ||
| 297 | } ); | ||
| 298 | |||
| 299 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 300 | |||
| 301 | |||
| 302 | 1; |