Class: IGeTui::NotyPopLoadTemplate
- Inherits:
-
BaseTemplate
- Object
- BaseTemplate
- IGeTui::NotyPopLoadTemplate
- Defined in:
- lib/igetui/template/noty_pop_load_template.rb
Instance Attribute Summary collapse
-
#is_active ⇒ Object
Returns the value of attribute is_active.
-
#is_auto_install ⇒ Object
Returns the value of attribute is_auto_install.
-
#is_clearable ⇒ Object
Returns the value of attribute is_clearable.
-
#is_ring ⇒ Object
Returns the value of attribute is_ring.
-
#is_vibrate ⇒ Object
Returns the value of attribute is_vibrate.
-
#load_icon ⇒ Object
Returns the value of attribute load_icon.
-
#load_title ⇒ Object
Returns the value of attribute load_title.
-
#load_url ⇒ Object
Returns the value of attribute load_url.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#logo_url ⇒ Object
Returns the value of attribute logo_url.
-
#pop_button_1 ⇒ Object
Returns the value of attribute pop_button_1.
-
#pop_button_2 ⇒ Object
Returns the value of attribute pop_button_2.
-
#pop_image ⇒ Object
Returns the value of attribute pop_image.
-
#pop_text ⇒ Object
Returns the value of attribute pop_text.
-
#pop_title ⇒ Object
Returns the value of attribute pop_title.
-
#text ⇒ Object
Returns the value of attribute text.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from BaseTemplate
#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_push_info, #get_transparent, #set_push_info
Constructor Details
#initialize ⇒ NotyPopLoadTemplate
Returns a new instance of NotyPopLoadTemplate.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 10 def initialize @title = '' @text = '' @logo = '' @logo_url = '' @pop_title = '' @pop_text = '' @pop_image = '' @pop_button_1 = '' @pop_button_2 = '' @load_icon = '' @load_title = '' @load_url = '' @transmission_type = 0 @transmission_content = '' @is_ring = true @is_vibrate = true @is_clearable = true @is_auto_install = false @is_active = false super end |
Instance Attribute Details
#is_active ⇒ Object
Returns the value of attribute is_active.
8 9 10 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 8 def is_active @is_active end |
#is_auto_install ⇒ Object
Returns the value of attribute is_auto_install.
8 9 10 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 8 def is_auto_install @is_auto_install end |
#is_clearable ⇒ Object
Returns the value of attribute is_clearable.
4 5 6 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 4 def is_clearable @is_clearable end |
#is_ring ⇒ Object
Returns the value of attribute is_ring.
4 5 6 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 4 def is_ring @is_ring end |
#is_vibrate ⇒ Object
Returns the value of attribute is_vibrate.
4 5 6 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 4 def is_vibrate @is_vibrate end |
#load_icon ⇒ Object
Returns the value of attribute load_icon.
7 8 9 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 7 def load_icon @load_icon end |
#load_title ⇒ Object
Returns the value of attribute load_title.
7 8 9 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 7 def load_title @load_title end |
#load_url ⇒ Object
Returns the value of attribute load_url.
7 8 9 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 7 def load_url @load_url end |
#logo ⇒ Object
Returns the value of attribute logo.
3 4 5 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 3 def logo @logo end |
#logo_url ⇒ Object
Returns the value of attribute logo_url.
3 4 5 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 3 def logo_url @logo_url end |
#pop_button_1 ⇒ Object
Returns the value of attribute pop_button_1.
6 7 8 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 6 def @pop_button_1 end |
#pop_button_2 ⇒ Object
Returns the value of attribute pop_button_2.
6 7 8 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 6 def @pop_button_2 end |
#pop_image ⇒ Object
Returns the value of attribute pop_image.
5 6 7 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 5 def pop_image @pop_image end |
#pop_text ⇒ Object
Returns the value of attribute pop_text.
5 6 7 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 5 def pop_text @pop_text end |
#pop_title ⇒ Object
Returns the value of attribute pop_title.
5 6 7 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 5 def pop_title @pop_title end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 3 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 3 def title @title end |
Instance Method Details
#get_action_chain ⇒ Object
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 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 33 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
96 97 98 |
# File 'lib/igetui/template/noty_pop_load_template.rb', line 96 def get_push_type "NotyPopLoadMsg" end |