public function getActionChain()
 {
     $actionChains = array();
     // 设置actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->set_actionId(1);
     $actionChain1->set_type(ActionChain_Type::refer);
     $actionChain1->set_next(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->set_android("");
     $appStartUp->set_symbia("");
     $appStartUp->set_ios("");
     //启动app
     $actionChain2 = new ActionChain();
     $actionChain2->set_actionId(10030);
     $actionChain2->set_type(ActionChain_Type::startapp);
     $actionChain2->set_appid("");
     $actionChain2->set_autostart($this->transmissionType == '1' ? true : false);
     $actionChain2->set_appstartupid($appStartUp);
     $actionChain2->set_failedAction(100);
     $actionChain2->set_next(100);
     //结束
     $actionChain3 = new ActionChain();
     $actionChain3->set_actionId(100);
     $actionChain3->set_type(ActionChain_Type::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3);
     return $actionChains;
 }
 /**
  * @return array
  */
 public function getActionChain()
 {
     $actionChains = array();
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::REFER);
     $actionChain1->setNext(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid('');
     $appStartUp->setSymbia('');
     $appStartUp->setIOS('');
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10030);
     $actionChain2->setType(ActionChainType::STARTAPP);
     $actionChain2->setAppId('');
     $actionChain2->setAutostart((string) $this->transmissionType === '1');
     $actionChain2->setAppStartUpId($appStartUp);
     $actionChain2->setFailedAction(100);
     $actionChain2->setNext(100);
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(100);
     $actionChain3->setType(ActionChainType::EOA);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3);
     return $actionChains;
 }
 public function getActionChain()
 {
     $actionChains = array();
     // 设置actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->set_actionId(1);
     $actionChain1->set_type(ActionChain_Type::refer);
     $actionChain1->set_next(10000);
     //通知
     $actionChain2 = new ActionChain();
     $actionChain2->set_actionId(10000);
     $actionChain2->set_type(ActionChain_Type::notification);
     $actionChain2->set_title($this->title);
     $actionChain2->set_text($this->text);
     $actionChain2->set_logo($this->logo);
     $actionChain2->set_logoURL($this->logoURL);
     $actionChain2->set_ring($this->isRing ? true : false);
     $actionChain2->set_clearable($this->isClearable ? true : false);
     $actionChain2->set_buzz($this->isVibrate ? true : false);
     $actionChain2->set_next(10010);
     //goto
     $actionChain3 = new ActionChain();
     $actionChain3->set_actionId(10010);
     $actionChain3->set_type(ActionChain_Type::refer);
     $actionChain3->set_next(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->set_android("");
     $appStartUp->set_symbia("");
     $appStartUp->set_ios("");
     //启动app
     $actionChain4 = new ActionChain();
     $actionChain4->set_actionId(10030);
     $actionChain4->set_type(ActionChain_Type::startapp);
     $actionChain4->set_appid("");
     $actionChain4->set_autostart($this->transmissionType == '1' ? true : false);
     $actionChain4->set_appstartupid($appStartUp);
     $actionChain4->set_failedAction(100);
     $actionChain4->set_next(100);
     //结束
     $actionChain5 = new ActionChain();
     $actionChain5->set_actionId(100);
     $actionChain5->set_type(ActionChain_Type::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5);
     return $actionChains;
 }
Esempio n. 4
0
 public function getActionChain()
 {
     $actionChains = array();
     // 设置actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->set_actionId(1);
     $actionChain1->set_type(ActionChain_Type::refer);
     $actionChain1->set_next(10000);
     //通知
     $actionChain2 = new ActionChain();
     $actionChain2->set_actionId(10000);
     $actionChain2->set_type(ActionChain_Type::notification);
     $actionChain2->set_title($this->title);
     $actionChain2->set_text($this->text);
     $actionChain2->set_logo($this->logo);
     $actionChain2->set_logoURL($this->logoURL);
     $actionChain2->set_ring($this->isRing ? true : false);
     $actionChain2->set_clearable($this->isClearable ? true : false);
     $actionChain2->set_buzz($this->isVibrate ? true : false);
     $actionChain2->set_next(10010);
     //goto
     $actionChain3 = new ActionChain();
     $actionChain3->set_actionId(10010);
     $actionChain3->set_type(ActionChain_Type::refer);
     $actionChain3->set_next(10030);
     //启动web
     $actionChain4 = new ActionChain();
     $actionChain4->set_actionId(10030);
     $actionChain4->set_type(ActionChain_Type::startweb);
     $actionChain4->set_url($this->url);
     $actionChain4->set_next(100);
     //结束
     $actionChain5 = new ActionChain();
     $actionChain5->set_actionId(100);
     $actionChain5->set_type(ActionChain_Type::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5);
     return $actionChains;
 }
Esempio n. 5
0
 /**
  * @return array
  */
 public function getActionChain()
 {
     $actionChains = array();
     // ����actionChain
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::REFER);
     $actionChain1->setNext(10000);
     //֪ͨ
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10000);
     $actionChain2->setType(ActionChainType::NOTIFICATION);
     $actionChain2->setTitle($this->title);
     $actionChain2->setText($this->text);
     $actionChain2->setLogo($this->logo);
     $actionChain2->setLogoURL($this->logoURL);
     $actionChain2->setRing($this->isRing ? true : false);
     $actionChain2->setClearable($this->isClearable ? true : false);
     $actionChain2->setBuzz($this->isVibrate ? true : false);
     $actionChain2->setNext(10010);
     //goto
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(10010);
     $actionChain3->setType(ActionChainType::REFER);
     $actionChain3->setNext(10030);
     //����web
     $actionChain4 = new ActionChain();
     $actionChain4->setActionId(10030);
     $actionChain4->setType(ActionChainType::STARTWEB);
     $actionChain4->setUrl($this->url);
     $actionChain4->setNext(100);
     //����
     $actionChain5 = new ActionChain();
     $actionChain5->setActionId(100);
     $actionChain5->setType(ActionChainType::EOA);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5);
     return $actionChains;
 }
