Method: Xmpush::AndroidBuilder#build

Defined in:
lib/xmpush/android_builder.rb

#buildObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/xmpush/android_builder.rb', line 26

def build
  extra_message = extra(@extra) if @extra
  message = {
    payload: @payload,
    title: @title,
    notify_id: @notify_id,
    pass_through: @pass_through,
    notify_type: @notify_type,
    restricted_package_name: @restricted_package_name,
    description: @description
  }
  message.merge!(extra_message)
  return message
end