public void SetData(DataRecharge model, Action <DataRecharge> action) { this.model = model; this.action = action; PuApp.Instance.GetImage(model.image, (txture) => texture.mainTexture = txture); NGUITools.AddWidgetCollider(gameObject); }
private void OnCardClickListener(DataRecharge model) { panelInputCard.SetActive(true); lbTitleCard.text = "Nạp thẻ cào " + model.provider; currentCard = model; panelScrollCardAndSMS.SetActive(false); }
public void SetData(DataRecharge model,Action<DataRecharge> action){ this.model = model; PuApp.Instance.GetImage(model.image, (txture) => texture.mainTexture = txture); lbMoney.text = model.code_value;; NGUITools.AddWidgetCollider (gameObject); this.actionClick = action; }
private void OnSMSClickListener(DataRecharge model) { string[] templates = Regex.Split(model.template, @"{{"); UserInfo userInfo = Puppet.API.Client.APIUser.GetUserInformation();; string template = ""; if (templates[1].Contains("username")) { template = templates[0] + userInfo.info.userName; } else { template = templates[0] + userInfo.info.id; } SendSMSService.Instance.SendSMSMessage(new List <string>(new string[] { model.code }), template); }