Class: AsposeSlidesCloud::SlideShowProperties

Inherits:
ResourceBase show all
Defined in:
lib/aspose_slides_cloud/models/slide_show_properties.rb

Overview

Slide show properties.

Instance Attribute Summary collapse

Attributes inherited from ResourceBase

#alternate_links, #self_uri

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ SlideShowProperties

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 92

def initialize(attributes = {})
  super

  if attributes.has_key?(:'Loop')
    self.loop = attributes[:'Loop']
  end

  if attributes.has_key?(:'StartSlide')
    self.start_slide = attributes[:'StartSlide']
  end

  if attributes.has_key?(:'EndSlide')
    self.end_slide = attributes[:'EndSlide']
  end

  if attributes.has_key?(:'PenColor')
    self.pen_color = attributes[:'PenColor']
  end

  if attributes.has_key?(:'ShowAnimation')
    self.show_animation = attributes[:'ShowAnimation']
  end

  if attributes.has_key?(:'ShowNarration')
    self.show_narration = attributes[:'ShowNarration']
  end

  if attributes.has_key?(:'ShowMediaControls')
    self.show_media_controls = attributes[:'ShowMediaControls']
  end

  if attributes.has_key?(:'UseTimings')
    self.use_timings = attributes[:'UseTimings']
  end

  if attributes.has_key?(:'SlideShowType')
    self.slide_show_type = attributes[:'SlideShowType']
  end

  if attributes.has_key?(:'ShowScrollbar')
    self.show_scrollbar = attributes[:'ShowScrollbar']
  end
end

Instance Attribute Details

#end_slideObject

End slides in the slide show.



35
36
37
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 35

def end_slide
  @end_slide
end

#loopObject

Loop slide show.



29
30
31
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 29

def loop
  @loop
end

#pen_colorObject

Pen color.



38
39
40
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 38

def pen_color
  @pen_color
end

#show_animationObject

Show animation.



41
42
43
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 41

def show_animation
  @show_animation
end

#show_media_controlsObject

Show media controls.



47
48
49
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 47

def show_media_controls
  @show_media_controls
end

#show_narrationObject

Show narrration.



44
45
46
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 44

def show_narration
  @show_narration
end

#show_scrollbarObject

Show scroll bar. Applied with BrowsedByIndividual slide show type.



56
57
58
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 56

def show_scrollbar
  @show_scrollbar
end

#slide_show_typeObject

Slide show type.



53
54
55
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 53

def slide_show_type
  @slide_show_type
end

#start_slideObject

Start slide in the slide show.



32
33
34
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 32

def start_slide
  @start_slide
end

#use_timingsObject

Use timings.



50
51
52
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 50

def use_timings
  @use_timings
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 59

def self.attribute_map
  super.merge({
    :'loop' => :'Loop',
    :'start_slide' => :'StartSlide',
    :'end_slide' => :'EndSlide',
    :'pen_color' => :'PenColor',
    :'show_animation' => :'ShowAnimation',
    :'show_narration' => :'ShowNarration',
    :'show_media_controls' => :'ShowMediaControls',
    :'use_timings' => :'UseTimings',
    :'slide_show_type' => :'SlideShowType',
    :'show_scrollbar' => :'ShowScrollbar',
  })
end

.swagger_typesObject

Attribute type mapping.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 75

def self.swagger_types
  super.merge({
    :'loop' => :'BOOLEAN',
    :'start_slide' => :'Integer',
    :'end_slide' => :'Integer',
    :'pen_color' => :'String',
    :'show_animation' => :'BOOLEAN',
    :'show_narration' => :'BOOLEAN',
    :'show_media_controls' => :'BOOLEAN',
    :'use_timings' => :'BOOLEAN',
    :'slide_show_type' => :'String',
    :'show_scrollbar' => :'BOOLEAN',
  })
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 164

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      self_uri == o.self_uri &&
      alternate_links == o.alternate_links &&
      loop == o.loop &&
      start_slide == o.start_slide &&
      end_slide == o.end_slide &&
      pen_color == o.pen_color &&
      show_animation == o.show_animation &&
      show_narration == o.show_narration &&
      show_media_controls == o.show_media_controls &&
      use_timings == o.use_timings &&
      slide_show_type == o.slide_show_type &&
      show_scrollbar == o.show_scrollbar
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


183
184
185
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 183

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



189
190
191
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 189

def hash
  [self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, show_media_controls, use_timings, slide_show_type, show_scrollbar].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



138
139
140
141
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 138

def list_invalid_properties
  invalid_properties = super
  invalid_properties
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



145
146
147
148
149
150
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 145

def valid?
  return false if !super
  slide_show_type_validator = EnumAttributeValidator.new('String', ['BrowsedAtKiosk', 'BrowsedByIndividual', 'PresentedBySpeaker'])
  return false unless slide_show_type_validator.valid?(@slide_show_type)
  true
end