class AsposeSlidesCloud::SlideShowTransition

Slide Show Transition.

Attributes

advance_after[RW]

Advance After

advance_after_time[RW]

Advance After Time

advance_on_click[RW]

Advance On Click

corner_and_center_direction[RW]

Orientation.

corner_direction[RW]

Corner Direction.

eight_direction[RW]

Eight Direction.

from_black[RW]

From Black.

has_bounce[RW]

Has Bounce.

in_out_direction[RW]

In/Out Direction.

left_right_direction[RW]

Left/Right Direction.

morph_type[RW]

Morph Type.

orientation[RW]

Orientation.

orientation_direction[RW]

Orientation Direction.

pattern[RW]

Pattern.

shred_pattern[RW]

Shred Pattern.

side_direction[RW]

Side Direction.

sound_is_built_in[RW]

Sound Is Built In

sound_loop[RW]

Sound Loop

sound_mode[RW]

Sound Mode

sound_name[RW]

Sound Name

speed[RW]

Speed

spokes[RW]

Spokes.

through_black[RW]

Through Black.

type[RW]

Transition Type

Public Class Methods

attribute_map() click to toggle source

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

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 101
def self.attribute_map
  {
    :'type' => :'Type',
    :'advance_after' => :'AdvanceAfter',
    :'advance_after_time' => :'AdvanceAfterTime',
    :'advance_on_click' => :'AdvanceOnClick',
    :'sound_is_built_in' => :'SoundIsBuiltIn',
    :'sound_loop' => :'SoundLoop',
    :'sound_mode' => :'SoundMode',
    :'sound_name' => :'SoundName',
    :'speed' => :'Speed',
    :'corner_direction' => :'CornerDirection',
    :'eight_direction' => :'EightDirection',
    :'in_out_direction' => :'InOutDirection',
    :'has_bounce' => :'HasBounce',
    :'side_direction' => :'SideDirection',
    :'pattern' => :'Pattern',
    :'left_right_direction' => :'LeftRightDirection',
    :'morph_type' => :'MorphType',
    :'from_black' => :'FromBlack',
    :'orientation_direction' => :'OrientationDirection',
    :'through_black' => :'ThroughBlack',
    :'corner_and_center_direction' => :'CornerAndCenterDirection',
    :'shred_pattern' => :'ShredPattern',
    :'orientation' => :'Orientation',
    :'spokes' => :'Spokes',
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 162
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'Type')
    self.type = attributes[:'Type']
  end

  if attributes.has_key?(:'AdvanceAfter')
    self.advance_after = attributes[:'AdvanceAfter']
  end

  if attributes.has_key?(:'AdvanceAfterTime')
    self.advance_after_time = attributes[:'AdvanceAfterTime']
  end

  if attributes.has_key?(:'AdvanceOnClick')
    self.advance_on_click = attributes[:'AdvanceOnClick']
  end

  if attributes.has_key?(:'SoundIsBuiltIn')
    self.sound_is_built_in = attributes[:'SoundIsBuiltIn']
  end

  if attributes.has_key?(:'SoundLoop')
    self.sound_loop = attributes[:'SoundLoop']
  end

  if attributes.has_key?(:'SoundMode')
    self.sound_mode = attributes[:'SoundMode']
  end

  if attributes.has_key?(:'SoundName')
    self.sound_name = attributes[:'SoundName']
  end

  if attributes.has_key?(:'Speed')
    self.speed = attributes[:'Speed']
  end

  if attributes.has_key?(:'CornerDirection')
    self.corner_direction = attributes[:'CornerDirection']
  end

  if attributes.has_key?(:'EightDirection')
    self.eight_direction = attributes[:'EightDirection']
  end

  if attributes.has_key?(:'InOutDirection')
    self.in_out_direction = attributes[:'InOutDirection']
  end

  if attributes.has_key?(:'HasBounce')
    self.has_bounce = attributes[:'HasBounce']
  end

  if attributes.has_key?(:'SideDirection')
    self.side_direction = attributes[:'SideDirection']
  end

  if attributes.has_key?(:'Pattern')
    self.pattern = attributes[:'Pattern']
  end

  if attributes.has_key?(:'LeftRightDirection')
    self.left_right_direction = attributes[:'LeftRightDirection']
  end

  if attributes.has_key?(:'MorphType')
    self.morph_type = attributes[:'MorphType']
  end

  if attributes.has_key?(:'FromBlack')
    self.from_black = attributes[:'FromBlack']
  end

  if attributes.has_key?(:'OrientationDirection')
    self.orientation_direction = attributes[:'OrientationDirection']
  end

  if attributes.has_key?(:'ThroughBlack')
    self.through_black = attributes[:'ThroughBlack']
  end

  if attributes.has_key?(:'CornerAndCenterDirection')
    self.corner_and_center_direction = attributes[:'CornerAndCenterDirection']
  end

  if attributes.has_key?(:'ShredPattern')
    self.shred_pattern = attributes[:'ShredPattern']
  end

  if attributes.has_key?(:'Orientation')
    self.orientation = attributes[:'Orientation']
  end

  if attributes.has_key?(:'Spokes')
    self.spokes = attributes[:'Spokes']
  end
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 131
def self.swagger_types
  {
    :'type' => :'String',
    :'advance_after' => :'BOOLEAN',
    :'advance_after_time' => :'Integer',
    :'advance_on_click' => :'BOOLEAN',
    :'sound_is_built_in' => :'BOOLEAN',
    :'sound_loop' => :'BOOLEAN',
    :'sound_mode' => :'String',
    :'sound_name' => :'String',
    :'speed' => :'String',
    :'corner_direction' => :'String',
    :'eight_direction' => :'String',
    :'in_out_direction' => :'String',
    :'has_bounce' => :'BOOLEAN',
    :'side_direction' => :'String',
    :'pattern' => :'String',
    :'left_right_direction' => :'String',
    :'morph_type' => :'String',
    :'from_black' => :'BOOLEAN',
    :'orientation_direction' => :'String',
    :'through_black' => :'BOOLEAN',
    :'corner_and_center_direction' => :'String',
    :'shred_pattern' => :'String',
    :'orientation' => :'String',
    :'spokes' => :'Integer',
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 448
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      advance_after == o.advance_after &&
      advance_after_time == o.advance_after_time &&
      advance_on_click == o.advance_on_click &&
      sound_is_built_in == o.sound_is_built_in &&
      sound_loop == o.sound_loop &&
      sound_mode == o.sound_mode &&
      sound_name == o.sound_name &&
      speed == o.speed &&
      corner_direction == o.corner_direction &&
      eight_direction == o.eight_direction &&
      in_out_direction == o.in_out_direction &&
      has_bounce == o.has_bounce &&
      side_direction == o.side_direction &&
      pattern == o.pattern &&
      left_right_direction == o.left_right_direction &&
      morph_type == o.morph_type &&
      from_black == o.from_black &&
      orientation_direction == o.orientation_direction &&
      through_black == o.through_black &&
      corner_and_center_direction == o.corner_and_center_direction &&
      shred_pattern == o.shred_pattern &&
      orientation == o.orientation &&
      spokes == o.spokes
end
corner_and_center_direction=(corner_and_center_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] corner_and_center_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 418
def corner_and_center_direction=(corner_and_center_direction)
  validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp', 'Center'])
  unless validator.valid?(corner_and_center_direction)
    fail ArgumentError, 'invalid value for "corner_and_center_direction", must be one of #{validator.allowable_values}.'
  end
  @corner_and_center_direction = corner_and_center_direction
end
corner_direction=(corner_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] corner_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 338
def corner_direction=(corner_direction)
  validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp'])
  unless validator.valid?(corner_direction)
    fail ArgumentError, 'invalid value for "corner_direction", must be one of #{validator.allowable_values}.'
  end
  @corner_direction = corner_direction
end
eight_direction=(eight_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] eight_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 348
def eight_direction=(eight_direction)
  validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp', 'Left', 'Up', 'Down', 'Right'])
  unless validator.valid?(eight_direction)
    fail ArgumentError, 'invalid value for "eight_direction", must be one of #{validator.allowable_values}.'
  end
  @eight_direction = eight_direction
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 479
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 485
def hash
  [type, advance_after, advance_after_time, advance_on_click, sound_is_built_in, sound_loop, sound_mode, sound_name, speed, corner_direction, eight_direction, in_out_direction, has_bounce, side_direction, pattern, left_right_direction, morph_type, from_black, orientation_direction, through_black, corner_and_center_direction, shred_pattern, orientation, spokes].hash
end
in_out_direction=(in_out_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] in_out_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 358
def in_out_direction=(in_out_direction)
  validator = EnumAttributeValidator.new('String', ['In', 'Out'])
  unless validator.valid?(in_out_direction)
    fail ArgumentError, 'invalid value for "in_out_direction", must be one of #{validator.allowable_values}.'
  end
  @in_out_direction = in_out_direction
end
left_right_direction=(left_right_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] left_right_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 388
def left_right_direction=(left_right_direction)
  validator = EnumAttributeValidator.new('String', ['Left', 'Right'])
  unless validator.valid?(left_right_direction)
    fail ArgumentError, 'invalid value for "left_right_direction", must be one of #{validator.allowable_values}.'
  end
  @left_right_direction = left_right_direction
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 267
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
morph_type=(morph_type) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] morph_type Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 398
def morph_type=(morph_type)
  validator = EnumAttributeValidator.new('String', ['ByObject', 'ByWord', 'ByChar'])
  unless validator.valid?(morph_type)
    fail ArgumentError, 'invalid value for "morph_type", must be one of #{validator.allowable_values}.'
  end
  @morph_type = morph_type
