Class: LWS::DigitalSignage::Player::Request

Inherits:
Generic::Model
  • Object
show all
Defined in:
lib/lws/apps/digital_signage.rb

Overview

Note:

This class is only used within the context of the LWS::DigitalSignage::Player class.

The player request class

Instance Attribute Summary collapse

Instance Attribute Details

#action"unknown", ...

Returns the player request action.

Returns:

  • ("unknown", "send_logs", "clear_logs", "clear_content", "clear_layouts", "send_screenshot", "reboot", "retrieve_playlist", "os_switch_branch", "os_deploy", "os_pull", "restart_lc_session", "send_feedback", "apply_configuration")

    the player request action



1647
# File 'lib/lws/apps/digital_signage.rb', line 1647

attribute :action

#argumentString?

Returns the optional argument for the player request.

Returns:

  • (String, nil)

    the optional argument for the player request



1651
# File 'lib/lws/apps/digital_signage.rb', line 1651

attribute :argument

#created_atString (readonly)

Returns the timestamp of when the player request was created.

Returns:

  • (String)

    the timestamp of when the player request was created



1714
# File 'lib/lws/apps/digital_signage.rb', line 1714

attribute :created_at

#feedbackPlayer::Feedback?

This field should be set once the action has been processed (see #processed) and the action is “send_feedback”.

Returns:

  • (Player::Feedback, nil)

    the player feedback as a response to the action request “send_status”



1659
1660
# File 'lib/lws/apps/digital_signage.rb', line 1659

belongs_to :feedback, class_name: "LWS::DigitalSignage::Player::Feedback",
uri: "players/:player_id/feedbacks/:id"

#feedback_idFixnum?

Returns the ID of the player feedback as a response to the action request “send_status”.

Returns:

  • (Fixnum, nil)

    the ID of the player feedback as a response to the action request “send_status”



1665
# File 'lib/lws/apps/digital_signage.rb', line 1665

attribute :feedback_id

#idFixnum (readonly)

Returns the (unique) ID of the player request.

Returns:

  • (Fixnum)

    the (unique) ID of the player request



1640
# File 'lib/lws/apps/digital_signage.rb', line 1640

attribute :id

#logPlayer::Log?

This field should be set once the action has been processed (see #processed) and the action is “send_logs”.

Returns:

  • (Player::Log, nil)

    the player log as a response to the action request “send_logs”



1673
1674
# File 'lib/lws/apps/digital_signage.rb', line 1673

belongs_to :log, class_name: "LWS::DigitalSignage::Player::Log",
uri: "players/:player_id/logs/:id"

#log_idFixnum?

Returns the ID of the player log as a response to the action request “send_logs”.

Returns:

  • (Fixnum, nil)

    the ID of the player log as a response to the action request “send_logs”



1679
# File 'lib/lws/apps/digital_signage.rb', line 1679

attribute :log_id

#playerPlayer

Returns the player the request is sent to.

Returns:

  • (Player)

    the player the request is sent to



1683
# File 'lib/lws/apps/digital_signage.rb', line 1683

belongs_to :player, class_name: "LWS::DigitalSignage::Player"

#player_idFixnum

Returns the ID of the player the request is sent to.

Returns:

  • (Fixnum)

    the ID of the player the request is sent to



1687
# File 'lib/lws/apps/digital_signage.rb', line 1687

attribute :player_id

#processedBoolean

Returns whether the request has been processed by the player.

Returns:

  • (Boolean)

    whether the request has been processed by the player



1691
# File 'lib/lws/apps/digital_signage.rb', line 1691

attribute :processed

#responseString?

Returns the player request response text (if the response is not a specific object).

Returns:

  • (String, nil)

    the player request response text (if the response is not a specific object)



1696
# File 'lib/lws/apps/digital_signage.rb', line 1696

attribute :response

#screenshotPlayer::Screenshot?

This field should be set once the action has been processed (see #processed) and the action is “send_screenshot”.

Returns:

  • (Player::Screenshot, nil)

    the player screenshot as a response to the action request “send_screenshot”



1704
1705
# File 'lib/lws/apps/digital_signage.rb', line 1704

belongs_to :screenshot, class_name: "LWS::DigitalSignage::Player::Screenshot",
uri: "players/:player_id/screenshots/:id"

#screenshot_idFixnum?

Returns the ID of the player screenshot as a response to the action request “send_screenshot”.

Returns:

  • (Fixnum, nil)

    the ID of the player screenshot as a response to the action request “send_screenshot”



1710
# File 'lib/lws/apps/digital_signage.rb', line 1710

attribute :screenshot_id

#updated_atString (readonly)

Returns the timestamp of when the player request was last updated.

Returns:

  • (String)

    the timestamp of when the player request was last updated



1718
# File 'lib/lws/apps/digital_signage.rb', line 1718

attribute :updated_at