Esempio n. 6
0
 /**
  * @return array
  */
 public function getActionChain()
 {
     $actionChains = array();
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::REFER);
     $actionChain1->setNext(10000);
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10000);
     $actionChain2->setType(ActionChainType::NOTIFICATION);
     $actionChain2->setTitle($this->title);
     $actionChain2->setText($this->text);
     $actionChain2->setLogo($this->logo);
     $actionChain2->setLogoURL($this->logoURL);
     $actionChain2->setRing($this->isRing ? true : false);
     $actionChain2->setClearable($this->isClearable ? true : false);
     $actionChain2->setBuzz($this->isVibrate ? true : false);
     $actionChain2->setNext(10010);
     //goto
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(10010);
     $actionChain3->setType(ActionChainType::REFER);
     $actionChain3->setNext(10030);
     //appStartUp
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid('');
     $appStartUp->setSymbia('');
     $appStartUp->setIOS('');
     $actionChain4 = new ActionChain();
     $actionChain4->setActionId(10030);
     $actionChain4->setType(ActionChainType::STARTAPP);
     $actionChain4->setAppId('');
     $actionChain4->setAutostart($this->transmissionType === '1');
     $actionChain4->setAppStartUpId($appStartUp);
     $actionChain4->setFailedAction(100);
     $actionChain4->setNext(100);
     $actionChain5 = new ActionChain();
     $actionChain5->setActionId(100);
     $actionChain5->setType(ActionChainType::EOA);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5);
     return $actionChains;
 }
 public function getActionChain()
 {
     $actionChains = array();
     //设置actionchain
     $actionChain1 = new ActionChain();
     $actionChain1->set_actionId(1);
     $actionChain1->set_type(ActionChain_Type::refer);
     $actionChain1->set_next(10000);
     //通知
     $actionChain2 = new ActionChain();
     $actionChain2->set_actionId(10000);
     $actionChain2->set_type(ActionChain_Type::notification);
     $actionChain2->set_title($this->notyTitle);
     $actionChain2->set_text($this->notyContent);
     $actionChain2->set_logo($this->notyIcon);
     $actionChain2->set_logoURL($this->logoURL);
     $actionChain2->set_ring($this->isBelled);
     $actionChain2->set_clearable($this->isCleared);
     $actionChain2->set_buzz($this->isVibrationed);
     $actionChain2->set_next(10010);
     $actionChain3 = new ActionChain();
     $actionChain3->set_actionId(10010);
     $actionChain3->set_type(ActionChain_Type::refer);
     $actionChain3->set_next(10020);
     //弹框按钮
     $button1 = new Button();
     $button1->set_text($this->popButton1);
     $button1->set_next(10040);
     $button2 = new Button();
     $button2->set_text($this->popButton2);
     $button2->set_next(100);
     //弹框
     $actionChain4 = new ActionChain();
     $actionChain4->set_actionId(10020);
     $actionChain4->set_type(ActionChain_Type::popup);
     $actionChain4->set_title($this->popTitle);
     $actionChain4->set_text($this->popContent);
     $actionChain4->set_img($this->popImage);
     $actionChain4->set_buttons(0, $button1);
     $actionChain4->set_buttons(1, $button2);
     $actionChain4->set_next(6);
     //下载
     //appstartupid
     $appStartUp = new AppStartUp();
     $appStartUp->set_android($this->androidMark);
     $appStartUp->set_Ios($this->iosMark);
     $appStartUp->set_symbia($this->symbianMark);
     $actionChain5 = new ActionChain();
     $actionChain5->set_actionId(10040);
     $actionChain5->set_type(ActionChain_Type::appdownload);
     $actionChain5->set_name($this->loadTitle);
     $actionChain5->set_url($this->loadUrl);
     $actionChain5->set_logo($this->loadIcon);
     $actionChain5->set_autoInstall($this->isAutoInstall);
     $actionChain5->set_autostart($this->isActived);
     $actionChain5->set_appstartupid($appStartUp);
     $actionChain5->set_next(6);
     $actionChain6 = new ActionChain();
     $actionChain6->set_actionId(100);
     $actionChain6->set_type(ActionChain_Type::eoa);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5, $actionChain6);
     return $actionChains;
 }
