Ejemplo n.º 1
0
    public AdColonyAd(string[] split_args)
    {
        this.shown      = split_args[0].Equals("true");
        this.iapEnabled = split_args[1].Equals("true");
        switch (split_args[2])
        {
        case "NONE":
            this.iapEngagementType = IAPEngagementType.NONE;
            break;

        case "OVERLAY":
            this.iapEngagementType = IAPEngagementType.OVERLAY;
            break;

        case "END_CARD":
            this.iapEngagementType = IAPEngagementType.END_CARD;
            break;

        case "AUTOMATIC":
            this.iapEngagementType = IAPEngagementType.AUTOMATIC;
            break;

        default:
            this.iapEngagementType = IAPEngagementType.NONE;
            break;
        }
        this.productID = split_args[3];
    }
Ejemplo n.º 2
0
    public AdColonyAd(string[] split_args)
    {
        this.shown      = split_args[0].Equals("true");
        this.iapEnabled = split_args[1].Equals("true");
        string type = split_args[2];

        if (type == "END_CARD")
        {
            this.iapEngagementType = IAPEngagementType.END_CARD;
        }
        else if (type == "OVERLAY")
        {
            this.iapEngagementType = IAPEngagementType.OVERLAY;
        }
        else if (type == "AUTOMATIC")
        {
            this.iapEngagementType = IAPEngagementType.AUTOMATIC;
        }
        else
        {
            this.iapEngagementType = IAPEngagementType.NONE;
        }

        this.productID = split_args[3];
    }
Ejemplo n.º 3
0
 public AdColonyAd(string[] split_args) {
   this.shown = split_args[0].Equals("true");
   this.iapEnabled = split_args[1].Equals("true");
   switch (split_args[2]) {
     case "NONE":
       this.iapEngagementType = IAPEngagementType.NONE;
       break;
     case "OVERLAY":
       this.iapEngagementType = IAPEngagementType.OVERLAY;
       break;
     case "END_CARD":
       this.iapEngagementType = IAPEngagementType.END_CARD;
       break;
     case "AUTOMATIC":
       this.iapEngagementType = IAPEngagementType.AUTOMATIC;
       break;
     default:
       this.iapEngagementType = IAPEngagementType.NONE;
       break;
   }
   this.productID = split_args[3];
 }
Ejemplo n.º 4
0
    public AdColonyAd(string[] split_args)
    {
        this.shown = split_args[0].Equals("true");
        this.iapEnabled = split_args[1].Equals("true");
        string type = split_args[2];

        if(type == "END_CARD") {
          this.iapEngagementType = IAPEngagementType.END_CARD;
        } else if(type == "OVERLAY") {
          this.iapEngagementType = IAPEngagementType.OVERLAY;
        } else if(type == "AUTOMATIC") {
          this.iapEngagementType = IAPEngagementType.AUTOMATIC;
        } else {
          this.iapEngagementType = IAPEngagementType.NONE;
        }

        this.productID = split_args[3];
    }