class Pinnacle::RcsFunctionalities

def self.from_json(json_object:)

Returns:
  • (Pinnacle::RcsFunctionalities) -

Parameters:
  • json_object (String) --
def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  is_enabled = parsed_json["is_enabled"]
  standalone_rich_card = parsed_json["standalone_rich_card"]
  carousel_rich_card = parsed_json["carousel_rich_card"]
  create_calendar_event_action = parsed_json["create_calendar_event_action"]
  dial_action = parsed_json["dial_action"]
  open_url_action = parsed_json["open_url_action"]
  share_location_action = parsed_json["share_location_action"]
  view_location_action = parsed_json["view_location_action"]
  new(
    is_enabled: is_enabled,
    standalone_rich_card: standalone_rich_card,
    carousel_rich_card: carousel_rich_card,
    create_calendar_event_action: create_calendar_event_action,
    dial_action: dial_action,
    open_url_action: open_url_action,
    share_location_action: share_location_action,
    view_location_action: view_location_action,
    additional_properties: struct
  )
end

def self.validate_raw(obj:)

Returns:
  • (Void) -

Parameters:
  • obj (Object) --
def self.validate_raw(obj:)
  obj.is_enabled.is_a?(Boolean) != false || raise("Passed value for field obj.is_enabled is not the expected type, validation failed.")
  obj.standalone_rich_card.is_a?(Boolean) != false || raise("Passed value for field obj.standalone_rich_card is not the expected type, validation failed.")
  obj.carousel_rich_card.is_a?(Boolean) != false || raise("Passed value for field obj.carousel_rich_card is not the expected type, validation failed.")
  obj.create_calendar_event_action.is_a?(Boolean) != false || raise("Passed value for field obj.create_calendar_event_action is not the expected type, validation failed.")
  obj.dial_action.is_a?(Boolean) != false || raise("Passed value for field obj.dial_action is not the expected type, validation failed.")
  obj.open_url_action.is_a?(Boolean) != false || raise("Passed value for field obj.open_url_action is not the expected type, validation failed.")
  obj.share_location_action.is_a?(Boolean) != false || raise("Passed value for field obj.share_location_action is not the expected type, validation failed.")
  obj.view_location_action.is_a?(Boolean) != false || raise("Passed value for field obj.view_location_action is not the expected type, validation failed.")
end

def initialize(is_enabled:, standalone_rich_card:, carousel_rich_card:, create_calendar_event_action:,

Returns:
  • (Pinnacle::RcsFunctionalities) -

Parameters:
  • additional_properties (OpenStruct) -- Additional properties unmapped to the current class definition
  • view_location_action (Boolean) -- Indicates if view location buttons are supported.
  • share_location_action (Boolean) -- Indicates if share location buttons are supported.
  • open_url_action (Boolean) -- Indicates if open URL buttons are supported.
  • dial_action (Boolean) -- Indicates if dial buttons are supported.
  • create_calendar_event_action (Boolean) -- Indicates if buttons to create a calendar event are supported.
  • carousel_rich_card (Boolean) -- Indicates if carousel rich cards are supported.
  • standalone_rich_card (Boolean) -- Indicates if standalone rich cards are supported.
  • is_enabled (Boolean) -- Indicates if RCS is enabled.
def initialize(is_enabled:, standalone_rich_card:, carousel_rich_card:, create_calendar_event_action:,
               dial_action:, open_url_action:, share_location_action:, view_location_action:, additional_properties: nil)
  @is_enabled = is_enabled
  @standalone_rich_card = standalone_rich_card
  @carousel_rich_card = carousel_rich_card
  @create_calendar_event_action = create_calendar_event_action
  @dial_action = dial_action
  @open_url_action = open_url_action
  @share_location_action = share_location_action
  @view_location_action = view_location_action
  @additional_properties = additional_properties
  @_field_set = {
    "is_enabled": is_enabled,
    "standalone_rich_card": standalone_rich_card,
    "carousel_rich_card": carousel_rich_card,
    "create_calendar_event_action": create_calendar_event_action,
    "dial_action": dial_action,
    "open_url_action": open_url_action,
    "share_location_action": share_location_action,
    "view_location_action": view_location_action
  }
end

def to_json(*_args)

Returns:
  • (String) -
def to_json(*_args)
  @_field_set&.to_json
end