| 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::ShapeBase; | ||
| 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::ResourceBase; | ||
| 45 | use AsposeSlidesCloud::Object::ResourceUri; | ||
| 46 | use AsposeSlidesCloud::Object::ThreeDFormat; | ||
| 47 | |||
| 48 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 49 | |||
| 50 | |||
| 51 | # | ||
| 52 | #Slide shape. | ||
| 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 => 'Slide shape.', | ||
| 95 | class => 'ShapeBase', | ||
| 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 | }); | ||
| 234 | |||
| 235 | __PACKAGE__->swagger_types( { | ||
| 236 | 'self_uri' => 'ResourceUri', | ||
| 237 | 'alternate_links' => 'ARRAY[ResourceUri]', | ||
| 238 | 'name' => 'string', | ||
| 239 | 'width' => 'double', | ||
| 240 | 'height' => 'double', | ||
| 241 | 'alternative_text' => 'string', | ||
| 242 | 'alternative_text_title' => 'string', | ||
| 243 | 'hidden' => 'boolean', | ||
| 244 | 'is_decorative' => 'boolean', | ||
| 245 | 'x' => 'double', | ||
| 246 | 'y' => 'double', | ||
| 247 | 'z_order_position' => 'int', | ||
| 248 | 'fill_format' => 'FillFormat', | ||
| 249 | 'effect_format' => 'EffectFormat', | ||
| 250 | 'three_d_format' => 'ThreeDFormat', | ||
| 251 | 'line_format' => 'LineFormat', | ||
| 252 | 'hyperlink_click' => 'Hyperlink', | ||
| 253 | 'hyperlink_mouse_over' => 'Hyperlink', | ||
| 254 | 'type' => 'string' | ||
| 255 | } ); | ||
| 256 | |||
| 257 | __PACKAGE__->attribute_map( { | ||
| 258 | 'self_uri' => 'SelfUri', | ||
| 259 | 'alternate_links' => 'AlternateLinks', | ||
| 260 | 'name' => 'Name', | ||
| 261 | 'width' => 'Width', | ||
| 262 | 'height' => 'Height', | ||
| 263 | 'alternative_text' => 'AlternativeText', | ||
| 264 | 'alternative_text_title' => 'AlternativeTextTitle', | ||
| 265 | 'hidden' => 'Hidden', | ||
| 266 | 'is_decorative' => 'IsDecorative', | ||
| 267 | 'x' => 'X', | ||
| 268 | 'y' => 'Y', | ||
| 269 | 'z_order_position' => 'ZOrderPosition', | ||
| 270 | 'fill_format' => 'FillFormat', | ||
| 271 | 'effect_format' => 'EffectFormat', | ||
| 272 | 'three_d_format' => 'ThreeDFormat', | ||
| 273 | 'line_format' => 'LineFormat', | ||
| 274 | 'hyperlink_click' => 'HyperlinkClick', | ||
| 275 | 'hyperlink_mouse_over' => 'HyperlinkMouseOver', | ||
| 276 | 'type' => 'Type' | ||
| 277 | } ); | ||
| 278 | |||
| 279 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 280 | |||
| 281 | |||
| 282 | 1; |