Example #1
0
 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);
 }
Example #2
0
 private void OnCardClickListener(DataRecharge model)
 {
     panelInputCard.SetActive(true);
     lbTitleCard.text = "Nạp thẻ cào " + model.provider;
     currentCard      = model;
     panelScrollCardAndSMS.SetActive(false);
 }
Example #3
0
	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;
	}
Example #4
0
    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);
    }