Showing
3 changed files
with
334 additions
and
294 deletions
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4-cosbeta28i' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta29' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -479,299 +479,299 @@ public enum Warply { | ... | @@ -479,299 +479,299 @@ public enum Warply { |
479 | public void onSuccess(CampaignList result) { | 479 | public void onSuccess(CampaignList result) { |
480 | WarplyManagerHelper.setCampaignList(result); | 480 | WarplyManagerHelper.setCampaignList(result); |
481 | 481 | ||
482 | - ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>(); | 482 | +// ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>(); |
483 | - JSONArray jArray = null; | 483 | +// JSONArray jArray = null; |
484 | - try { | 484 | +// try { |
485 | - jArray = new JSONArray("[\n" + | 485 | +// jArray = new JSONArray("[\n" + |
486 | - " {\n" + | 486 | +// " {\n" + |
487 | - " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + | 487 | +// " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + |
488 | - " \"businessAdditionalId\": \"\",\n" + | 488 | +// " \"businessAdditionalId\": \"\",\n" + |
489 | - " \"dataCategory\": \"Data\",\n" + | 489 | +// " \"dataCategory\": \"Data\",\n" + |
490 | - " \"dataValue\": \"None\",\n" + | 490 | +// " \"dataValue\": \"None\",\n" + |
491 | - " \"discount\": \"None\",\n" + | 491 | +// " \"discount\": \"None\",\n" + |
492 | - " \"eligibleAssets\": [\n" + | 492 | +// " \"eligibleAssets\": [\n" + |
493 | - " \"306945218770\"\n" + | 493 | +// " \"306945218770\"\n" + |
494 | - " ],\n" + | 494 | +// " ],\n" + |
495 | - " \"id\": \"000003590\",\n" + | 495 | +// " \"id\": \"000003590\",\n" + |
496 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 496 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
497 | - " \"minsValue\": \"None\",\n" + | 497 | +// " \"minsValue\": \"None\",\n" + |
498 | - " \"noOfRecurrance\": \"None\",\n" + | 498 | +// " \"noOfRecurrance\": \"None\",\n" + |
499 | - " \"notificationMessage\": \"None\",\n" + | 499 | +// " \"notificationMessage\": \"None\",\n" + |
500 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 500 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
501 | - " \"offerCode1\": \"000003590\",\n" + | 501 | +// " \"offerCode1\": \"000003590\",\n" + |
502 | - " \"offerName\": \"CCMS loyalty white label\",\n" + | 502 | +// " \"offerName\": \"CCMS loyalty white label\",\n" + |
503 | - " \"price\": \"None\",\n" + | 503 | +// " \"price\": \"None\",\n" + |
504 | - " \"productType\": \"White Label\",\n" + | 504 | +// " \"productType\": \"White Label\",\n" + |
505 | - " \"provDuration\": \"0.0\",\n" + | 505 | +// " \"provDuration\": \"0.0\",\n" + |
506 | - " \"provStepValueMins\": \"None\",\n" + | 506 | +// " \"provStepValueMins\": \"None\",\n" + |
507 | - " \"score\": \"50\",\n" + | 507 | +// " \"score\": \"50\",\n" + |
508 | - " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + | 508 | +// " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + |
509 | - " \"validity\": \"0\",\n" + | 509 | +// " \"validity\": \"0\",\n" + |
510 | - " \"voiceCategory\": \"None\",\n" + | 510 | +// " \"voiceCategory\": \"None\",\n" + |
511 | - " \"wave\": \"1\",\n" + | 511 | +// " \"wave\": \"1\",\n" + |
512 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 512 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
513 | - " },\n" + | 513 | +// " },\n" + |
514 | - " {\n" + | 514 | +// " {\n" + |
515 | - " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + | 515 | +// " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + |
516 | - " \"businessAdditionalId\": \"\",\n" + | 516 | +// " \"businessAdditionalId\": \"\",\n" + |
517 | - " \"dataCategory\": \"Data\",\n" + | 517 | +// " \"dataCategory\": \"Data\",\n" + |
518 | - " \"dataValue\": \"None\",\n" + | 518 | +// " \"dataValue\": \"None\",\n" + |
519 | - " \"discount\": \"None\",\n" + | 519 | +// " \"discount\": \"None\",\n" + |
520 | - " \"eligibleAssets\": [\n" + | 520 | +// " \"eligibleAssets\": [\n" + |
521 | - " \"306945218770\"\n" + | 521 | +// " \"306945218770\"\n" + |
522 | - " ],\n" + | 522 | +// " ],\n" + |
523 | - " \"id\": \"000003599\",\n" + | 523 | +// " \"id\": \"000003599\",\n" + |
524 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 524 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
525 | - " \"minsValue\": \"None\",\n" + | 525 | +// " \"minsValue\": \"None\",\n" + |
526 | - " \"noOfRecurrance\": \"None\",\n" + | 526 | +// " \"noOfRecurrance\": \"None\",\n" + |
527 | - " \"notificationMessage\": \"None\",\n" + | 527 | +// " \"notificationMessage\": \"None\",\n" + |
528 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 528 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
529 | - " \"offerCode1\": \"000003599\",\n" + | 529 | +// " \"offerCode1\": \"000003599\",\n" + |
530 | - " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + | 530 | +// " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + |
531 | - " \"price\": \"None\",\n" + | 531 | +// " \"price\": \"None\",\n" + |
532 | - " \"productType\": \"White Label\",\n" + | 532 | +// " \"productType\": \"White Label\",\n" + |
533 | - " \"provDuration\": \"0.0\",\n" + | 533 | +// " \"provDuration\": \"0.0\",\n" + |
534 | - " \"provStepValueMins\": \"None\",\n" + | 534 | +// " \"provStepValueMins\": \"None\",\n" + |
535 | - " \"score\": \"50\",\n" + | 535 | +// " \"score\": \"50\",\n" + |
536 | - " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + | 536 | +// " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + |
537 | - " \"validity\": \"0\",\n" + | 537 | +// " \"validity\": \"0\",\n" + |
538 | - " \"voiceCategory\": \"None\",\n" + | 538 | +// " \"voiceCategory\": \"None\",\n" + |
539 | - " \"wave\": \"1\",\n" + | 539 | +// " \"wave\": \"1\",\n" + |
540 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 540 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
541 | - " },\n" + | 541 | +// " },\n" + |
542 | - " {\n" + | 542 | +// " {\n" + |
543 | - " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 543 | +// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
544 | - " \"businessAdditionalId\": \"\",\n" + | 544 | +// " \"businessAdditionalId\": \"\",\n" + |
545 | - " \"businessService\": \"0.0\",\n" + | 545 | +// " \"businessService\": \"0.0\",\n" + |
546 | - " \"eligibleAssets\": [\n" + | 546 | +// " \"eligibleAssets\": [\n" + |
547 | - " \"306945218770\"\n" + | 547 | +// " \"306945218770\"\n" + |
548 | - " ],\n" + | 548 | +// " ],\n" + |
549 | - " \"id\": \"000003588\",\n" + | 549 | +// " \"id\": \"000003588\",\n" + |
550 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 550 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
551 | - " \"noOfRecurrance\": \"0\",\n" + | 551 | +// " \"noOfRecurrance\": \"0\",\n" + |
552 | - " \"notificationMessage\": \"None\",\n" + | 552 | +// " \"notificationMessage\": \"None\",\n" + |
553 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 553 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
554 | - " \"offerCode1\": \"000003588\",\n" + | 554 | +// " \"offerCode1\": \"000003588\",\n" + |
555 | - " \"offerName\": \"CCMS loyalty postpay addon\",\n" + | 555 | +// " \"offerName\": \"CCMS loyalty postpay addon\",\n" + |
556 | - " \"postpayProduct\": \"0.0\",\n" + | 556 | +// " \"postpayProduct\": \"0.0\",\n" + |
557 | - " \"price\": \"None\",\n" + | 557 | +// " \"price\": \"None\",\n" + |
558 | - " \"productType\": \"MOBILE ADDON\",\n" + | 558 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
559 | - " \"provDuration\": \"0.0\",\n" + | 559 | +// " \"provDuration\": \"0.0\",\n" + |
560 | - " \"score\": \"50\",\n" + | 560 | +// " \"score\": \"50\",\n" + |
561 | - " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 561 | +// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
562 | - " \"validity\": \"0\",\n" + | 562 | +// " \"validity\": \"0\",\n" + |
563 | - " \"wave\": \"1\",\n" + | 563 | +// " \"wave\": \"1\",\n" + |
564 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 564 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
565 | - " },\n" + | 565 | +// " },\n" + |
566 | - " {\n" + | 566 | +// " {\n" + |
567 | - " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 567 | +// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
568 | - " \"businessAdditionalId\": \"\",\n" + | 568 | +// " \"businessAdditionalId\": \"\",\n" + |
569 | - " \"dataCategory\": \"Data\",\n" + | 569 | +// " \"dataCategory\": \"Data\",\n" + |
570 | - " \"dataValue\": \"None\",\n" + | 570 | +// " \"dataValue\": \"None\",\n" + |
571 | - " \"discount\": \"None\",\n" + | 571 | +// " \"discount\": \"None\",\n" + |
572 | - " \"eligibleAssets\": [\n" + | 572 | +// " \"eligibleAssets\": [\n" + |
573 | - " \"306945218770\"\n" + | 573 | +// " \"306945218770\"\n" + |
574 | - " ],\n" + | 574 | +// " ],\n" + |
575 | - " \"id\": \"000003608\",\n" + | 575 | +// " \"id\": \"000003608\",\n" + |
576 | - " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + | 576 | +// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + |
577 | - " \"minsValue\": \"None\",\n" + | 577 | +// " \"minsValue\": \"None\",\n" + |
578 | - " \"noOfRecurrance\": \"None\",\n" + | 578 | +// " \"noOfRecurrance\": \"None\",\n" + |
579 | - " \"notificationMessage\": \"None\",\n" + | 579 | +// " \"notificationMessage\": \"None\",\n" + |
580 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 580 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
581 | - " \"offerCode1\": \"000003608\",\n" + | 581 | +// " \"offerCode1\": \"000003608\",\n" + |
582 | - " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + | 582 | +// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + |
583 | - " \"price\": \"None\",\n" + | 583 | +// " \"price\": \"None\",\n" + |
584 | - " \"productType\": \"White Label\",\n" + | 584 | +// " \"productType\": \"White Label\",\n" + |
585 | - " \"provDuration\": \"0.0\",\n" + | 585 | +// " \"provDuration\": \"0.0\",\n" + |
586 | - " \"provStepValueMins\": \"None\",\n" + | 586 | +// " \"provStepValueMins\": \"None\",\n" + |
587 | - " \"score\": \"50\",\n" + | 587 | +// " \"score\": \"50\",\n" + |
588 | - " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 588 | +// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
589 | - " \"validity\": \"0\",\n" + | 589 | +// " \"validity\": \"0\",\n" + |
590 | - " \"voiceCategory\": \"None\",\n" + | 590 | +// " \"voiceCategory\": \"None\",\n" + |
591 | - " \"wave\": \"1\",\n" + | 591 | +// " \"wave\": \"1\",\n" + |
592 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 592 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
593 | - " },\n" + | 593 | +// " },\n" + |
594 | - " {\n" + | 594 | +// " {\n" + |
595 | - " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 595 | +// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
596 | - " \"businessAdditionalId\": \"\",\n" + | 596 | +// " \"businessAdditionalId\": \"\",\n" + |
597 | - " \"businessService\": \"0.0\",\n" + | 597 | +// " \"businessService\": \"0.0\",\n" + |
598 | - " \"eligibleAssets\": [\n" + | 598 | +// " \"eligibleAssets\": [\n" + |
599 | - " \"306945218770\"\n" + | 599 | +// " \"306945218770\"\n" + |
600 | - " ],\n" + | 600 | +// " ],\n" + |
601 | - " \"id\": \"000003612\",\n" + | 601 | +// " \"id\": \"000003612\",\n" + |
602 | - " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + | 602 | +// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + |
603 | - " \"noOfRecurrance\": \"0\",\n" + | 603 | +// " \"noOfRecurrance\": \"0\",\n" + |
604 | - " \"notificationMessage\": \"None\",\n" + | 604 | +// " \"notificationMessage\": \"None\",\n" + |
605 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 605 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
606 | - " \"offerCode1\": \"000003612\",\n" + | 606 | +// " \"offerCode1\": \"000003612\",\n" + |
607 | - " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + | 607 | +// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + |
608 | - " \"postpayProduct\": \"0.0\",\n" + | 608 | +// " \"postpayProduct\": \"0.0\",\n" + |
609 | - " \"price\": \"None\",\n" + | 609 | +// " \"price\": \"None\",\n" + |
610 | - " \"productType\": \"MOBILE ADDON\",\n" + | 610 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
611 | - " \"provDuration\": \"0.0\",\n" + | 611 | +// " \"provDuration\": \"0.0\",\n" + |
612 | - " \"score\": \"50\",\n" + | 612 | +// " \"score\": \"50\",\n" + |
613 | - " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 613 | +// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
614 | - " \"validity\": \"0\",\n" + | 614 | +// " \"validity\": \"0\",\n" + |
615 | - " \"wave\": \"1\",\n" + | 615 | +// " \"wave\": \"1\",\n" + |
616 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 616 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
617 | - " },\n" + | 617 | +// " },\n" + |
618 | - " {\n" + | 618 | +// " {\n" + |
619 | - " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 619 | +// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
620 | - " \"businessAdditionalId\": \"\",\n" + | 620 | +// " \"businessAdditionalId\": \"\",\n" + |
621 | - " \"dataCategory\": \"Data\",\n" + | 621 | +// " \"dataCategory\": \"Data\",\n" + |
622 | - " \"dataValue\": \"None\",\n" + | 622 | +// " \"dataValue\": \"None\",\n" + |
623 | - " \"discount\": \"None\",\n" + | 623 | +// " \"discount\": \"None\",\n" + |
624 | - " \"eligibleAssets\": [\n" + | 624 | +// " \"eligibleAssets\": [\n" + |
625 | - " \"306945218770\"\n" + | 625 | +// " \"306945218770\"\n" + |
626 | - " ],\n" + | 626 | +// " ],\n" + |
627 | - " \"id\": \"000003610\",\n" + | 627 | +// " \"id\": \"000003610\",\n" + |
628 | - " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + | 628 | +// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + |
629 | - " \"minsValue\": \"None\",\n" + | 629 | +// " \"minsValue\": \"None\",\n" + |
630 | - " \"noOfRecurrance\": \"None\",\n" + | 630 | +// " \"noOfRecurrance\": \"None\",\n" + |
631 | - " \"notificationMessage\": \"None\",\n" + | 631 | +// " \"notificationMessage\": \"None\",\n" + |
632 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 632 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
633 | - " \"offerCode1\": \"000003610\",\n" + | 633 | +// " \"offerCode1\": \"000003610\",\n" + |
634 | - " \"offerName\": \"CCMS loyalty more4u v1\",\n" + | 634 | +// " \"offerName\": \"CCMS loyalty more4u v1\",\n" + |
635 | - " \"price\": \"20\",\n" + | 635 | +// " \"price\": \"20\",\n" + |
636 | - " \"productType\": \"White Label\",\n" + | 636 | +// " \"productType\": \"White Label\",\n" + |
637 | - " \"provDuration\": \"7.0\",\n" + | 637 | +// " \"provDuration\": \"7.0\",\n" + |
638 | - " \"provStepValueMins\": \"None\",\n" + | 638 | +// " \"provStepValueMins\": \"None\",\n" + |
639 | - " \"score\": \"60\",\n" + | 639 | +// " \"score\": \"60\",\n" + |
640 | - " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 640 | +// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
641 | - " \"validity\": \"0\",\n" + | 641 | +// " \"validity\": \"0\",\n" + |
642 | - " \"voiceCategory\": \"None\",\n" + | 642 | +// " \"voiceCategory\": \"None\",\n" + |
643 | - " \"wave\": \"1\",\n" + | 643 | +// " \"wave\": \"1\",\n" + |
644 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 644 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
645 | - " },\n" + | 645 | +// " },\n" + |
646 | - " {\n" + | 646 | +// " {\n" + |
647 | - " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 647 | +// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
648 | - " \"businessAdditionalId\": \"\",\n" + | 648 | +// " \"businessAdditionalId\": \"\",\n" + |
649 | - " \"businessService\": \"0.0\",\n" + | 649 | +// " \"businessService\": \"0.0\",\n" + |
650 | - " \"eligibleAssets\": [\n" + | 650 | +// " \"eligibleAssets\": [\n" + |
651 | - " \"306945218770\"\n" + | 651 | +// " \"306945218770\"\n" + |
652 | - " ],\n" + | 652 | +// " ],\n" + |
653 | - " \"id\": \"000003614\",\n" + | 653 | +// " \"id\": \"000003614\",\n" + |
654 | - " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + | 654 | +// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + |
655 | - " \"noOfRecurrance\": \"0\",\n" + | 655 | +// " \"noOfRecurrance\": \"0\",\n" + |
656 | - " \"notificationMessage\": \"None\",\n" + | 656 | +// " \"notificationMessage\": \"None\",\n" + |
657 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 657 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
658 | - " \"offerCode1\": \"000003614\",\n" + | 658 | +// " \"offerCode1\": \"000003614\",\n" + |
659 | - " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + | 659 | +// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + |
660 | - " \"postpayProduct\": \"0.0\",\n" + | 660 | +// " \"postpayProduct\": \"0.0\",\n" + |
661 | - " \"price\": \"None\",\n" + | 661 | +// " \"price\": \"None\",\n" + |
662 | - " \"productType\": \"MOBILE ADDON\",\n" + | 662 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
663 | - " \"provDuration\": \"0.0\",\n" + | 663 | +// " \"provDuration\": \"0.0\",\n" + |
664 | - " \"score\": \"50\",\n" + | 664 | +// " \"score\": \"50\",\n" + |
665 | - " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 665 | +// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
666 | - " \"validity\": \"0\",\n" + | 666 | +// " \"validity\": \"0\",\n" + |
667 | - " \"wave\": \"1\",\n" + | 667 | +// " \"wave\": \"1\",\n" + |
668 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 668 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
669 | - " },\n" + | 669 | +// " },\n" + |
670 | - " {\n" + | 670 | +// " {\n" + |
671 | - " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 671 | +// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
672 | - " \"businessAdditionalId\": \"\",\n" + | 672 | +// " \"businessAdditionalId\": \"\",\n" + |
673 | - " \"eligibleAssets\": [],\n" + | 673 | +// " \"eligibleAssets\": [],\n" + |
674 | - " \"id\": \"000003586\",\n" + | 674 | +// " \"id\": \"000003586\",\n" + |
675 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 675 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
676 | - " \"offerAudienceLevel\": \"guid\",\n" + | 676 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
677 | - " \"offerCode1\": \"000003586\",\n" + | 677 | +// " \"offerCode1\": \"000003586\",\n" + |
678 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 678 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
679 | - " \"productType\": \"GENERIC\",\n" + | 679 | +// " \"productType\": \"GENERIC\",\n" + |
680 | - " \"score\": \"50\",\n" + | 680 | +// " \"score\": \"50\",\n" + |
681 | - " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 681 | +// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
682 | - " \"validity\": \"0\",\n" + | 682 | +// " \"validity\": \"0\",\n" + |
683 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 683 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
684 | - " },\n" + | 684 | +// " },\n" + |
685 | - " {\n" + | 685 | +// " {\n" + |
686 | - " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 686 | +// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
687 | - " \"businessAdditionalId\": \"\",\n" + | 687 | +// " \"businessAdditionalId\": \"\",\n" + |
688 | - " \"eligibleAssets\": [],\n" + | 688 | +// " \"eligibleAssets\": [],\n" + |
689 | - " \"id\": \"000003595\",\n" + | 689 | +// " \"id\": \"000003595\",\n" + |
690 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 690 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
691 | - " \"offerAudienceLevel\": \"guid\",\n" + | 691 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
692 | - " \"offerCode1\": \"000003595\",\n" + | 692 | +// " \"offerCode1\": \"000003595\",\n" + |
693 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 693 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
694 | - " \"productType\": \"GENERIC\",\n" + | 694 | +// " \"productType\": \"GENERIC\",\n" + |
695 | - " \"score\": \"50\",\n" + | 695 | +// " \"score\": \"50\",\n" + |
696 | - " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 696 | +// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
697 | - " \"validity\": \"0\",\n" + | 697 | +// " \"validity\": \"0\",\n" + |
698 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 698 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
699 | - " },\n" + | 699 | +// " },\n" + |
700 | - " {\n" + | 700 | +// " {\n" + |
701 | - " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 701 | +// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
702 | - " \"businessAdditionalId\": \"\",\n" + | 702 | +// " \"businessAdditionalId\": \"\",\n" + |
703 | - " \"eligibleAssets\": [],\n" + | 703 | +// " \"eligibleAssets\": [],\n" + |
704 | - " \"id\": \"000003595\",\n" + | 704 | +// " \"id\": \"000003595\",\n" + |
705 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 705 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
706 | - " \"offerAudienceLevel\": \"guid\",\n" + | 706 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
707 | - " \"offerCode1\": \"000003595\",\n" + | 707 | +// " \"offerCode1\": \"000003595\",\n" + |
708 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 708 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
709 | - " \"productType\": \"GENERIC\",\n" + | 709 | +// " \"productType\": \"GENERIC\",\n" + |
710 | - " \"score\": \"50\",\n" + | 710 | +// " \"score\": \"50\",\n" + |
711 | - " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 711 | +// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
712 | - " \"validity\": \"0\",\n" + | 712 | +// " \"validity\": \"0\",\n" + |
713 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 713 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
714 | - " },\n" + | 714 | +// " },\n" + |
715 | - " {\n" + | 715 | +// " {\n" + |
716 | - " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 716 | +// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
717 | - " \"businessAdditionalId\": \"\",\n" + | 717 | +// " \"businessAdditionalId\": \"\",\n" + |
718 | - " \"eligibleAssets\": [],\n" + | 718 | +// " \"eligibleAssets\": [],\n" + |
719 | - " \"id\": \"000003586\",\n" + | 719 | +// " \"id\": \"000003586\",\n" + |
720 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 720 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
721 | - " \"offerAudienceLevel\": \"guid\",\n" + | 721 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
722 | - " \"offerCode1\": \"000003586\",\n" + | 722 | +// " \"offerCode1\": \"000003586\",\n" + |
723 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 723 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
724 | - " \"productType\": \"GENERIC\",\n" + | 724 | +// " \"productType\": \"GENERIC\",\n" + |
725 | - " \"score\": \"50\",\n" + | 725 | +// " \"score\": \"50\",\n" + |
726 | - " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 726 | +// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
727 | - " \"validity\": \"0\",\n" + | 727 | +// " \"validity\": \"0\",\n" + |
728 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 728 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
729 | - " },\n" + | 729 | +// " },\n" + |
730 | - " {\n" + | 730 | +// " {\n" + |
731 | - " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 731 | +// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
732 | - " \"businessAdditionalId\": \"\",\n" + | 732 | +// " \"businessAdditionalId\": \"\",\n" + |
733 | - " \"eligibleAssets\": [],\n" + | 733 | +// " \"eligibleAssets\": [],\n" + |
734 | - " \"id\": \"000003586\",\n" + | 734 | +// " \"id\": \"000003586\",\n" + |
735 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 735 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
736 | - " \"offerAudienceLevel\": \"guid\",\n" + | 736 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
737 | - " \"offerCode1\": \"000003586\",\n" + | 737 | +// " \"offerCode1\": \"000003586\",\n" + |
738 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 738 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
739 | - " \"productType\": \"GENERIC\",\n" + | 739 | +// " \"productType\": \"GENERIC\",\n" + |
740 | - " \"score\": \"50\",\n" + | 740 | +// " \"score\": \"50\",\n" + |
741 | - " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 741 | +// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
742 | - " \"validity\": \"0\",\n" + | 742 | +// " \"validity\": \"0\",\n" + |
743 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 743 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
744 | - " },\n" + | 744 | +// " },\n" + |
745 | - " {\n" + | 745 | +// " {\n" + |
746 | - " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 746 | +// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
747 | - " \"businessAdditionalId\": \"\",\n" + | 747 | +// " \"businessAdditionalId\": \"\",\n" + |
748 | - " \"eligibleAssets\": [],\n" + | 748 | +// " \"eligibleAssets\": [],\n" + |
749 | - " \"id\": \"000003595\",\n" + | 749 | +// " \"id\": \"000003595\",\n" + |
750 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 750 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
751 | - " \"offerAudienceLevel\": \"guid\",\n" + | 751 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
752 | - " \"offerCode1\": \"000003595\",\n" + | 752 | +// " \"offerCode1\": \"000003595\",\n" + |
753 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 753 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
754 | - " \"productType\": \"GENERIC\",\n" + | 754 | +// " \"productType\": \"GENERIC\",\n" + |
755 | - " \"score\": \"50\",\n" + | 755 | +// " \"score\": \"50\",\n" + |
756 | - " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 756 | +// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
757 | - " \"validity\": \"0\",\n" + | 757 | +// " \"validity\": \"0\",\n" + |
758 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 758 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
759 | - " }\n" + | 759 | +// " }\n" + |
760 | - " ]"); | 760 | +// " ]"); |
761 | - } catch (JSONException e) { | 761 | +// } catch (JSONException e) { |
762 | - e.printStackTrace(); | 762 | +// e.printStackTrace(); |
763 | - } | 763 | +// } |
764 | - if (jArray != null && jArray.length() > 0) { | 764 | +// if (jArray != null && jArray.length() > 0) { |
765 | - for (int i = 0; i < jArray.length(); i++) { | 765 | +// for (int i = 0; i < jArray.length(); i++) { |
766 | - JSONObject jobj = new JSONObject(); | 766 | +// JSONObject jobj = new JSONObject(); |
767 | - jobj = jArray.optJSONObject(i); | 767 | +// jobj = jArray.optJSONObject(i); |
768 | - if (jobj != null) { | 768 | +// if (jobj != null) { |
769 | - LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); | 769 | +// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); |
770 | - list.add(model); | 770 | +// list.add(model); |
771 | - } | 771 | +// } |
772 | - } | 772 | +// } |
773 | - } | 773 | +// } |
774 | - WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); | 774 | +// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); |
775 | if (result.size() >= 0) { | 775 | if (result.size() >= 0) { |
776 | objectSerializer.serialize(result, File.separator + requestSignature); | 776 | objectSerializer.serialize(result, File.separator + requestSignature); |
777 | warplyPreferences.saveInboxLastCachedTimeStamp(requestSignature, System.currentTimeMillis()); | 777 | warplyPreferences.saveInboxLastCachedTimeStamp(requestSignature, System.currentTimeMillis()); | ... | ... |
... | @@ -37,6 +37,10 @@ public class LoyaltyContextualOfferModel { | ... | @@ -37,6 +37,10 @@ public class LoyaltyContextualOfferModel { |
37 | private String wave; | 37 | private String wave; |
38 | private String validity; | 38 | private String validity; |
39 | private String offerAudienceLevel; | 39 | private String offerAudienceLevel; |
40 | + private String imageUrl; | ||
41 | + private String title; | ||
42 | + private String subtitle; | ||
43 | + private String description; | ||
40 | 44 | ||
41 | 45 | ||
42 | public LoyaltyContextualOfferModel() { | 46 | public LoyaltyContextualOfferModel() { |
... | @@ -67,6 +71,10 @@ public class LoyaltyContextualOfferModel { | ... | @@ -67,6 +71,10 @@ public class LoyaltyContextualOfferModel { |
67 | this.wave = ""; | 71 | this.wave = ""; |
68 | this.validity = ""; | 72 | this.validity = ""; |
69 | this.offerAudienceLevel = ""; | 73 | this.offerAudienceLevel = ""; |
74 | + this.imageUrl = ""; | ||
75 | + this.title = ""; | ||
76 | + this.subtitle = ""; | ||
77 | + this.description = ""; | ||
70 | } | 78 | } |
71 | 79 | ||
72 | public LoyaltyContextualOfferModel(JSONObject jobj) { | 80 | public LoyaltyContextualOfferModel(JSONObject jobj) { |
... | @@ -325,4 +333,36 @@ public class LoyaltyContextualOfferModel { | ... | @@ -325,4 +333,36 @@ public class LoyaltyContextualOfferModel { |
325 | public void setOfferAudienceLevel(String offerAudienceLevel) { | 333 | public void setOfferAudienceLevel(String offerAudienceLevel) { |
326 | this.offerAudienceLevel = offerAudienceLevel; | 334 | this.offerAudienceLevel = offerAudienceLevel; |
327 | } | 335 | } |
336 | + | ||
337 | + public String getImageUrl() { | ||
338 | + return imageUrl; | ||
339 | + } | ||
340 | + | ||
341 | + public void setImageUrl(String imageUrl) { | ||
342 | + this.imageUrl = imageUrl; | ||
343 | + } | ||
344 | + | ||
345 | + public String getTitle() { | ||
346 | + return title; | ||
347 | + } | ||
348 | + | ||
349 | + public void setTitle(String title) { | ||
350 | + this.title = title; | ||
351 | + } | ||
352 | + | ||
353 | + public String getSubtitle() { | ||
354 | + return subtitle; | ||
355 | + } | ||
356 | + | ||
357 | + public void setSubtitle(String subtitle) { | ||
358 | + this.subtitle = subtitle; | ||
359 | + } | ||
360 | + | ||
361 | + public String getDescription() { | ||
362 | + return description; | ||
363 | + } | ||
364 | + | ||
365 | + public void setDescription(String description) { | ||
366 | + this.description = description; | ||
367 | + } | ||
328 | } | 368 | } | ... | ... |
-
Please register or login to post a comment