user_api/com/mdi/dialog/message.rb
# Sends this message to the device, using the current message configuration.
#
# It will not do any Protogen-related stuff before sending the message.
#
# This method will set the `received_at` field to `Time.now.to_i`. Will also set the sender to `@@server@@` if not exists.
#
# If the method parameters are not defined the current values stored in the message will be used.
#
# @param [String] asset the IMEI of the device or other similar unique identifier.
# @param [Account] account the account name to use.
# @api private
Sends this message to the device, using the current message configuration.
It will not do any Protogen-related stuff before sending the message.

This method will set the `received_at` field to `Time.now.to_i`. Will also set the sender to `@@server@@` if not exists.

If the method parameters are not defined the current values stored in the message will be used.
Sends this message to the device using the current message configuration . It will not do any Protogen - related stuff before sending the message . This method will set the ` received_at ` field to ` Time . now . to_i ` . Will also set the sender to ` @@server@@ ` if not exists . If the method parameters are not defined the current values stored in the message will be used .
def push(asset = nil, account = nil)
          if !(self.content.is_a? String)
            raise "message content must be of type String (got #{self.content.class.name})"
          end
          self.asset = asset unless asset.nil?
          self.recipient = asset unless asset.nil?
          self.account = account unless account.nil?
          self.sender ||= '@@server@@'
          self.received_at = Time.now.to_i
          self.fast_push
        end
def push ( asset = nil , account = nil ) if ! ( self . content . is_a? String ) raise "message content must be of type String (got #{self.content.class.name})" end self . asset = asset unless asset . nil? self . recipient = asset unless asset . nil? self . account = account unless account . nil? self . sender ||= '@@server@@' self . received_at = Time . now . to_i self . fast_push end
Sends this message to the device, using the current message configuration.
Sends this message to the device using the current message configuration .
# set asset unless nil # set acount unless nil # set sender if not defined (ie a direct push) # set received_at
asset
<not_specific>
account
<not_specific>
<not_specific>
account the account name to use.
account the account name to use .
api
None