Object/ViewProperties.pm untested

filter: Statementstmt 0.0% 0 / 76 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 97 CC 2 SCAR 8.9
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::ViewProperties;
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::CommonSlideViewProperties;
41 use AsposeSlidesCloud::Object::NormalViewRestoredProperties;
42 use AsposeSlidesCloud::Object::ResourceBase;
43 use AsposeSlidesCloud::Object::ResourceUri;
44  
45 use base ("Class::Accessor", "Class::Data::Inheritable");
46  
47  
48 #
49 #Slides document properties.
50 #
51 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
52 # REF: https://github.com/swagger-api/swagger-codegen
53 #
54  
55 #
56 # NOTE: This class is auto generated by the swagger code generator program.
57 # Do not edit the class manually.
58 # Ref: https://github.com/swagger-api/swagger-codegen
59 #
60 __PACKAGE__->mk_classdata('attribute_map' => {});
61 __PACKAGE__->mk_classdata('swagger_types' => {});
62 __PACKAGE__->mk_classdata('method_documentation' => {});
63 __PACKAGE__->mk_classdata('class_documentation' => {});
64  
65 # new object
66 sub new {
67 my ($class, %args) = @_;
68  
69 my $self = bless {}, $class;
70
71 foreach my $attribute (keys %{$class->attribute_map}) {
72 my $args_key = $class->attribute_map->{$attribute};
73 $self->$attribute( $args{ $args_key } );
74 }
75 return $self;
76 }
77  
78 # used by JSON for serialization
79 sub TO_JSON {
80 my $self = shift;
81 my $_data = {};
82 foreach my $_key (keys %{$self->attribute_map}) {
83 if (defined $self->{$_key}) {
84 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
85 }
86 }
87 return $_data;
88 }
89  
90  
91 __PACKAGE__->class_documentation({description => 'Slides document properties.',
92 class => 'ViewProperties',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'self_uri' => {
98 datatype => 'ResourceUri',
99 base_name => 'SelfUri',
100 description => 'Gets or sets the link to this resource.',
101 format => '',
102 read_only => '',
103 },
104 'alternate_links' => {
105 datatype => 'ARRAY[ResourceUri]',
106 base_name => 'AlternateLinks',
107 description => 'List of alternate links.',
108 format => '',
109 read_only => '',
110 },
111 'last_view' => {
112 datatype => 'string',
113 base_name => 'LastView',
114 description => 'Last used view mode.',
115 format => '',
116 read_only => '',
117 },
118 'horizontal_bar_state' => {
119 datatype => 'string',
120 base_name => 'HorizontalBarState',
121 description => 'Horizontal bar state.',
122 format => '',
123 read_only => '',
124 },
125 'vertical_bar_state' => {
126 datatype => 'string',
127 base_name => 'VerticalBarState',
128 description => 'Vertical bar state.',
129 format => '',
130 read_only => '',
131 },
132 'prefer_single_view' => {
133 datatype => 'boolean',
134 base_name => 'PreferSingleView',
135 description => 'True to prefer single view.',
136 format => '',
137 read_only => '',
138 },
139 'restored_left' => {
140 datatype => 'NormalViewRestoredProperties',
141 base_name => 'RestoredLeft',
142 description => 'The sizing of the side content region of the normal view, when the region is of a variable restored size.',
143 format => '',
144 read_only => '',
145 },
146 'restored_top' => {
147 datatype => 'NormalViewRestoredProperties',
148 base_name => 'RestoredTop',
149 description => 'The sizing of the top slide region of the normal view, when the region is of a variable restored size.',
150 format => '',
151 read_only => '',
152 },
153 'slide_view_properties' => {
154 datatype => 'CommonSlideViewProperties',
155 base_name => 'SlideViewProperties',
156 description => 'Slide view mode properties.',
157 format => '',
158 read_only => '',
159 },
160 'notes_view_properties' => {
161 datatype => 'CommonSlideViewProperties',
162 base_name => 'NotesViewProperties',
163 description => 'Notes view mode properties.',
164 format => '',
165 read_only => '',
166 },
167 'show_comments' => {
168 datatype => 'string',
169 base_name => 'ShowComments',
170 description => 'True if the comments should be shown.',
171 format => '',
172 read_only => '',
173 },
174 'grid_spacing' => {
175 datatype => 'double',
176 base_name => 'GridSpacing',
177 description => 'The grid spacing that should be used for the grid underlying the presentation document, in points.',
178 format => '',
179 read_only => '',
180 },
181 });
182  
183 __PACKAGE__->swagger_types( {
184 'self_uri' => 'ResourceUri',
185 'alternate_links' => 'ARRAY[ResourceUri]',
186 'last_view' => 'string',
187 'horizontal_bar_state' => 'string',
188 'vertical_bar_state' => 'string',
189 'prefer_single_view' => 'boolean',
190 'restored_left' => 'NormalViewRestoredProperties',
191 'restored_top' => 'NormalViewRestoredProperties',
192 'slide_view_properties' => 'CommonSlideViewProperties',
193 'notes_view_properties' => 'CommonSlideViewProperties',
194 'show_comments' => 'string',
195 'grid_spacing' => 'double'
196 } );
197  
198 __PACKAGE__->attribute_map( {
199 'self_uri' => 'SelfUri',
200 'alternate_links' => 'AlternateLinks',
201 'last_view' => 'LastView',
202 'horizontal_bar_state' => 'HorizontalBarState',
203 'vertical_bar_state' => 'VerticalBarState',
204 'prefer_single_view' => 'PreferSingleView',
205 'restored_left' => 'RestoredLeft',
206 'restored_top' => 'RestoredTop',
207 'slide_view_properties' => 'SlideViewProperties',
208 'notes_view_properties' => 'NotesViewProperties',
209 'show_comments' => 'ShowComments',
210 'grid_spacing' => 'GridSpacing'
211 } );
212  
213 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
214  
215  
216 1;