| 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::AudioFrame; | ||
| 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::GeometryShape; | ||
| 43 | use AsposeSlidesCloud::Object::Hyperlink; | ||
| 44 | use AsposeSlidesCloud::Object::LineFormat; | ||
| 45 | use AsposeSlidesCloud::Object::PictureFill; | ||
| 46 | use AsposeSlidesCloud::Object::ResourceUri; | ||
| 47 | use AsposeSlidesCloud::Object::ThreeDFormat; | ||
| 48 | |||
| 49 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 50 | |||
| 51 | |||
| 52 | # | ||
| 53 | #Represents AudioFrame resource. | ||
| 54 | # | ||
| 55 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 56 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 57 | # | ||
| 58 | |||
| 59 | # | ||
| 60 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 61 | # Do not edit the class manually. | ||
| 62 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 63 | # | ||
| 64 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 65 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 66 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 67 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 68 | |||
| 69 | # new object | ||
| 70 | sub new { | ||
| 71 | my ($class, %args) = @_; | ||
| 72 | |||
| 73 | my $self = bless {}, $class; | ||
| 74 | |||
| 75 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 76 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 77 | $self->$attribute( $args{ $args_key } ); | ||
| 78 | } | ||
| 79 | $self->{ type } = 'AudioFrame'; | ||
| 80 | return $self; | ||
| 81 | } | ||
| 82 | |||
| 83 | # used by JSON for serialization | ||
| 84 | sub TO_JSON { | ||
| 85 | my $self = shift; | ||
| 86 | my $_data = {}; | ||
| 87 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 88 | if (defined $self->{$_key}) { | ||
| 89 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 90 | } | ||
| 91 | } | ||
| 92 | return $_data; | ||
| 93 | } | ||
| 94 | |||
| 95 | |||
| 96 | __PACKAGE__->class_documentation({description => 'Represents AudioFrame resource.', | ||
| 97 | class => 'AudioFrame', | ||
| 98 | required => [], # TODO | ||
| 99 | } ); | ||
| 100 | |||
| 101 | __PACKAGE__->method_documentation({ | ||
| 102 | 'self_uri' => { | ||
| 103 | datatype => 'ResourceUri', | ||
| 104 | base_name => 'SelfUri', | ||
| 105 | description => 'Gets or sets the link to this resource.', | ||
| 106 | format => '', | ||
| 107 | read_only => '', | ||
| 108 | }, | ||
| 109 | 'alternate_links' => { | ||
| 110 | datatype => 'ARRAY[ResourceUri]', | ||
| 111 | base_name => 'AlternateLinks', | ||
| 112 | description => 'List of alternate links.', | ||
| 113 | format => '', | ||
| 114 | read_only => '', | ||
| 115 | }, | ||
| 116 | 'name' => { | ||
| 117 | datatype => 'string', | ||
| 118 | base_name => 'Name', | ||
| 119 | description => 'Gets or sets the name.', | ||
| 120 | format => '', | ||
| 121 | read_only => '', | ||
| 122 | }, | ||
| 123 | 'width' => { | ||
| 124 | datatype => 'double', | ||
| 125 | base_name => 'Width', | ||
| 126 | description => 'Gets or sets the width.', | ||
| 127 | format => '', | ||
| 128 | read_only => '', | ||
| 129 | }, | ||
| 130 | 'height' => { | ||
| 131 | datatype => 'double', | ||
| 132 | base_name => 'Height', | ||
| 133 | description => 'Gets or sets the height.', | ||
| 134 | format => '', | ||
| 135 | read_only => '', | ||
| 136 | }, | ||
| 137 | 'alternative_text' => { | ||
| 138 | datatype => 'string', | ||
| 139 | base_name => 'AlternativeText', | ||
| 140 | description => 'Gets or sets the alternative text.', | ||
| 141 | format => '', | ||
| 142 | read_only => '', | ||
| 143 | }, | ||
| 144 | 'alternative_text_title' => { | ||
| 145 | datatype => 'string', | ||
| 146 | base_name => 'AlternativeTextTitle', | ||
| 147 | description => 'The title of alternative text associated with the shape.', | ||
| 148 | format => '', | ||
| 149 | read_only => '', | ||
| 150 | }, | ||
| 151 | 'hidden' => { | ||
| 152 | datatype => 'boolean', | ||
| 153 | base_name => 'Hidden', | ||
| 154 | description => 'Gets or sets a value indicating whether this ShapeBase is hidden.', | ||
| 155 | format => '', | ||
| 156 | read_only => '', | ||
| 157 | }, | ||
| 158 | 'is_decorative' => { | ||
| 159 | datatype => 'boolean', | ||
| 160 | base_name => 'IsDecorative', | ||
| 161 | description => 'Gets or sets 'Mark as decorative' option.', | ||
| 162 | format => '', | ||
| 163 | read_only => '', | ||
| 164 | }, | ||
| 165 | 'x' => { | ||
| 166 | datatype => 'double', | ||
| 167 | base_name => 'X', | ||
| 168 | description => 'Gets or sets the X', | ||
| 169 | format => '', | ||
| 170 | read_only => '', | ||
| 171 | }, | ||
| 172 | 'y' => { | ||
| 173 | datatype => 'double', | ||
| 174 | base_name => 'Y', | ||
| 175 | description => 'Gets or sets the Y.', | ||
| 176 | format => '', | ||
| 177 | read_only => '', | ||
| 178 | }, | ||
| 179 | 'z_order_position' => { | ||
| 180 | datatype => 'int', | ||
| 181 | base_name => 'ZOrderPosition', | ||
| 182 | description => 'Gets z-order position of shape', | ||
| 183 | format => '', | ||
| 184 | read_only => '', | ||
| 185 | }, | ||
| 186 | 'fill_format' => { | ||
| 187 | datatype => 'FillFormat', | ||
| 188 | base_name => 'FillFormat', | ||
| 189 | description => 'Gets or sets the fill format.', | ||
| 190 | format => '', | ||
| 191 | read_only => '', | ||
| 192 | }, | ||
| 193 | 'effect_format' => { | ||
| 194 | datatype => 'EffectFormat', | ||
| 195 | base_name => 'EffectFormat', | ||
| 196 | description => 'Gets or sets the effect format.', | ||
| 197 | format => '', | ||
| 198 | read_only => '', | ||
| 199 | }, | ||
| 200 | 'three_d_format' => { | ||
| 201 | datatype => 'ThreeDFormat', | ||
| 202 | base_name => 'ThreeDFormat', | ||
| 203 | description => 'Gets or sets the 3D format', | ||
| 204 | format => '', | ||
| 205 | read_only => '', | ||
| 206 | }, | ||
| 207 | 'line_format' => { | ||
| 208 | datatype => 'LineFormat', | ||
| 209 | base_name => 'LineFormat', | ||
| 210 | description => 'Gets or sets the line format.', | ||
| 211 | format => '', | ||
| 212 | read_only => '', | ||
| 213 | }, | ||
| 214 | 'hyperlink_click' => { | ||
| 215 | datatype => 'Hyperlink', | ||
| 216 | base_name => 'HyperlinkClick', | ||
| 217 | description => 'Hyperlink defined for mouse click.', | ||
| 218 | format => '', | ||
| 219 | read_only => '', | ||
| 220 | }, | ||
| 221 | 'hyperlink_mouse_over' => { | ||
| 222 | datatype => 'Hyperlink', | ||
| 223 | base_name => 'HyperlinkMouseOver', | ||
| 224 | description => 'Hyperlink defined for mouse over.', | ||
| 225 | format => '', | ||
| 226 | read_only => '', | ||
| 227 | }, | ||
| 228 | 'type' => { | ||
| 229 | datatype => 'string', | ||
| 230 | base_name => 'Type', | ||
| 231 | description => 'Shape type.', | ||
| 232 | format => '', | ||
| 233 | read_only => '', | ||
| 234 | }, | ||
| 235 | 'shape_type' => { | ||
| 236 | datatype => 'string', | ||
| 237 | base_name => 'ShapeType', | ||
| 238 | description => 'Combined shape type.', | ||
| 239 | format => '', | ||
| 240 | read_only => '', | ||
| 241 | }, | ||
| 242 | 'audio_cd_end_track' => { | ||
| 243 | datatype => 'int', | ||
| 244 | base_name => 'AudioCdEndTrack', | ||
| 245 | description => 'Returns or sets a last track index.', | ||
| 246 | format => '', | ||
| 247 | read_only => '', | ||
| 248 | }, | ||
| 249 | 'audio_cd_end_track_time' => { | ||
| 250 | datatype => 'int', | ||
| 251 | base_name => 'AudioCdEndTrackTime', | ||
| 252 | description => 'Returns or sets a last track time.', | ||
| 253 | format => '', | ||
| 254 | read_only => '', | ||
| 255 | }, | ||
| 256 | 'audio_cd_start_track' => { | ||
| 257 | datatype => 'int', | ||
| 258 | base_name => 'AudioCdStartTrack', | ||
| 259 | description => 'Returns or sets a start track index.', | ||
| 260 | format => '', | ||
| 261 | read_only => '', | ||
| 262 | }, | ||
| 263 | 'audio_cd_start_track_time' => { | ||
| 264 | datatype => 'int', | ||
| 265 | base_name => 'AudioCdStartTrackTime', | ||
| 266 | description => 'Returns or sets a start track time. ', | ||
| 267 | format => '', | ||
| 268 | read_only => '', | ||
| 269 | }, | ||
| 270 | 'embedded' => { | ||
| 271 | datatype => 'boolean', | ||
| 272 | base_name => 'Embedded', | ||
| 273 | description => 'Determines whether a sound is embedded to a presentation.', | ||
| 274 | format => '', | ||
| 275 | read_only => '', | ||
| 276 | }, | ||
| 277 | 'hide_at_showing' => { | ||
| 278 | datatype => 'boolean', | ||
| 279 | base_name => 'HideAtShowing', | ||
| 280 | description => 'Determines whether an AudioFrame is hidden.', | ||
| 281 | format => '', | ||
| 282 | read_only => '', | ||
| 283 | }, | ||
| 284 | 'play_loop_mode' => { | ||
| 285 | datatype => 'boolean', | ||
| 286 | base_name => 'PlayLoopMode', | ||
| 287 | description => 'Determines whether an audio is looped. ', | ||
| 288 | format => '', | ||
| 289 | read_only => '', | ||
| 290 | }, | ||
| 291 | 'play_mode' => { | ||
| 292 | datatype => 'string', | ||
| 293 | base_name => 'PlayMode', | ||
| 294 | description => 'Returns or sets the audio play mode.', | ||
| 295 | format => '', | ||
| 296 | read_only => '', | ||
| 297 | }, | ||
| 298 | 'volume' => { | ||
| 299 | datatype => 'string', | ||
| 300 | base_name => 'Volume', | ||
| 301 | description => 'Returns or sets the audio volume.', | ||
| 302 | format => '', | ||
| 303 | read_only => '', | ||
| 304 | }, | ||
| 305 | 'volume_value' => { | ||
| 306 | datatype => 'double', | ||
| 307 | base_name => 'VolumeValue', | ||
| 308 | description => 'Audio volume percent.', | ||
| 309 | format => '', | ||
| 310 | read_only => '', | ||
| 311 | }, | ||
| 312 | 'base64_data' => { | ||
| 313 | datatype => 'string', | ||
| 314 | base_name => 'Base64Data', | ||
| 315 | description => 'Audio data encoded in base64.', | ||
| 316 | format => '', | ||
| 317 | read_only => '', | ||
| 318 | }, | ||
| 319 | 'play_across_slides' => { | ||
| 320 | datatype => 'boolean', | ||
| 321 | base_name => 'PlayAcrossSlides', | ||
| 322 | description => 'Determines whether an audio is playing across the slides.', | ||
| 323 | format => '', | ||
| 324 | read_only => '', | ||
| 325 | }, | ||
| 326 | 'rewind_audio' => { | ||
| 327 | datatype => 'boolean', | ||
| 328 | base_name => 'RewindAudio', | ||
| 329 | description => 'Determines whether audio is automatically rewound to start after playing.', | ||
| 330 | format => '', | ||
| 331 | read_only => '', | ||
| 332 | }, | ||
| 333 | 'fade_in_duration' => { | ||
| 334 | datatype => 'double', | ||
| 335 | base_name => 'FadeInDuration', | ||
| 336 | description => 'Time duration for the initial fade-in of the media in milliseconds.', | ||
| 337 | format => '', | ||
| 338 | read_only => '', | ||
| 339 | }, | ||
| 340 | 'fade_out_duration' => { | ||
| 341 | datatype => 'double', | ||
| 342 | base_name => 'FadeOutDuration', | ||
| 343 | description => 'Time duration for the ending fade-out of the media in milliseconds.', | ||
| 344 | format => '', | ||
| 345 | read_only => '', | ||
| 346 | }, | ||
| 347 | 'trim_from_start' => { | ||
| 348 | datatype => 'double', | ||
| 349 | base_name => 'TrimFromStart', | ||
| 350 | description => 'Time duration to be removed from the beginning of the media during playback in milliseconds.', | ||
| 351 | format => '', | ||
| 352 | read_only => '', | ||
| 353 | }, | ||
| 354 | 'trim_from_end' => { | ||
| 355 | datatype => 'double', | ||
| 356 | base_name => 'TrimFromEnd', | ||
| 357 | description => 'Time duration to be removed from the end of the media during playback in milliseconds.', | ||
| 358 | format => '', | ||
| 359 | read_only => '', | ||
| 360 | }, | ||
| 361 | 'picture_fill_format' => { | ||
| 362 | datatype => 'PictureFill', | ||
| 363 | base_name => 'PictureFillFormat', | ||
| 364 | description => 'Picture fill format.', | ||
| 365 | format => '', | ||
| 366 | read_only => '', | ||
| 367 | }, | ||
| 368 | }); | ||
| 369 | |||
| 370 | __PACKAGE__->swagger_types( { | ||
| 371 | 'self_uri' => 'ResourceUri', | ||
| 372 | 'alternate_links' => 'ARRAY[ResourceUri]', | ||
| 373 | 'name' => 'string', | ||
| 374 | 'width' => 'double', | ||
| 375 | 'height' => 'double', | ||
| 376 | 'alternative_text' => 'string', | ||
| 377 | 'alternative_text_title' => 'string', | ||
| 378 | 'hidden' => 'boolean', | ||
| 379 | 'is_decorative' => 'boolean', | ||
| 380 | 'x' => 'double', | ||
| 381 | 'y' => 'double', | ||
| 382 | 'z_order_position' => 'int', | ||
| 383 | 'fill_format' => 'FillFormat', | ||
| 384 | 'effect_format' => 'EffectFormat', | ||
| 385 | 'three_d_format' => 'ThreeDFormat', | ||
| 386 | 'line_format' => 'LineFormat', | ||
| 387 | 'hyperlink_click' => 'Hyperlink', | ||
| 388 | 'hyperlink_mouse_over' => 'Hyperlink', | ||
| 389 | 'type' => 'string', | ||
| 390 | 'shape_type' => 'string', | ||
| 391 | 'audio_cd_end_track' => 'int', | ||
| 392 | 'audio_cd_end_track_time' => 'int', | ||
| 393 | 'audio_cd_start_track' => 'int', | ||
| 394 | 'audio_cd_start_track_time' => 'int', | ||
| 395 | 'embedded' => 'boolean', | ||
| 396 | 'hide_at_showing' => 'boolean', | ||
| 397 | 'play_loop_mode' => 'boolean', | ||
| 398 | 'play_mode' => 'string', | ||
| 399 | 'volume' => 'string', | ||
| 400 | 'volume_value' => 'double', | ||
| 401 | 'base64_data' => 'string', | ||
| 402 | 'play_across_slides' => 'boolean', | ||
| 403 | 'rewind_audio' => 'boolean', | ||
| 404 | 'fade_in_duration' => 'double', | ||
| 405 | 'fade_out_duration' => 'double', | ||
| 406 | 'trim_from_start' => 'double', | ||
| 407 | 'trim_from_end' => 'double', | ||
| 408 | 'picture_fill_format' => 'PictureFill' | ||
| 409 | } ); | ||
| 410 | |||
| 411 | __PACKAGE__->attribute_map( { | ||
| 412 | 'self_uri' => 'SelfUri', | ||
| 413 | 'alternate_links' => 'AlternateLinks', | ||
| 414 | 'name' => 'Name', | ||
| 415 | 'width' => 'Width', | ||
| 416 | 'height' => 'Height', | ||
| 417 | 'alternative_text' => 'AlternativeText', | ||
| 418 | 'alternative_text_title' => 'AlternativeTextTitle', | ||
| 419 | 'hidden' => 'Hidden', | ||
| 420 | 'is_decorative' => 'IsDecorative', | ||
| 421 | 'x' => 'X', | ||
| 422 | 'y' => 'Y', | ||
| 423 | 'z_order_position' => 'ZOrderPosition', | ||
| 424 | 'fill_format' => 'FillFormat', | ||
| 425 | 'effect_format' => 'EffectFormat', | ||
| 426 | 'three_d_format' => 'ThreeDFormat', | ||
| 427 | 'line_format' => 'LineFormat', | ||
| 428 | 'hyperlink_click' => 'HyperlinkClick', | ||
| 429 | 'hyperlink_mouse_over' => 'HyperlinkMouseOver', | ||
| 430 | 'type' => 'Type', | ||
| 431 | 'shape_type' => 'ShapeType', | ||
| 432 | 'audio_cd_end_track' => 'AudioCdEndTrack', | ||
| 433 | 'audio_cd_end_track_time' => 'AudioCdEndTrackTime', | ||
| 434 | 'audio_cd_start_track' => 'AudioCdStartTrack', | ||
| 435 | 'audio_cd_start_track_time' => 'AudioCdStartTrackTime', | ||
| 436 | 'embedded' => 'Embedded', | ||
| 437 | 'hide_at_showing' => 'HideAtShowing', | ||
| 438 | 'play_loop_mode' => 'PlayLoopMode', | ||
| 439 | 'play_mode' => 'PlayMode', | ||
| 440 | 'volume' => 'Volume', | ||
| 441 | 'volume_value' => 'VolumeValue', | ||
| 442 | 'base64_data' => 'Base64Data', | ||
| 443 | 'play_across_slides' => 'PlayAcrossSlides', | ||
| 444 | 'rewind_audio' => 'RewindAudio', | ||
| 445 | 'fade_in_duration' => 'FadeInDuration', | ||
| 446 | 'fade_out_duration' => 'FadeOutDuration', | ||
| 447 | 'trim_from_start' => 'TrimFromStart', | ||
| 448 | 'trim_from_end' => 'TrimFromEnd', | ||
| 449 | 'picture_fill_format' => 'PictureFillFormat' | ||
| 450 | } ); | ||
| 451 | |||
| 452 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 453 | |||
| 454 | |||
| 455 | 1; |