public override List <ActionChain> getActionChain() { var actionChainList = new List <ActionChain>(); var actionChain1 = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto) .SetNext(10000).Build(); var actionChain2 = style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid") .SetVal(!notifyid.HasValue ? "" : string.Concat(notifyid)).SetType(InnerFiled.Types.Type.str) .Build()) .Build(); var actionChain3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto) .SetNext(11220).Build(); var actionChain4 = ActionChain.CreateBuilder().SetActionId(11220).SetType(ActionChain.Types.Type.mmsinbox2) .SetStype("startmyactivity") .AddField(InnerFiled.CreateBuilder().SetKey("uri").SetVal(getIntent()) .SetType(InnerFiled.Types.Type.str)) .AddField(InnerFiled.CreateBuilder().SetKey("do_failed").SetVal("100") .SetType(InnerFiled.Types.Type.str)).SetNext(100).Build(); var actionChain5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); actionChainList.Add(actionChain1); actionChainList.Add(actionChain2); actionChainList.Add(actionChain3); actionChainList.Add(actionChain4); actionChainList.Add(actionChain5); return(actionChainList); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_A8_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("terminatetask").AddField(InnerFiled.CreateBuilder().SetKey("taskid").SetVal(this.oldTaskId).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("force").SetVal(this.force ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).SetNext(100).Build(); ActionChain item2 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_A8_0.Add(item); arg_A8_0.Add(item2); return(arg_A8_0); }
protected List <ActionChain> getActionChain() { List <ActionChain> actionChains = new List <ActionChain>(); // 设置actionChain ActionChain actionChain1 = ActionChain.CreateBuilder() .SetActionId(1) .SetType(ActionChain.Types.Type.Goto) .SetNext(10000).Build(); //通知 ActionChain actionChain2 = ActionChain.CreateBuilder() .SetActionId(10000) .SetType(ActionChain.Types.Type.notification) .SetTitle(title) .SetText(text) .SetLogo(logo) .SetLogoURL(logoURL) .SetRing(isRing) .SetClearable(isClearable) .SetBuzz(isVibrate) .SetNext(10010).Build(); //goto ActionChain actionChain3 = ActionChain.CreateBuilder() .SetActionId(10010) .SetType(ActionChain.Types.Type.Goto) .SetNext(10030).Build(); // AppStartUp appStartUp = AppStartUp.CreateBuilder() .SetAndroid("") .SetSymbia("") .SetIos("").Build(); //启动app ActionChain actionChain4 = ActionChain.CreateBuilder() .SetActionId(10030) .SetType(ActionChain.Types.Type.startapp) .SetAppid("") .SetAutostart(("1".Equals(transmissionType)) ? true : false) .SetAppstartupid(appStartUp) .SetFailedAction(100) .SetNext(100) .Build(); //结束 ActionChain actionChain5 = ActionChain.CreateBuilder() .SetActionId(100) .SetType(ActionChain.Types.Type.eoa) .Build(); actionChains.Add(actionChain1); actionChains.Add(actionChain2); actionChains.Add(actionChain3); actionChains.Add(actionChain4); actionChains.Add(actionChain5); return(actionChains); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_AE_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10030).Build(); AppStartUp appstartupid = AppStartUp.CreateBuilder().SetAndroid("").SetSymbia("").SetIos("").Build(); ActionChain item2 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startapp).SetAppid("").SetAutostart(1 == this.TransmissionType).SetAppstartupid(appstartupid).SetFailedAction(100).SetNext(100).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_AE_0.Add(item); arg_AE_0.Add(item2); arg_AE_0.Add(item3); return(arg_AE_0); }
public override List <ActionChain> getActionChain() { var actionChainList = new List <ActionChain>(); var actionChain1 = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.mmsinbox2) .SetStype("terminatetask") .AddField(InnerFiled.CreateBuilder().SetKey("taskid").SetVal(OldTaskId) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("force").SetVal(force ? "true" : "false") .SetType(InnerFiled.Types.Type.boole).Build()).SetNext(100).Build(); var actionChain2 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); actionChainList.Add(actionChain1); actionChainList.Add(actionChain2); return(actionChainList); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_31B_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build(); ActionChain item2 = (this.style == null) ? ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("notification").AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("title").SetVal(this.title).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("text").SetVal(this.text).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo").SetVal(this.logo).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo_url").SetVal(this.logoURL).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("notifyStyle").SetVal(this.notifyStyle.ToString()).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noring").SetVal((!this.isRing).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noclear").SetVal((!this.isClearable).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_novibrate").SetVal((!this.isVibrate).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).SetNext(10010).Build() : this.style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(10030).Build(); ActionChain item4 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startweb).SetUrl(this.url).SetNext(100).Build(); ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_31B_0.Add(item); arg_31B_0.Add(item2); arg_31B_0.Add(item3); arg_31B_0.Add(item4); arg_31B_0.Add(item5); return(arg_31B_0); }
// Token: 0x06000644 RID: 1604 RVA: 0x0000E9A4 File Offset: 0x0000CBA4 public override List <ActionChain> getActionChain() { List <ActionChain> list = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build(); ActionChain item2 = style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((notifyid == null) ? "" : (string.Concat(notifyid) ?? "")).SetType(InnerFiled.Types.Type.str).Build()).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(11220).Build(); ActionChain item4 = ActionChain.CreateBuilder().SetActionId(11220).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("startmyactivity").AddField(InnerFiled.CreateBuilder().SetKey("uri").SetVal(getIntent()).SetType(InnerFiled.Types.Type.str)).AddField(InnerFiled.CreateBuilder().SetKey("do_failed").SetVal("100").SetType(InnerFiled.Types.Type.str)).SetNext(100).Build(); ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); list.Add(item); list.Add(item2); list.Add(item3); list.Add(item4); list.Add(item5); return(list); }
public override List <ActionChain> getActionChain() { var actionChainList = new List <ActionChain>(); var actionChain1 = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto) .SetNext(10030).Build(); var actionChain2 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startapp) .SetAppid("").SetAutostart(1 == TransmissionType) .SetAppstartupid(AppStartUp.CreateBuilder().SetAndroid("").SetSymbia("").SetIos("").Build()) .SetFailedAction(100).SetNext(100).Build(); var actionChain3 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); actionChainList.Add(actionChain1); actionChainList.Add(actionChain2); actionChainList.Add(actionChain3); return(actionChainList); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_138_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build(); ActionChain item2 = this.style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : string.Concat(this.notifyid)).SetType(InnerFiled.Types.Type.str).Build()).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(11220).Build(); ActionChain item4 = ActionChain.CreateBuilder().SetActionId(11220).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("startmyactivity").AddField(InnerFiled.CreateBuilder().SetKey("uri").SetVal(this.getIntent()).SetType(InnerFiled.Types.Type.str)).AddField(InnerFiled.CreateBuilder().SetKey("do_failed").SetVal("100").SetType(InnerFiled.Types.Type.str)).SetNext(100).Build(); ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_138_0.Add(item); arg_138_0.Add(item2); arg_138_0.Add(item3); arg_138_0.Add(item4); arg_138_0.Add(item5); return(arg_138_0); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_35F_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build(); ActionChain item2 = (this.style == null) ? ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("notification").AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("title").SetVal(this.title).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("text").SetVal(this.text).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo").SetVal(this.logo).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo_url").SetVal(this.logoURL).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("notifyStyle").SetVal(this.notifyStyle.ToString()).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noring").SetVal((!this.isRing).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noclear").SetVal((!this.isClearable).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_novibrate").SetVal((!this.isVibrate).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).SetNext(10010).Build() : this.style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(10030).Build(); AppStartUp appstartupid = AppStartUp.CreateBuilder().SetAndroid("").SetSymbia("").SetIos("").Build(); ActionChain item4 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startapp).SetAppid("").SetAutostart(1 == this.transmissionType).SetAppstartupid(appstartupid).SetFailedAction(100).SetNext(100).Build(); ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_35F_0.Add(item); arg_35F_0.Add(item2); arg_35F_0.Add(item3); arg_35F_0.Add(item4); arg_35F_0.Add(item5); return(arg_35F_0); }
protected List <ActionChain> getActionChain() { List <ActionChain> actionChains = new List <ActionChain>(); // 设置actionChain ActionChain actionChain1 = ActionChain.CreateBuilder() .SetActionId(1) .SetType(ActionChain.Types.Type.Goto) .SetNext(10000).Build(); // 通知 ActionChain actionChain2 = ActionChain.CreateBuilder() .SetActionId(10000) .SetType(ActionChain.Types.Type.notification) .SetTitle(title) .SetText(text) .SetLogo(logo) .SetLogoURL(logoURL) .SetRing(isRing) .SetClearable(isClearable) .SetBuzz(isVibrate) .SetNext(10010).Build(); // goto ActionChain actionChain3 = ActionChain.CreateBuilder() .SetActionId(10010) .SetType(ActionChain.Types.Type.Goto) .SetNext(10030).Build(); // 启动web ActionChain actionChain4 = ActionChain.CreateBuilder() .SetActionId(10030) .SetType(ActionChain.Types.Type.startweb) .SetUrl(url) .SetNext(100).Build(); // 结束 ActionChain actionChain5 = ActionChain.CreateBuilder() .SetActionId(100) .SetType(ActionChain.Types.Type.eoa) .Build(); actionChains.Add(actionChain1); actionChains.Add(actionChain2); actionChains.Add(actionChain3); actionChains.Add(actionChain4); actionChains.Add(actionChain5); return(actionChains); }
public override List <ActionChain> getActionChain() { List <ActionChain> arg_419_0 = new List <ActionChain>(); ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build(); ActionChain item2 = (this.style == null) ? ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("notification").AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("title").SetVal(this.notyTitle).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("text").SetVal(this.notyContent).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo").SetVal(this.notyIcon).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("logo_url").SetVal(this.logoURL).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("notifyStyle").SetVal(string.Concat(this.notifyStyle)).SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noring").SetVal((!this.isBelled).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_noclear").SetVal((!this.isCleared).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).AddField(InnerFiled.CreateBuilder().SetKey("is_novibrate").SetVal((!this.isVibrationed).Equals(true) ? "true" : "false").SetType(InnerFiled.Types.Type.boole).Build()).SetNext(10010).Build() : this.style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid").SetVal((!this.notifyid.HasValue) ? "" : this.notifyid.ToString()).SetType(InnerFiled.Types.Type.str).Build()).Build(); ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(10020).Build(); Button value = Button.CreateBuilder().SetText(this.popButton1).SetNext(10040).Build(); Button value2 = Button.CreateBuilder().SetText(this.popButton2).SetNext(100).Build(); ActionChain item4 = ActionChain.CreateBuilder().SetActionId(10020).SetType(ActionChain.Types.Type.popup).SetTitle(this.popTitle).SetText(this.popContent).SetImg(this.popImage).AddButtons(value).AddButtons(value2).SetNext(6).Build(); AppStartUp appstartupid = AppStartUp.CreateBuilder().SetAndroid(this.androidMark).SetSymbia(this.symbianMark).SetIos(this.iphoneMark).Build(); ActionChain item5 = ActionChain.CreateBuilder().SetActionId(10040).SetType(ActionChain.Types.Type.appdownload).SetName(this.loadTitle).SetUrl(this.loadUrl).SetLogo(this.loadIcon).SetLogoURL(this.logoURL).SetAutoInstall(this.isAutoInstall).SetAutostart(this.isActived).SetAppstartupid(appstartupid).SetNext(6).Build(); ActionChain item6 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); arg_419_0.Add(item); arg_419_0.Add(item2); arg_419_0.Add(item3); arg_419_0.Add(item4); arg_419_0.Add(item5); arg_419_0.Add(item6); return(arg_419_0); }
protected List <ActionChain> getActionChain() { List <ActionChain> actionChains = new List <ActionChain>(); // 设置actionChain ActionChain actionChain1 = ActionChain.CreateBuilder() .SetActionId(1) .SetType(ActionChain.Types.Type.Goto) .SetNext(10030) .Build(); // AppStartUp appStartUp = AppStartUp.CreateBuilder() .SetAndroid("") .SetSymbia("") .SetIos("") .Build(); //启动app ActionChain actionChain2 = ActionChain.CreateBuilder() .SetActionId(10030) .SetType(ActionChain.Types.Type.startapp) .SetAppid("") .SetAutostart(("1".Equals(transmissionType)) ? true : false) .SetAppstartupid(appStartUp) .SetFailedAction(100) .SetNext(100) .Build(); //结束 ActionChain actionChain3 = ActionChain.CreateBuilder() .SetActionId(100) .SetType(ActionChain.Types.Type.eoa) .Build(); actionChains.Add(actionChain1); actionChains.Add(actionChain2); actionChains.Add(actionChain3); return(actionChains); }
// Token: 0x06000655 RID: 1621 RVA: 0x0000ED50 File Offset: 0x0000CF50 public AbstractNotifyStyle() { actionChainBuilder = ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2).SetStype("notification").SetNext(10010); }
public override List <ActionChain> getActionChain() { var actionChainList = new List <ActionChain>(); var actionChain1 = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto) .SetNext(10000).Build(); ActionChain actionChain2; if (style != null) { actionChain2 = style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid") .SetVal(!notifyid.HasValue ? "" : notifyid.ToString()).SetType(InnerFiled.Types.Type.str) .Build()) .Build(); } else { var builder1 = ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2) .SetStype("notification") .AddField(InnerFiled.CreateBuilder().SetKey("notifyid") .SetVal(!notifyid.HasValue ? "" : notifyid.ToString()).SetType(InnerFiled.Types.Type.str) .Build()) .AddField(InnerFiled.CreateBuilder().SetKey("title").SetVal(Title) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("text").SetVal(Text).SetType(InnerFiled.Types.Type.str) .Build()) .AddField(InnerFiled.CreateBuilder().SetKey("logo").SetVal(Logo).SetType(InnerFiled.Types.Type.str) .Build()) .AddField(InnerFiled.CreateBuilder().SetKey("logo_url").SetVal(LogoURL) .SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder() .SetKey("notifyStyle").SetVal(notifyStyle.ToString()).SetType(InnerFiled.Types.Type.str) .Build()); var builder2 = InnerFiled.CreateBuilder().SetKey("is_noring"); var flag = !IsRing; var str1 = flag.Equals(true) ? "true" : "false"; var innerFiled1 = builder2.SetVal(str1).SetType(InnerFiled.Types.Type.boole).Build(); var builder3 = builder1.AddField(innerFiled1); var builder4 = InnerFiled.CreateBuilder().SetKey("is_noclear"); flag = !IsClearable; var str2 = flag.Equals(true) ? "true" : "false"; var innerFiled2 = builder4.SetVal(str2).SetType(InnerFiled.Types.Type.boole).Build(); var builder5 = builder3.AddField(innerFiled2); var builder6 = InnerFiled.CreateBuilder().SetKey("is_novibrate"); flag = !IsVibrate; var str3 = flag.Equals(true) ? "true" : "false"; var innerFiled3 = builder6.SetVal(str3).SetType(InnerFiled.Types.Type.boole).Build(); actionChain2 = builder5.AddField(innerFiled3).SetNext(10010).Build(); } var actionChain3 = actionChain2; var actionChain4 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto) .SetNext(10030).Build(); var actionChain5 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startweb) .SetUrl(Url).SetNext(100).Build(); var actionChain6 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); actionChainList.Add(actionChain1); actionChainList.Add(actionChain3); actionChainList.Add(actionChain4); actionChainList.Add(actionChain5); actionChainList.Add(actionChain6); return(actionChainList); }
public override List <ActionChain> getActionChain() { var actionChainList = new List <ActionChain>(); var actionChain1 = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto) .SetNext(10000).Build(); ActionChain actionChain2; if (style != null) { actionChain2 = style.getActionChain().ToBuilder().AddField(InnerFiled.CreateBuilder().SetKey("notifyid") .SetVal(!notifyid.HasValue ? "" : notifyid.ToString()).SetType(InnerFiled.Types.Type.str) .Build()) .Build(); } else { var builder1 = ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.mmsinbox2) .SetStype("notification") .AddField(InnerFiled.CreateBuilder().SetKey("notifyid") .SetVal(!notifyid.HasValue ? "" : notifyid.ToString()).SetType(InnerFiled.Types.Type.str) .Build()) .AddField(InnerFiled.CreateBuilder().SetKey("title").SetVal(NotyTitle) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("text").SetVal(NotyContent) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("logo").SetVal(NotyIcon) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("logo_url").SetVal(LogoURL) .SetType(InnerFiled.Types.Type.str).Build()) .AddField(InnerFiled.CreateBuilder().SetKey("notifyStyle").SetVal(string.Concat(notifyStyle)) .SetType(InnerFiled.Types.Type.str).Build()).AddField(InnerFiled.CreateBuilder() .SetKey("is_noring").SetVal((!IsBelled).Equals(true) ? "true" : "false") .SetType(InnerFiled.Types.Type.boole).Build()); var builder2 = InnerFiled.CreateBuilder().SetKey("is_noclear"); var flag = !IsCleared; var str1 = flag.Equals(true) ? "true" : "false"; var innerFiled1 = builder2.SetVal(str1).SetType(InnerFiled.Types.Type.boole).Build(); var builder3 = builder1.AddField(innerFiled1); var builder4 = InnerFiled.CreateBuilder().SetKey("is_novibrate"); flag = !IsVibrationed; var str2 = flag.Equals(true) ? "true" : "false"; var innerFiled2 = builder4.SetVal(str2).SetType(InnerFiled.Types.Type.boole).Build(); actionChain2 = builder3.AddField(innerFiled2).SetNext(10010).Build(); } var actionChain3 = actionChain2; var actionChain4 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto) .SetNext(10020).Build(); var actionChain5 = ActionChain.CreateBuilder().SetActionId(10020).SetType(ActionChain.Types.Type.popup) .SetTitle(PopTitle).SetText(PopContent).SetImg(PopImage) .AddButtons(Button.CreateBuilder().SetText(PopButton1).SetNext(10040).Build()) .AddButtons(Button.CreateBuilder().SetText(PopButton2).SetNext(100).Build()).SetNext(6).Build(); var actionChain6 = ActionChain.CreateBuilder().SetActionId(10040) .SetType(ActionChain.Types.Type.appdownload).SetName(LoadTitle).SetUrl(LoadUrl).SetLogo(LoadIcon) .SetLogoURL(LogoURL).SetAutoInstall(IsAutoInstall).SetAutostart(IsActived) .SetAppstartupid(AppStartUp.CreateBuilder().SetAndroid(AndroidMark).SetSymbia(SymbianMark) .SetIos(IphoneMark).Build()).SetNext(6).Build(); var actionChain7 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build(); actionChainList.Add(actionChain1); actionChainList.Add(actionChain3); actionChainList.Add(actionChain4); actionChainList.Add(actionChain5); actionChainList.Add(actionChain6); actionChainList.Add(actionChain7); return(actionChainList); }