Esempio n. 8
0
 /**
  * @return array
  */
 public function getActionChain()
 {
     $actionChains = array();
     $actionChain1 = new ActionChain();
     $actionChain1->setActionId(1);
     $actionChain1->setType(ActionChainType::REFER);
     $actionChain1->setNext(10000);
     $actionChain2 = new ActionChain();
     $actionChain2->setActionId(10000);
     $actionChain2->setType(ActionChainType::NOTIFICATION);
     $actionChain2->setTitle($this->notyTitle);
     $actionChain2->setText($this->notyContent);
     $actionChain2->setLogo($this->notyIcon);
     $actionChain2->setLogoURL($this->logoURL);
     $actionChain2->setRing($this->isBelled);
     $actionChain2->setClearable($this->isCleared);
     $actionChain2->setBuzz($this->isVibrationed);
     $actionChain2->setNext(10010);
     $actionChain3 = new ActionChain();
     $actionChain3->setActionId(10010);
     $actionChain3->setType(ActionChainType::REFER);
     $actionChain3->setNext(10020);
     $button1 = new Button();
     $button1->setText($this->popButton1);
     $button1->setNext(10040);
     $button2 = new Button();
     $button2->setText($this->popButton2);
     $button2->setNext(100);
     $actionChain4 = new ActionChain();
     $actionChain4->setActionId(10020);
     $actionChain4->setType(ActionChainType::POPUP);
     $actionChain4->setTitle($this->popTitle);
     $actionChain4->setText($this->popContent);
     $actionChain4->setImg($this->popImage);
     $actionChain4->setButtons(0, $button1);
     $actionChain4->setButtons(1, $button2);
     $actionChain4->setNext(6);
     $appStartUp = new AppStartUp();
     $appStartUp->setAndroid($this->androidMark);
     $appStartUp->setIOS($this->iosMark);
     $appStartUp->setSymbia($this->symbianMark);
     $actionChain5 = new ActionChain();
     $actionChain5->setActionId(10040);
     $actionChain5->setType(ActionChainType::APPDOWNLOAD);
     $actionChain5->setName($this->loadTitle);
     $actionChain5->setUrl($this->loadUrl);
     $actionChain5->setLogo($this->loadIcon);
     $actionChain5->setAutoInstall($this->isAutoInstall);
     $actionChain5->setAutostart($this->isActived);
     $actionChain5->setAppStartUpId($appStartUp);
     $actionChain5->setNext(6);
     $actionChain6 = new ActionChain();
     $actionChain6->setActionId(100);
     $actionChain6->setType(ActionChainType::EOA);
     array_push($actionChains, $actionChain1, $actionChain2, $actionChain3, $actionChain4, $actionChain5, $actionChain6);
     return $actionChains;
 }