Class: IGeTui::NotyPopLoadTemplate
- Inherits:
-
BaseTemplate
- Object
- BaseTemplate
- IGeTui::NotyPopLoadTemplate
- Defined in:
- lib/igetui/template/noty_pop_load_template.rb
Constant Summary collapse
- STRING_ATTRIBUTES =
%i( title text logo logo_url pop_title pop_text pop_image pop_button_1 pop_button_2 load_icon load_title load_url android_mask symbia_mask ios_mask ).freeze
- BOOLEAN_ATTRIBUTES_OF_TRUE =
%i(is_ring is_vibrate is_clearable).freeze
- BOOLEAN_ATTRIBUTES_OF_FALSE =
%i(is_auto_install is_active).freeze
Instance Attribute Summary
Attributes inherited from BaseTemplate
#push_info, #transmission_content, #transmission_type
Instance Method Summary collapse
- #get_action_chain ⇒ Object
- #get_push_type ⇒ Object
-
#initialize ⇒ NotyPopLoadTemplate
constructor
A new instance of NotyPopLoadTemplate.
Methods inherited from BaseTemplate
#get_client_data, #get_push_info, #get_transparent, #set_push_info
Constructor Details
#initialize ⇒ NotyPopLoadTemplate
Returns a new instance of NotyPopLoadTemplate.
15 16 17 18 19 20 21 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 15 def initialize super STRING_ATTRIBUTES.each { |attr| instance_variable_set("@#{attr}", '') } BOOLEAN_ATTRIBUTES_OF_TRUE.each { |attr| instance_variable_set("@#{attr}", true) } BOOLEAN_ATTRIBUTES_OF_FALSE.each { |attr| instance_variable_set("@#{attr}", false) } end |
Instance Method Details
#get_action_chain ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 23 def get_action_chain # set actionchain action_chain_1 = GtReq::ActionChain.new action_chain_1.actionId = 1 action_chain_1.type = GtReq::ActionChain::Type::Goto action_chain_1.next = 10000 # notification action_chain_2 = GtReq::ActionChain.new action_chain_2.actionId = 10000 action_chain_2.type = GtReq::ActionChain::Type::Notification action_chain_2.title = title action_chain_2.text = text action_chain_2.logo = logo action_chain_2.logoURL = logo_url action_chain_2.ring = is_ring action_chain_2.clearable = is_clearable action_chain_2.buzz = is_vibrate action_chain_2.next = 10010 # goto action_chain_3 = GtReq::ActionChain.new action_chain_3.actionId = 10010 action_chain_3.type = GtReq::ActionChain::Type::Goto action_chain_3.next = 10020 action_chain_4 = GtReq::ActionChain.new = GtReq::Button.new .text = .next = 10040 = GtReq::Button.new .text = .next = 100 action_chain_4.actionId = 10020 action_chain_4.type = GtReq::ActionChain::Type::Popup action_chain_4.title = pop_title action_chain_4.text = pop_text action_chain_4.img = pop_image action_chain_4. = [, ] action_chain_4.next = 6 app_start_up = GtReq::AppStartUp.new(android: '', symbia: '', ios: '') action_chain_5 = GtReq::ActionChain.new action_chain_5.actionId = 10040 action_chain_5.type = GtReq::ActionChain::Type::Appdownload action_chain_5.name = load_title action_chain_5.url = load_url action_chain_5.logo = load_icon action_chain_5.autoInstall = is_auto_install action_chain_5.autostart = is_active action_chain_5.appstartupid = app_start_up action_chain_5.next = 6 # end action_chain_6 = GtReq::ActionChain.new action_chain_6.actionId = 100 action_chain_6.type = GtReq::ActionChain::Type::Eoa [action_chain_1, action_chain_2, action_chain_3, action_chain_4, action_chain_5, action_chain_6] end |
#get_push_type ⇒ Object
86 87 88 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 86 def get_push_type "NotyPopLoadMsg" end |