end
orientation=(orientation) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] orientation Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 438
def orientation=(orientation)
  validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
  unless validator.valid?(orientation)
    fail ArgumentError, 'invalid value for "orientation", must be one of #{validator.allowable_values}.'
  end
  @orientation = orientation
end
orientation_direction=(orientation_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] orientation_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 408
def orientation_direction=(orientation_direction)
  validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
  unless validator.valid?(orientation_direction)
    fail ArgumentError, 'invalid value for "orientation_direction", must be one of #{validator.allowable_values}.'
  end
  @orientation_direction = orientation_direction
end
pattern=(pattern) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] pattern Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 378
def pattern=(pattern)
  validator = EnumAttributeValidator.new('String', ['Diamond', 'Hexagon'])
  unless validator.valid?(pattern)
    fail ArgumentError, 'invalid value for "pattern", must be one of #{validator.allowable_values}.'
  end
  @pattern = pattern
end
shred_pattern=(shred_pattern) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] shred_pattern Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 428
def shred_pattern=(shred_pattern)
  validator = EnumAttributeValidator.new('String', ['Strip', 'Rectangle'])
  unless validator.valid?(shred_pattern)
    fail ArgumentError, 'invalid value for "shred_pattern", must be one of #{validator.allowable_values}.'
  end
  @shred_pattern = shred_pattern
