AsposeSlidesCloud-SlidesApi/lib/AsposeSlidesCloud/Object/AudioFrame.pm
=begin comment
Copyright (c) 2019 Aspose Pty Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=end comment
=cut
package AsposeSlidesCloud::Object::AudioFrame;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::Parse;
use DateTime;
use AsposeSlidesCloud::Object::EffectFormat;
use AsposeSlidesCloud::Object::FillFormat;
use AsposeSlidesCloud::Object::GeometryShape;
use AsposeSlidesCloud::Object::Hyperlink;
use AsposeSlidesCloud::Object::LineFormat;
use AsposeSlidesCloud::Object::PictureFill;
use AsposeSlidesCloud::Object::ResourceUri;
use AsposeSlidesCloud::Object::ThreeDFormat;
use base ("Class::Accessor", "Class::Data::Inheritable");
#
#Represents AudioFrame resource.
#
# NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
# REF: https://github.com/swagger-api/swagger-codegen
#
#
# NOTE: This class is auto generated by the swagger code generator program.
# Do not edit the class manually.
# Ref: https://github.com/swagger-api/swagger-codegen
#
__PACKAGE__->mk_classdata('attribute_map' => {});
__PACKAGE__->mk_classdata('swagger_types' => {});
__PACKAGE__->mk_classdata('method_documentation' => {});
__PACKAGE__->mk_classdata('class_documentation' => {});
# new object
sub new {
my ($class, %args) = @_;
my $self = bless {}, $class;
foreach my $attribute (keys %{$class->attribute_map}) {
my $args_key = $class->attribute_map->{$attribute};
$self->$attribute( $args{ $args_key } );
}
$self->{ type } = 'AudioFrame';
return $self;
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
foreach my $_key (keys %{$self->attribute_map}) {
if (defined $self->{$_key}) {
$_data->{$self->attribute_map->{$_key}} = $self->{$_key};
}
}
return $_data;
}
__PACKAGE__->class_documentation({description => 'Represents AudioFrame resource.',
class => 'AudioFrame',
required => [], # TODO
} );
__PACKAGE__->method_documentation({
'self_uri' => {
datatype => 'ResourceUri',
base_name => 'SelfUri',
description => 'Gets or sets the link to this resource.',
format => '',
read_only => '',
},
'alternate_links' => {
datatype => 'ARRAY[ResourceUri]',
base_name => 'AlternateLinks',
description => 'List of alternate links.',
format => '',
read_only => '',
},
'name' => {
datatype => 'string',
base_name => 'Name',
description => 'Gets or sets the name.',
format => '',
read_only => '',
},
'width' => {
datatype => 'double',
base_name => 'Width',
description => 'Gets or sets the width.',
format => '',
read_only => '',
},
'height' => {
datatype => 'double',
base_name => 'Height',
description => 'Gets or sets the height.',
format => '',
read_only => '',
},
'alternative_text' => {
datatype => 'string',
base_name => 'AlternativeText',
description => 'Gets or sets the alternative text.',
format => '',
read_only => '',
},
'alternative_text_title' => {
datatype => 'string',
base_name => 'AlternativeTextTitle',
description => 'The title of alternative text associated with the shape.',
format => '',
read_only => '',
},
'hidden' => {
datatype => 'boolean',
base_name => 'Hidden',
description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
format => '',
read_only => '',
},
'is_decorative' => {
datatype => 'boolean',
base_name => 'IsDecorative',
description => 'Gets or sets 'Mark as decorative' option.',
format => '',
read_only => '',
},
'x' => {
datatype => 'double',
base_name => 'X',
description => 'Gets or sets the X',
format => '',
read_only => '',
},
'y' => {
datatype => 'double',
base_name => 'Y',
description => 'Gets or sets the Y.',
format => '',
read_only => '',
},
'z_order_position' => {
datatype => 'int',
base_name => 'ZOrderPosition',
description => 'Gets z-order position of shape',
format => '',
read_only => '',
},
'fill_format' => {
datatype => 'FillFormat',
base_name => 'FillFormat',
description => 'Gets or sets the fill format.',
format => '',
read_only => '',
},
'effect_format' => {
datatype => 'EffectFormat',
base_name => 'EffectFormat',
description => 'Gets or sets the effect format.',
format => '',
read_only => '',
},
'three_d_format' => {
datatype => 'ThreeDFormat',
base_name => 'ThreeDFormat',
description => 'Gets or sets the 3D format',
format => '',
read_only => '',
},
'line_format' => {
datatype => 'LineFormat',
base_name => 'LineFormat',
description => 'Gets or sets the line format.',
format => '',
read_only => '',
},
'hyperlink_click' => {
datatype => 'Hyperlink',
base_name => 'HyperlinkClick',
description => 'Hyperlink defined for mouse click.',
format => '',
read_only => '',
},
'hyperlink_mouse_over' => {
datatype => 'Hyperlink',
base_name => 'HyperlinkMouseOver',
description => 'Hyperlink defined for mouse over.',
format => '',
read_only => '',
},
'type' => {
datatype => 'string',
base_name => 'Type',
description => 'Shape type.',
format => '',
read_only => '',
},
'shape_type' => {
datatype => 'string',
base_name => 'ShapeType',
description => 'Combined shape type.',
format => '',
read_only => '',
},
'audio_cd_end_track' => {
datatype => 'int',
base_name => 'AudioCdEndTrack',
description => 'Returns or sets a last track index.',
format => '',
read_only => '',
},
'audio_cd_end_track_time' => {
datatype => 'int',
base_name => 'AudioCdEndTrackTime',
description => 'Returns or sets a last track time.',
format => '',
read_only => '',
},
'audio_cd_start_track' => {
datatype => 'int',
base_name => 'AudioCdStartTrack',
description => 'Returns or sets a start track index.',
format => '',
read_only => '',
},
'audio_cd_start_track_time' => {
datatype => 'int',
base_name => 'AudioCdStartTrackTime',
description => 'Returns or sets a start track time. ',
format => '',
read_only => '',
},
'embedded' => {
datatype => 'boolean',
base_name => 'Embedded',
description => 'Determines whether a sound is embedded to a presentation.',
format => '',
read_only => '',
},
'hide_at_showing' => {
datatype => 'boolean',
base_name => 'HideAtShowing',
description => 'Determines whether an AudioFrame is hidden.',
format => '',
read_only => '',
},
'play_loop_mode' => {
datatype => 'boolean',
base_name => 'PlayLoopMode',
description => 'Determines whether an audio is looped. ',
format => '',
read_only => '',
},
'play_mode' => {
datatype => 'string',
base_name => 'PlayMode',
description => 'Returns or sets the audio play mode.',
format => '',
read_only => '',
},
'volume' => {
datatype => 'string',
base_name => 'Volume',
description => 'Returns or sets the audio volume.',
format => '',
read_only => '',
},
'volume_value' => {
datatype => 'double',
base_name => 'VolumeValue',
description => 'Audio volume percent.',
format => '',
read_only => '',
},
'base64_data' => {
datatype => 'string',
base_name => 'Base64Data',
description => 'Audio data encoded in base64.',
format => '',
read_only => '',
},
'play_across_slides' => {
datatype => 'boolean',
base_name => 'PlayAcrossSlides',
description => 'Determines whether an audio is playing across the slides.',
format => '',
read_only => '',
},
'rewind_audio' => {
datatype => 'boolean',
base_name => 'RewindAudio',
description => 'Determines whether audio is automatically rewound to start after playing.',
format => '',
read_only => '',
},
'fade_in_duration' => {
datatype => 'double',
base_name => 'FadeInDuration',
description => 'Time duration for the initial fade-in of the media in milliseconds.',
format => '',
read_only => '',
},
'fade_out_duration' => {
datatype => 'double',
base_name => 'FadeOutDuration',
description => 'Time duration for the ending fade-out of the media in milliseconds.',
format => '',
read_only => '',
},
'trim_from_start' => {
datatype => 'double',
base_name => 'TrimFromStart',
description => 'Time duration to be removed from the beginning of the media during playback in milliseconds.',
format => '',
read_only => '',
},
'trim_from_end' => {
datatype => 'double',
base_name => 'TrimFromEnd',
description => 'Time duration to be removed from the end of the media during playback in milliseconds.',
format => '',
read_only => '',
},
'picture_fill_format' => {
datatype => 'PictureFill',
base_name => 'PictureFillFormat',
description => 'Picture fill format.',
format => '',
read_only => '',
},
});
__PACKAGE__->swagger_types( {
'self_uri' => 'ResourceUri',
'alternate_links' => 'ARRAY[ResourceUri]',
'name' => 'string',
'width' => 'double',
'height' => 'double',
'alternative_text' => 'string',
'alternative_text_title' => 'string',
'hidden' => 'boolean',
'is_decorative' => 'boolean',
'x' => 'double',
'y' => 'double',
'z_order_position' => 'int',
'fill_format' => 'FillFormat',
'effect_format' => 'EffectFormat',
'three_d_format' => 'ThreeDFormat',
'line_format' => 'LineFormat',
'hyperlink_click' => 'Hyperlink',
'hyperlink_mouse_over' => 'Hyperlink',
'type' => 'string',
'shape_type' => 'string',
'audio_cd_end_track' => 'int',
'audio_cd_end_track_time' => 'int',
'audio_cd_start_track' => 'int',
'audio_cd_start_track_time' => 'int',
'embedded' => 'boolean',
'hide_at_showing' => 'boolean',
'play_loop_mode' => 'boolean',
'play_mode' => 'string',
'volume' => 'string',
'volume_value' => 'double',
'base64_data' => 'string',
'play_across_slides' => 'boolean',
'rewind_audio' => 'boolean',
'fade_in_duration' => 'double',
'fade_out_duration' => 'double',
'trim_from_start' => 'double',
'trim_from_end' => 'double',
'picture_fill_format' => 'PictureFill'
} );
__PACKAGE__->attribute_map( {
'self_uri' => 'SelfUri',
'alternate_links' => 'AlternateLinks',
'name' => 'Name',
'width' => 'Width',
'height' => 'Height',
'alternative_text' => 'AlternativeText',
'alternative_text_title' => 'AlternativeTextTitle',
'hidden' => 'Hidden',
'is_decorative' => 'IsDecorative',
'x' => 'X',
'y' => 'Y',
'z_order_position' => 'ZOrderPosition',
'fill_format' => 'FillFormat',
'effect_format' => 'EffectFormat',
'three_d_format' => 'ThreeDFormat',
'line_format' => 'LineFormat',
'hyperlink_click' => 'HyperlinkClick',
'hyperlink_mouse_over' => 'HyperlinkMouseOver',
'type' => 'Type',
'shape_type' => 'ShapeType',
'audio_cd_end_track' => 'AudioCdEndTrack',
'audio_cd_end_track_time' => 'AudioCdEndTrackTime',
'audio_cd_start_track' => 'AudioCdStartTrack',
'audio_cd_start_track_time' => 'AudioCdStartTrackTime',
'embedded' => 'Embedded',
'hide_at_showing' => 'HideAtShowing',
'play_loop_mode' => 'PlayLoopMode',
'play_mode' => 'PlayMode',
'volume' => 'Volume',
'volume_value' => 'VolumeValue',
'base64_data' => 'Base64Data',
'play_across_slides' => 'PlayAcrossSlides',
'rewind_audio' => 'RewindAudio',
'fade_in_duration' => 'FadeInDuration',
'fade_out_duration' => 'FadeOutDuration',
'trim_from_start' => 'TrimFromStart',
'trim_from_end' => 'TrimFromEnd',
'picture_fill_format' => 'PictureFillFormat'
} );
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
1;