class Empp::MsgDeliveryResp

Attributes

msg_id[RW]

Public Class Methods

new() click to toggle source
# File lib/empp/msg_delivery_resp.rb, line 12
def initialize
  @command_id = Constants::EMPP_DELIVER_RESP
  @result = 0
  @total_length = 12 + 10 + 4
  setSequenceId
end

Public Instance Methods

package() click to toggle source
# File lib/empp/msg_delivery_resp.rb, line 19
def package
  buf = Utils::ByteBuffer.new
  # add header
  buf.append_uint_be(@total_length)

  buf.append_uint_be(@command_id)
  buf.append_uint_be(@sequence_id)
  buf.append_string(@msg_id)
  buf.append_string("\0\0\0\0")

  buf.data

end