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

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

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



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

attribute :action

#argumentString?

Returns the optional argument for the player request.

Returns:

  • (String, nil)

    the optional argument for the player request



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

attribute :argument

#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”



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

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

#log_idInteger?

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

Returns:

  • (Integer, nil)

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



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

attribute :log_id

#playerPlayer

Returns the player the request is sent to.

Returns:

  • (Player)

    the player the request is sent to



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

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

#player_idInteger

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

Returns:

  • (Integer)

    the ID of the player the request is sent to



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

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



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

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)



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

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”



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

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

#screenshot_idInteger?

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

Returns:

  • (Integer, nil)

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



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

attribute :screenshot_id