end
side_direction=(side_direction) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] side_direction Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 368
def side_direction=(side_direction)
  validator = EnumAttributeValidator.new('String', ['Left', 'Up', 'Down', 'Right'])
  unless validator.valid?(side_direction)
    fail ArgumentError, 'invalid value for "side_direction", must be one of #{validator.allowable_values}.'
  end
  @side_direction = side_direction
end
sound_mode=(sound_mode) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] sound_mode Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 318
def sound_mode=(sound_mode)
  validator = EnumAttributeValidator.new('String', ['StartSound', 'StopPrevoiusSound', 'NotDefined'])
  unless validator.valid?(sound_mode)
    fail ArgumentError, 'invalid value for "sound_mode", must be one of #{validator.allowable_values}.'
  end
  @sound_mode = sound_mode
end
speed=(speed) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] speed Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 328
def speed=(speed)
  validator = EnumAttributeValidator.new('String', ['Fast', 'Medium', 'Slow'])
  unless validator.valid?(speed)
    fail ArgumentError, 'invalid value for "speed", must be one of #{validator.allowable_values}.'
  end
  @speed = speed
end
type=(type) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] type Object to be assigned

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 308
def type=(type)
  validator = EnumAttributeValidator.new('String', ['None', 'Blinds', 'Checker', 'Circle', 'Comb', 'Cover', 'Cut', 'Diamond', 'Dissolve', 'Fade', 'Newsflash', 'Plus', 'Pull', 'Push', 'Random', 'RandomBar', 'Split', 'Strips', 'Wedge', 'Wheel', 'Wipe', 'Zoom', 'Vortex', 'Switch', 'Flip', 'Ripple', 'Honeycomb', 'Cube', 'Box', 'Rotate', 'Orbit', 'Doors', 'Window', 'Ferris', 'Gallery', 'Conveyor', 'Pan', 'Glitter', 'Warp', 'Flythrough', 'Flash', 'Shred', 'Reveal', 'WheelReverse', 'FallOver', 'Drape', 'Curtains', 'Wind', 'Prestige', 'Fracture', 'Crush', 'PeelOff', 'PageCurlDouble', 'PageCurlSingle', 'Airplane', 'Origami', 'Morph'])
  unless validator.valid?(type)
    fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
  end
  @type = type
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/aspose_slides_cloud/models/slide_show_transition.rb, line 274
def valid?
  type_validator = EnumAttributeValidator.new('String', ['None', 'Blinds', 'Checker', 'Circle', 'Comb', 'Cover', 'Cut', 'Diamond', 'Dissolve', 'Fade', 'Newsflash', 'Plus', 'Pull', 'Push', 'Random', 'RandomBar', 'Split', 'Strips', 'Wedge', 'Wheel', 'Wipe', 'Zoom', 'Vortex', 'Switch', 'Flip', 'Ripple', 'Honeycomb', 'Cube', 'Box', 'Rotate', 'Orbit', 'Doors', 'Window', 'Ferris', 'Gallery', 'Conveyor', 'Pan', 'Glitter', 'Warp', 'Flythrough', 'Flash', 'Shred', 'Reveal', 'WheelReverse', 'FallOver', 'Drape', 'Curtains', 'Wind', 'Prestige', 'Fracture', 'Crush', 'PeelOff', 'PageCurlDouble', 'PageCurlSingle', 'Airplane', 'Origami', 'Morph'])
  return false unless type_validator.valid?(@type)
  sound_mode_validator = EnumAttributeValidator.new('String', ['StartSound', 'StopPrevoiusSound', 'NotDefined'])
  return false unless sound_mode_validator.valid?(@sound_mode)
  speed_validator = EnumAttributeValidator.new('String', ['Fast', 'Medium', 'Slow'])
  return false unless speed_validator.valid?(@speed)
  corner_direction_validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp'])
  return false unless corner_direction_validator.valid?(@corner_direction)
  eight_direction_validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp', 'Left', 'Up', 'Down', 'Right'])
  return false unless eight_direction_validator.valid?(@eight_direction)
  in_out_direction_validator = EnumAttributeValidator.new('String', ['In', 'Out'])
  return false unless in_out_direction_validator.valid?(@in_out_direction)
  side_direction_validator = EnumAttributeValidator.new('String', ['Left', 'Up', 'Down', 'Right'])
  return false unless side_direction_validator.valid?(@side_direction)
  pattern_validator = EnumAttributeValidator.new('String', ['Diamond', 'Hexagon'])
  return false unless pattern_validator.valid?(@pattern)
  left_right_direction_validator = EnumAttributeValidator.new('String', ['Left', 'Right'])
  return false unless left_right_direction_validator.valid?(@left_right_direction)
  morph_type_validator = EnumAttributeValidator.new('String', ['ByObject', 'ByWord', 'ByChar'])
  return false unless morph_type_validator.valid?(@morph_type)
  orientation_direction_validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
  return false unless orientation_direction_validator.valid?(@orientation_direction)
  corner_and_center_direction_validator = EnumAttributeValidator.new('String', ['LeftDown', 'LeftUp', 'RightDown', 'RightUp', 'Center'])
  return false unless corner_and_center_direction_validator.valid?(@corner_and_center_direction)
  shred_pattern_validator = EnumAttributeValidator.new('String', ['Strip', 'Rectangle'])
  return false unless shred_pattern_validator.valid?(@shred_pattern)
  orientation_validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
  return false unless orientation_validator.valid?(@orientation)
  true
end