Panagiotis Triantafyllou

native telco flow wip

...@@ -103,6 +103,11 @@ ...@@ -103,6 +103,11 @@
103 android:screenOrientation="portrait" /> 103 android:screenOrientation="portrait" />
104 104
105 <activity 105 <activity
106 + android:name="ly.warp.sdk.activities.TelcoActivity"
107 + android:exported="false"
108 + android:screenOrientation="portrait" />
109 +
110 + <activity
106 android:name="ly.warp.sdk.dexter.PermissionsActivity" 111 android:name="ly.warp.sdk.dexter.PermissionsActivity"
107 android:exported="false" 112 android:exported="false"
108 android:launchMode="singleInstance" 113 android:launchMode="singleInstance"
......
...@@ -479,474 +479,511 @@ public enum Warply { ...@@ -479,474 +479,511 @@ 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 -// " \"306944333488\",\n" + 494 + " \"306944333488\",\n" +
495 -// " \"306932222490\",\n" + 495 + " \"306932222490\",\n" +
496 -// " \"306996824010\",\n" + 496 + " \"306996824010\",\n" +
497 -// " \"306972713201\",\n" + 497 + " \"306972713201\",\n" +
498 -// " \"306942496252\",\n" + 498 + " \"306942496252\",\n" +
499 -// " \"306977316716\",\n" + 499 + " \"306977316716\",\n" +
500 -// " \"306945433100\",\n" + 500 + " \"306945433100\",\n" +
501 -// " \"306977403986\",\n" + 501 + " \"306977403986\",\n" +
502 -// " \"306936581495\",\n" + 502 + " \"306936581495\",\n" +
503 -// " \"306980689662\",\n" + 503 + " \"306980689662\",\n" +
504 -// " \"306970101490\",\n" + 504 + " \"306970101490\",\n" +
505 -// " \"306973396329\",\n" + 505 + " \"306973396329\",\n" +
506 -// " \"306972577064\",\n" + 506 + " \"306972577064\",\n" +
507 -// " \"306974923219\",\n" + 507 + " \"306974923219\",\n" +
508 -// " \"306977513761\",\n" + 508 + " \"306977513761\",\n" +
509 -// " \"306984220987\",\n" + 509 + " \"306984220987\",\n" +
510 -// " \"306979949205\",\n" + 510 + " \"306979949205\",\n" +
511 -// " \"306943134127\",\n" + 511 + " \"306943134127\",\n" +
512 -// " \"306970437794\",\n" + 512 + " \"306970437794\",\n" +
513 -// " \"306932535319\",\n" + 513 + " \"306932535319\",\n" +
514 -// " \"306974063133\",\n" + 514 + " \"306974063133\",\n" +
515 -// " \"306932520323\",\n" + 515 + " \"306932520323\",\n" +
516 -// " \"306978733823\",\n" + 516 + " \"306978733823\",\n" +
517 -// " \"306985995420\",\n" + 517 + " \"306985995420\",\n" +
518 -// " \"306983879555\",\n" + 518 + " \"306983879555\",\n" +
519 -// " ],\n" + 519 + " ],\n" +
520 -// " \"id\": \"000003590\",\n" + 520 + " \"id\": \"000003590\",\n" +
521 -// " \"loyaltyCampaignId\": \"NA\",\n" + 521 + " \"loyaltyCampaignId\": \"NA\",\n" +
522 -// " \"minsValue\": \"None\",\n" + 522 + " \"minsValue\": \"None\",\n" +
523 -// " \"noOfRecurrance\": \"None\",\n" + 523 + " \"noOfRecurrance\": \"None\",\n" +
524 -// " \"notificationMessage\": \"None\",\n" + 524 + " \"notificationMessage\": \"None\",\n" +
525 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 525 + " \"offerAudienceLevel\": \"msisdn\",\n" +
526 -// " \"offerCode1\": \"000003590\",\n" + 526 + " \"offerCode1\": \"000003590\",\n" +
527 -// " \"offerName\": \"CCMS loyalty white label\",\n" + 527 + " \"offerName\": \"CCMS loyalty white label\",\n" +
528 -// " \"price\": \"None\",\n" + 528 + " \"price\": \"None\",\n" +
529 -// " \"productType\": \"White Label\",\n" + 529 + " \"productType\": \"White Label\",\n" +
530 -// " \"provDuration\": \"0.0\",\n" + 530 + " \"provDuration\": \"0.0\",\n" +
531 -// " \"provStepValueMins\": \"None\",\n" + 531 + " \"provStepValueMins\": \"None\",\n" +
532 -// " \"score\": \"50\",\n" + 532 + " \"score\": \"50\",\n" +
533 -// " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + 533 + " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
534 -// " \"validity\": \"0\",\n" + 534 + " \"validity\": \"0\",\n" +
535 -// " \"voiceCategory\": \"None\",\n" + 535 + " \"voiceCategory\": \"None\",\n" +
536 -// " \"wave\": \"1\",\n" + 536 + " \"wave\": \"1\",\n" +
537 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 537 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
538 -// " },\n" + 538 + " },\n" +
539 -// " {\n" + 539 + " {\n" +
540 -// " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + 540 + " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
541 -// " \"businessAdditionalId\": \"\",\n" + 541 + " \"businessAdditionalId\": \"\",\n" +
542 -// " \"dataCategory\": \"Data\",\n" + 542 + " \"dataCategory\": \"Data\",\n" +
543 -// " \"dataValue\": \"None\",\n" + 543 + " \"dataValue\": \"None\",\n" +
544 -// " \"discount\": \"None\",\n" + 544 + " \"discount\": \"None\",\n" +
545 -// " \"eligibleAssets\": [\n" + 545 + " \"eligibleAssets\": [\n" +
546 -// " \"306945218770\",\n" + 546 + " \"306945218770\",\n" +
547 -// " \"306944333488\",\n" + 547 + " \"306944333488\",\n" +
548 -// " \"306932222490\",\n" + 548 + " \"306932222490\",\n" +
549 -// " \"306996824010\",\n" + 549 + " \"306996824010\",\n" +
550 -// " \"306972713201\",\n" + 550 + " \"306972713201\",\n" +
551 -// " \"306942496252\",\n" + 551 + " \"306942496252\",\n" +
552 -// " \"306977316716\",\n" + 552 + " \"306977316716\",\n" +
553 -// " \"306945433100\",\n" + 553 + " \"306945433100\",\n" +
554 -// " \"306977403986\",\n" + 554 + " \"306977403986\",\n" +
555 -// " \"306936581495\",\n" + 555 + " \"306936581495\",\n" +
556 -// " \"306980689662\",\n" + 556 + " \"306980689662\",\n" +
557 -// " \"306970101490\",\n" + 557 + " \"306970101490\",\n" +
558 -// " \"306973396329\",\n" + 558 + " \"306973396329\",\n" +
559 -// " \"306972577064\",\n" + 559 + " \"306972577064\",\n" +
560 -// " \"306974923219\",\n" + 560 + " \"306974923219\",\n" +
561 -// " \"306977513761\",\n" + 561 + " \"306977513761\",\n" +
562 -// " \"306984220987\",\n" + 562 + " \"306984220987\",\n" +
563 -// " \"306979949205\",\n" + 563 + " \"306979949205\",\n" +
564 -// " \"306943134127\",\n" + 564 + " \"306943134127\",\n" +
565 -// " \"306970437794\",\n" + 565 + " \"306970437794\",\n" +
566 -// " \"306932535319\",\n" + 566 + " \"306932535319\",\n" +
567 -// " \"306974063133\",\n" + 567 + " \"306974063133\",\n" +
568 -// " \"306932520323\",\n" + 568 + " \"306932520323\",\n" +
569 -// " \"306978733823\",\n" + 569 + " \"306978733823\",\n" +
570 -// " \"306985995420\",\n" + 570 + " \"306985995420\",\n" +
571 -// " \"306983879555\",\n" + 571 + " \"306983879555\",\n" +
572 -// " ],\n" + 572 + " ],\n" +
573 -// " \"id\": \"000003599\",\n" + 573 + " \"id\": \"000003599\",\n" +
574 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 574 + " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d
575 -// " \"minsValue\": \"None\",\n" + 575 + " \"minsValue\": \"None\",\n" +
576 -// " \"noOfRecurrance\": \"None\",\n" + 576 + " \"noOfRecurrance\": \"None\",\n" +
577 -// " \"notificationMessage\": \"None\",\n" + 577 + " \"notificationMessage\": \"None\",\n" +
578 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 578 + " \"offerAudienceLevel\": \"msisdn\",\n" +
579 -// " \"offerCode1\": \"000003599\",\n" + 579 + " \"offerCode1\": \"000003599\",\n" +
580 -// " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + 580 + " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" +
581 -// " \"price\": \"None\",\n" + 581 + " \"price\": \"None\",\n" +
582 -// " \"productType\": \"White Label\",\n" + 582 + " \"productType\": \"White Label\",\n" +
583 -// " \"provDuration\": \"0.0\",\n" + 583 + " \"provDuration\": \"0.0\",\n" +
584 -// " \"provStepValueMins\": \"None\",\n" + 584 + " \"provStepValueMins\": \"None\",\n" +
585 -// " \"score\": \"50\",\n" + 585 + " \"score\": \"50\",\n" +
586 -// " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + 586 + " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
587 -// " \"validity\": \"0\",\n" + 587 + " \"validity\": \"0\",\n" +
588 -// " \"voiceCategory\": \"None\",\n" + 588 + " \"voiceCategory\": \"None\",\n" +
589 -// " \"wave\": \"1\",\n" + 589 + " \"wave\": \"1\",\n" +
590 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 590 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
591 -// " },\n" + 591 + " \"title\": \"Test1\",\n" +
592 -// " {\n" + 592 + " \"subtitle\": \"Test1\",\n" +
593 -// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + 593 + " \"description\": \"Test1\",\n" +
594 -// " \"businessAdditionalId\": \"\",\n" + 594 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
595 -// " \"businessService\": \"0.0\",\n" + 595 + " },\n" +
596 -// " \"eligibleAssets\": [\n" + 596 + " {\n" +
597 -// " \"306945218770\",\n" + 597 + " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
598 -// " \"306944333488\",\n" + 598 + " \"businessAdditionalId\": \"\",\n" +
599 -// " \"306932222490\",\n" + 599 + " \"businessService\": \"0.0\",\n" +
600 -// " \"306996824010\",\n" + 600 + " \"eligibleAssets\": [\n" +
601 -// " \"306972713201\",\n" + 601 + " \"306945218770\",\n" +
602 -// " \"306942496252\",\n" + 602 + " \"306944333488\",\n" +
603 -// " \"306977316716\",\n" + 603 + " \"306932222490\",\n" +
604 -// " \"306945433100\",\n" + 604 + " \"306996824010\",\n" +
605 -// " \"306977403986\",\n" + 605 + " \"306972713201\",\n" +
606 -// " \"306936581495\",\n" + 606 + " \"306942496252\",\n" +
607 -// " \"306980689662\",\n" + 607 + " \"306977316716\",\n" +
608 -// " \"306970101490\",\n" + 608 + " \"306945433100\",\n" +
609 -// " \"306973396329\",\n" + 609 + " \"306977403986\",\n" +
610 -// " \"306972577064\",\n" + 610 + " \"306936581495\",\n" +
611 -// " \"306974923219\",\n" + 611 + " \"306980689662\",\n" +
612 -// " \"306977513761\",\n" + 612 + " \"306970101490\",\n" +
613 -// " \"306984220987\",\n" + 613 + " \"306973396329\",\n" +
614 -// " \"306979949205\",\n" + 614 + " \"306972577064\",\n" +
615 -// " \"306943134127\",\n" + 615 + " \"306974923219\",\n" +
616 -// " \"306970437794\",\n" + 616 + " \"306977513761\",\n" +
617 -// " \"306932535319\",\n" + 617 + " \"306984220987\",\n" +
618 -// " \"306974063133\",\n" + 618 + " \"306979949205\",\n" +
619 -// " \"306932520323\",\n" + 619 + " \"306943134127\",\n" +
620 -// " \"306978733823\",\n" + 620 + " \"306970437794\",\n" +
621 -// " \"306985995420\",\n" + 621 + " \"306932535319\",\n" +
622 -// " \"306983879555\",\n" + 622 + " \"306974063133\",\n" +
623 -// " ],\n" + 623 + " \"306932520323\",\n" +
624 -// " \"id\": \"000003588\",\n" + 624 + " \"306978733823\",\n" +
625 -// " \"loyaltyCampaignId\": \"NA\",\n" + 625 + " \"306985995420\",\n" +
626 -// " \"noOfRecurrance\": \"0\",\n" + 626 + " \"306983879555\",\n" +
627 -// " \"notificationMessage\": \"None\",\n" + 627 + " ],\n" +
628 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 628 + " \"id\": \"000003588\",\n" +
629 -// " \"offerCode1\": \"000003588\",\n" + 629 + " \"loyaltyCampaignId\": \"NA\",\n" +
630 -// " \"offerName\": \"CCMS loyalty postpay addon\",\n" + 630 + " \"noOfRecurrance\": \"0\",\n" +
631 -// " \"postpayProduct\": \"0.0\",\n" + 631 + " \"notificationMessage\": \"None\",\n" +
632 -// " \"price\": \"None\",\n" + 632 + " \"offerAudienceLevel\": \"msisdn\",\n" +
633 -// " \"productType\": \"MOBILE ADDON\",\n" + 633 + " \"offerCode1\": \"000003588\",\n" +
634 -// " \"provDuration\": \"0.0\",\n" + 634 + " \"offerName\": \"CCMS loyalty postpay addon\",\n" +
635 -// " \"score\": \"50\",\n" + 635 + " \"postpayProduct\": \"0.0\",\n" +
636 -// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + 636 + " \"price\": \"None\",\n" +
637 -// " \"validity\": \"0\",\n" + 637 + " \"productType\": \"MOBILE ADDON\",\n" +
638 -// " \"wave\": \"1\",\n" + 638 + " \"provDuration\": \"0.0\",\n" +
639 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 639 + " \"score\": \"50\",\n" +
640 -// " },\n" + 640 + " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
641 -// " {\n" + 641 + " \"validity\": \"0\",\n" +
642 -// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + 642 + " \"wave\": \"1\",\n" +
643 -// " \"businessAdditionalId\": \"\",\n" + 643 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
644 -// " \"dataCategory\": \"Data\",\n" + 644 + " \"title\": \"Test2\",\n" +
645 -// " \"dataValue\": \"None\",\n" + 645 + " \"subtitle\": \"Test2\",\n" +
646 -// " \"discount\": \"None\",\n" + 646 + " \"description\": \"Test2\",\n" +
647 -// " \"eligibleAssets\": [\n" + 647 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
648 -// " \"306945218770\",\n" + 648 + " },\n" +
649 -// " \"306944333488\",\n" + 649 + " {\n" +
650 -// " \"306932222490\",\n" + 650 + " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
651 -// " \"306996824010\",\n" + 651 + " \"businessAdditionalId\": \"\",\n" +
652 -// " \"306972713201\",\n" + 652 + " \"dataCategory\": \"Data\",\n" +
653 -// " \"306942496252\",\n" + 653 + " \"dataValue\": \"None\",\n" +
654 -// " \"306977316716\",\n" + 654 + " \"discount\": \"None\",\n" +
655 -// " \"306945433100\",\n" + 655 + " \"eligibleAssets\": [\n" +
656 -// " \"306977403986\",\n" + 656 + " \"306945218770\",\n" +
657 -// " \"306936581495\",\n" + 657 + " \"306944333488\",\n" +
658 -// " \"306980689662\",\n" + 658 + " \"306932222490\",\n" +
659 -// " \"306970101490\",\n" + 659 + " \"306996824010\",\n" +
660 -// " \"306973396329\",\n" + 660 + " \"306972713201\",\n" +
661 -// " \"306972577064\",\n" + 661 + " \"306942496252\",\n" +
662 -// " \"306974923219\",\n" + 662 + " \"306977316716\",\n" +
663 -// " \"306977513761\",\n" + 663 + " \"306945433100\",\n" +
664 -// " \"306984220987\",\n" + 664 + " \"306977403986\",\n" +
665 -// " \"306979949205\",\n" + 665 + " \"306936581495\",\n" +
666 -// " \"306943134127\",\n" + 666 + " \"306980689662\",\n" +
667 -// " \"306970437794\",\n" + 667 + " \"306970101490\",\n" +
668 -// " \"306932535319\",\n" + 668 + " \"306973396329\",\n" +
669 -// " \"306974063133\",\n" + 669 + " \"306972577064\",\n" +
670 -// " \"306932520323\",\n" + 670 + " \"306974923219\",\n" +
671 -// " \"306978733823\",\n" + 671 + " \"306977513761\",\n" +
672 -// " \"306985995420\",\n" + 672 + " \"306984220987\",\n" +
673 -// " \"306983879555\",\n" + 673 + " \"306979949205\",\n" +
674 -// " ],\n" + 674 + " \"306943134127\",\n" +
675 -// " \"id\": \"000003608\",\n" + 675 + " \"306970437794\",\n" +
676 -// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + 676 + " \"306932535319\",\n" +
677 -// " \"minsValue\": \"None\",\n" + 677 + " \"306974063133\",\n" +
678 -// " \"noOfRecurrance\": \"None\",\n" + 678 + " \"306932520323\",\n" +
679 -// " \"notificationMessage\": \"None\",\n" + 679 + " \"306978733823\",\n" +
680 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 680 + " \"306985995420\",\n" +
681 -// " \"offerCode1\": \"000003608\",\n" + 681 + " \"306983879555\",\n" +
682 -// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + 682 + " ],\n" +
683 -// " \"price\": \"None\",\n" + 683 + " \"id\": \"000003608\",\n" +
684 -// " \"productType\": \"White Label\",\n" + 684 + " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" +
685 -// " \"provDuration\": \"0.0\",\n" + 685 + " \"minsValue\": \"None\",\n" +
686 -// " \"provStepValueMins\": \"None\",\n" + 686 + " \"noOfRecurrance\": \"None\",\n" +
687 -// " \"score\": \"50\",\n" + 687 + " \"notificationMessage\": \"None\",\n" +
688 -// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + 688 + " \"offerAudienceLevel\": \"msisdn\",\n" +
689 -// " \"validity\": \"0\",\n" + 689 + " \"offerCode1\": \"000003608\",\n" +
690 -// " \"voiceCategory\": \"None\",\n" + 690 + " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" +
691 -// " \"wave\": \"1\",\n" + 691 + " \"price\": \"None\",\n" +
692 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 692 + " \"productType\": \"White Label\",\n" +
693 -// " },\n" + 693 + " \"provDuration\": \"0.0\",\n" +
694 -// " {\n" + 694 + " \"provStepValueMins\": \"None\",\n" +
695 -// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + 695 + " \"score\": \"50\",\n" +
696 -// " \"businessAdditionalId\": \"\",\n" + 696 + " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
697 -// " \"businessService\": \"0.0\",\n" + 697 + " \"validity\": \"0\",\n" +
698 -// " \"eligibleAssets\": [\n" + 698 + " \"voiceCategory\": \"None\",\n" +
699 -// " \"306945218770\",\n" + 699 + " \"wave\": \"1\",\n" +
700 -// " \"306944333488\",\n" + 700 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
701 -// " \"306932222490\",\n" + 701 + " \"title\": \"Test3\",\n" +
702 -// " \"306996824010\",\n" + 702 + " \"subtitle\": \"Test3\",\n" +
703 -// " \"306972713201\",\n" + 703 + " \"description\": \"Test3\",\n" +
704 -// " \"306942496252\",\n" + 704 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
705 -// " \"306977316716\",\n" + 705 + " },\n" +
706 -// " \"306945433100\",\n" + 706 + " {\n" +
707 -// " \"306977403986\",\n" + 707 + " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
708 -// " \"306936581495\",\n" + 708 + " \"businessAdditionalId\": \"\",\n" +
709 -// " \"306980689662\",\n" + 709 + " \"businessService\": \"0.0\",\n" +
710 -// " \"306970101490\",\n" + 710 + " \"eligibleAssets\": [\n" +
711 -// " \"306973396329\",\n" + 711 + " \"306945218770\",\n" +
712 -// " \"306972577064\",\n" + 712 + " \"306944333488\",\n" +
713 -// " \"306974923219\",\n" + 713 + " \"306932222490\",\n" +
714 -// " \"306977513761\",\n" + 714 + " \"306996824010\",\n" +
715 -// " \"306984220987\",\n" + 715 + " \"306972713201\",\n" +
716 -// " \"306979949205\",\n" + 716 + " \"306942496252\",\n" +
717 -// " \"306943134127\",\n" + 717 + " \"306977316716\",\n" +
718 -// " \"306970437794\",\n" + 718 + " \"306945433100\",\n" +
719 -// " \"306932535319\",\n" + 719 + " \"306977403986\",\n" +
720 -// " \"306974063133\",\n" + 720 + " \"306936581495\",\n" +
721 -// " \"306932520323\",\n" + 721 + " \"306980689662\",\n" +
722 -// " \"306978733823\",\n" + 722 + " \"306970101490\",\n" +
723 -// " \"306985995420\",\n" + 723 + " \"306973396329\",\n" +
724 -// " \"306983879555\",\n" + 724 + " \"306972577064\",\n" +
725 -// " ],\n" + 725 + " \"306974923219\",\n" +
726 -// " \"id\": \"000003612\",\n" + 726 + " \"306977513761\",\n" +
727 -// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + 727 + " \"306984220987\",\n" +
728 -// " \"noOfRecurrance\": \"0\",\n" + 728 + " \"306979949205\",\n" +
729 -// " \"notificationMessage\": \"None\",\n" + 729 + " \"306943134127\",\n" +
730 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 730 + " \"306970437794\",\n" +
731 -// " \"offerCode1\": \"000003612\",\n" + 731 + " \"306932535319\",\n" +
732 -// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + 732 + " \"306974063133\",\n" +
733 -// " \"postpayProduct\": \"0.0\",\n" + 733 + " \"306932520323\",\n" +
734 -// " \"price\": \"None\",\n" + 734 + " \"306978733823\",\n" +
735 -// " \"productType\": \"MOBILE ADDON\",\n" + 735 + " \"306985995420\",\n" +
736 -// " \"provDuration\": \"0.0\",\n" + 736 + " \"306983879555\",\n" +
737 -// " \"score\": \"50\",\n" + 737 + " ],\n" +
738 -// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + 738 + " \"id\": \"000003612\",\n" +
739 -// " \"validity\": \"0\",\n" + 739 + " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" +
740 -// " \"wave\": \"1\",\n" + 740 + " \"noOfRecurrance\": \"0\",\n" +
741 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 741 + " \"notificationMessage\": \"None\",\n" +
742 -// " },\n" + 742 + " \"offerAudienceLevel\": \"msisdn\",\n" +
743 -// " {\n" + 743 + " \"offerCode1\": \"000003612\",\n" +
744 -// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + 744 + " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" +
745 -// " \"businessAdditionalId\": \"\",\n" + 745 + " \"postpayProduct\": \"0.0\",\n" +
746 -// " \"dataCategory\": \"Data\",\n" + 746 + " \"price\": \"None\",\n" +
747 -// " \"dataValue\": \"None\",\n" + 747 + " \"productType\": \"MOBILE ADDON\",\n" +
748 -// " \"discount\": \"None\",\n" + 748 + " \"provDuration\": \"0.0\",\n" +
749 -// " \"eligibleAssets\": [\n" + 749 + " \"score\": \"50\",\n" +
750 -// " \"306945218770\",\n" + 750 + " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" +
751 -// " \"306944333488\",\n" + 751 + " \"validity\": \"0\",\n" +
752 -// " \"306932222490\",\n" + 752 + " \"wave\": \"1\",\n" +
753 -// " \"306996824010\",\n" + 753 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
754 -// " \"306972713201\",\n" + 754 + " \"title\": \"Test4\",\n" +
755 -// " \"306942496252\",\n" + 755 + " \"subtitle\": \"Test4\",\n" +
756 -// " \"306977316716\",\n" + 756 + " \"description\": \"Test4\",\n" +
757 -// " \"306945433100\",\n" + 757 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
758 -// " \"306977403986\",\n" + 758 + " },\n" +
759 -// " \"306936581495\",\n" + 759 + " {\n" +
760 -// " \"306980689662\",\n" + 760 + " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
761 -// " \"306970101490\",\n" + 761 + " \"businessAdditionalId\": \"\",\n" +
762 -// " \"306973396329\",\n" + 762 + " \"dataCategory\": \"Data\",\n" +
763 -// " \"306972577064\",\n" + 763 + " \"dataValue\": \"None\",\n" +
764 -// " \"306974923219\",\n" + 764 + " \"discount\": \"None\",\n" +
765 -// " \"306977513761\",\n" + 765 + " \"eligibleAssets\": [\n" +
766 -// " \"306984220987\",\n" + 766 + " \"306945218770\",\n" +
767 -// " \"306979949205\",\n" + 767 + " \"306944333488\",\n" +
768 -// " \"306943134127\",\n" + 768 + " \"306932222490\",\n" +
769 -// " \"306970437794\",\n" + 769 + " \"306996824010\",\n" +
770 -// " \"306932535319\",\n" + 770 + " \"306972713201\",\n" +
771 -// " \"306974063133\",\n" + 771 + " \"306942496252\",\n" +
772 -// " \"306932520323\",\n" + 772 + " \"306977316716\",\n" +
773 -// " \"306978733823\",\n" + 773 + " \"306945433100\",\n" +
774 -// " \"306985995420\",\n" + 774 + " \"306977403986\",\n" +
775 -// " \"306983879555\",\n" + 775 + " \"306936581495\",\n" +
776 -// " ],\n" + 776 + " \"306980689662\",\n" +
777 -// " \"id\": \"000003610\",\n" + 777 + " \"306970101490\",\n" +
778 -// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + 778 + " \"306973396329\",\n" +
779 -// " \"minsValue\": \"None\",\n" + 779 + " \"306972577064\",\n" +
780 -// " \"noOfRecurrance\": \"None\",\n" + 780 + " \"306974923219\",\n" +
781 -// " \"notificationMessage\": \"None\",\n" + 781 + " \"306977513761\",\n" +
782 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 782 + " \"306984220987\",\n" +
783 -// " \"offerCode1\": \"000003610\",\n" + 783 + " \"306979949205\",\n" +
784 -// " \"offerName\": \"CCMS loyalty more4u v1\",\n" + 784 + " \"306943134127\",\n" +
785 -// " \"price\": \"20\",\n" + 785 + " \"306970437794\",\n" +
786 -// " \"productType\": \"White Label\",\n" + 786 + " \"306932535319\",\n" +
787 -// " \"provDuration\": \"7.0\",\n" + 787 + " \"306974063133\",\n" +
788 -// " \"provStepValueMins\": \"None\",\n" + 788 + " \"306932520323\",\n" +
789 -// " \"score\": \"60\",\n" + 789 + " \"306978733823\",\n" +
790 -// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + 790 + " \"306985995420\",\n" +
791 -// " \"validity\": \"0\",\n" + 791 + " \"306983879555\",\n" +
792 -// " \"voiceCategory\": \"None\",\n" + 792 + " ],\n" +
793 -// " \"wave\": \"1\",\n" + 793 + " \"id\": \"000003610\",\n" +
794 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 794 + " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" +
795 -// " },\n" + 795 + " \"minsValue\": \"None\",\n" +
796 -// " {\n" + 796 + " \"noOfRecurrance\": \"None\",\n" +
797 -// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + 797 + " \"notificationMessage\": \"None\",\n" +
798 -// " \"businessAdditionalId\": \"\",\n" + 798 + " \"offerAudienceLevel\": \"msisdn\",\n" +
799 -// " \"businessService\": \"0.0\",\n" + 799 + " \"offerCode1\": \"000003610\",\n" +
800 -// " \"eligibleAssets\": [\n" + 800 + " \"offerName\": \"CCMS loyalty more4u v1\",\n" +
801 -// " \"306945218770\",\n" + 801 + " \"price\": \"20\",\n" +
802 -// " \"306944333488\",\n" + 802 + " \"productType\": \"White Label\",\n" +
803 -// " \"306932222490\",\n" + 803 + " \"provDuration\": \"7.0\",\n" +
804 -// " \"306996824010\",\n" + 804 + " \"provStepValueMins\": \"None\",\n" +
805 -// " \"306972713201\",\n" + 805 + " \"score\": \"60\",\n" +
806 -// " \"306942496252\",\n" + 806 + " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
807 -// " \"306977316716\",\n" + 807 + " \"validity\": \"0\",\n" +
808 -// " \"306945433100\",\n" + 808 + " \"voiceCategory\": \"None\",\n" +
809 -// " \"306977403986\",\n" + 809 + " \"wave\": \"1\",\n" +
810 -// " \"306936581495\",\n" + 810 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
811 -// " \"306980689662\",\n" + 811 + " \"title\": \"Test5\",\n" +
812 -// " \"306970101490\",\n" + 812 + " \"subtitle\": \"Test5\",\n" +
813 -// " \"306973396329\",\n" + 813 + " \"description\": \"Test5\",\n" +
814 -// " \"306972577064\",\n" + 814 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
815 -// " \"306974923219\",\n" + 815 + " },\n" +
816 -// " \"306977513761\",\n" + 816 + " {\n" +
817 -// " \"306984220987\",\n" + 817 + " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
818 -// " \"306979949205\",\n" + 818 + " \"businessAdditionalId\": \"\",\n" +
819 -// " \"306943134127\",\n" + 819 + " \"businessService\": \"0.0\",\n" +
820 -// " \"306970437794\",\n" + 820 + " \"eligibleAssets\": [\n" +
821 -// " \"306932535319\",\n" + 821 + " \"306945218770\",\n" +
822 -// " \"306974063133\",\n" + 822 + " \"306944333488\",\n" +
823 -// " \"306932520323\",\n" + 823 + " \"306932222490\",\n" +
824 -// " \"306978733823\",\n" + 824 + " \"306996824010\",\n" +
825 -// " \"306985995420\",\n" + 825 + " \"306972713201\",\n" +
826 -// " \"306983879555\",\n" + 826 + " \"306942496252\",\n" +
827 -// " ],\n" + 827 + " \"306977316716\",\n" +
828 -// " \"id\": \"000003614\",\n" + 828 + " \"306945433100\",\n" +
829 -// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + 829 + " \"306977403986\",\n" +
830 -// " \"noOfRecurrance\": \"0\",\n" + 830 + " \"306936581495\",\n" +
831 -// " \"notificationMessage\": \"None\",\n" + 831 + " \"306980689662\",\n" +
832 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 832 + " \"306970101490\",\n" +
833 -// " \"offerCode1\": \"000003614\",\n" + 833 + " \"306973396329\",\n" +
834 -// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + 834 + " \"306972577064\",\n" +
835 -// " \"postpayProduct\": \"0.0\",\n" + 835 + " \"306974923219\",\n" +
836 -// " \"price\": \"None\",\n" + 836 + " \"306977513761\",\n" +
837 -// " \"productType\": \"MOBILE ADDON\",\n" + 837 + " \"306984220987\",\n" +
838 -// " \"provDuration\": \"0.0\",\n" + 838 + " \"306979949205\",\n" +
839 -// " \"score\": \"50\",\n" + 839 + " \"306943134127\",\n" +
840 -// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + 840 + " \"306970437794\",\n" +
841 -// " \"validity\": \"0\",\n" + 841 + " \"306932535319\",\n" +
842 -// " \"wave\": \"1\",\n" + 842 + " \"306974063133\",\n" +
843 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 843 + " \"306932520323\",\n" +
844 -// " },\n" + 844 + " \"306978733823\",\n" +
845 -// " {\n" + 845 + " \"306985995420\",\n" +
846 -// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 846 + " \"306983879555\",\n" +
847 -// " \"businessAdditionalId\": \"\",\n" + 847 + " ],\n" +
848 -// " \"eligibleAssets\": [],\n" + 848 + " \"id\": \"000003614\",\n" +
849 -// " \"id\": \"000003586\",\n" + 849 + " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" +
850 -// " \"loyaltyCampaignId\": \"NA\",\n" + 850 + " \"noOfRecurrance\": \"0\",\n" +
851 -// " \"offerAudienceLevel\": \"guid\",\n" + 851 + " \"notificationMessage\": \"None\",\n" +
852 -// " \"offerCode1\": \"000003586\",\n" + 852 + " \"offerAudienceLevel\": \"msisdn\",\n" +
853 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 853 + " \"offerCode1\": \"000003614\",\n" +
854 -// " \"productType\": \"GENERIC\",\n" + 854 + " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" +
855 -// " \"score\": \"50\",\n" + 855 + " \"postpayProduct\": \"0.0\",\n" +
856 -// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 856 + " \"price\": \"None\",\n" +
857 -// " \"validity\": \"0\",\n" + 857 + " \"productType\": \"MOBILE ADDON\",\n" +
858 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 858 + " \"provDuration\": \"0.0\",\n" +
859 -// " },\n" + 859 + " \"score\": \"50\",\n" +
860 -// " {\n" + 860 + " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
861 -// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + 861 + " \"validity\": \"0\",\n" +
862 -// " \"businessAdditionalId\": \"\",\n" + 862 + " \"wave\": \"1\",\n" +
863 -// " \"eligibleAssets\": [],\n" + 863 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
864 -// " \"id\": \"000003595\",\n" + 864 + " \"title\": \"Test6\",\n" +
865 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 865 + " \"subtitle\": \"Test6\",\n" +
866 -// " \"offerAudienceLevel\": \"guid\",\n" + 866 + " \"description\": \"Test6\",\n" +
867 -// " \"offerCode1\": \"000003595\",\n" + 867 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
868 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 868 + " },\n" +
869 -// " \"productType\": \"GENERIC\",\n" + 869 + " {\n" +
870 -// " \"score\": \"50\",\n" + 870 + " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
871 -// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + 871 + " \"businessAdditionalId\": \"\",\n" +
872 -// " \"validity\": \"0\",\n" + 872 + " \"eligibleAssets\": [],\n" +
873 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 873 + " \"id\": \"000003586\",\n" +
874 -// " },\n" + 874 + " \"loyaltyCampaignId\": \"NA\",\n" +
875 -// " {\n" + 875 + " \"offerAudienceLevel\": \"guid\",\n" +
876 -// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + 876 + " \"offerCode1\": \"000003586\",\n" +
877 -// " \"businessAdditionalId\": \"\",\n" + 877 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
878 -// " \"eligibleAssets\": [],\n" + 878 + " \"productType\": \"GENERIC\",\n" +
879 -// " \"id\": \"000003595\",\n" + 879 + " \"score\": \"50\",\n" +
880 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 880 + " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
881 -// " \"offerAudienceLevel\": \"guid\",\n" + 881 + " \"validity\": \"0\",\n" +
882 -// " \"offerCode1\": \"000003595\",\n" + 882 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
883 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 883 + " },\n" +
884 -// " \"productType\": \"GENERIC\",\n" + 884 + " {\n" +
885 -// " \"score\": \"50\",\n" + 885 + " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
886 -// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + 886 + " \"businessAdditionalId\": \"\",\n" +
887 -// " \"validity\": \"0\",\n" + 887 + " \"eligibleAssets\": [],\n" +
888 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 888 + " \"id\": \"000003595\",\n" +
889 -// " },\n" + 889 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
890 -// " {\n" + 890 + " \"offerAudienceLevel\": \"guid\",\n" +
891 -// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 891 + " \"offerCode1\": \"000003595\",\n" +
892 -// " \"businessAdditionalId\": \"\",\n" + 892 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
893 -// " \"eligibleAssets\": [],\n" + 893 + " \"productType\": \"GENERIC\",\n" +
894 -// " \"id\": \"000003586\",\n" + 894 + " \"score\": \"50\",\n" +
895 -// " \"loyaltyCampaignId\": \"NA\",\n" + 895 + " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
896 -// " \"offerAudienceLevel\": \"guid\",\n" + 896 + " \"validity\": \"0\",\n" +
897 -// " \"offerCode1\": \"000003586\",\n" + 897 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
898 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 898 + " \"title\": \"Test7\",\n" +
899 -// " \"productType\": \"GENERIC\",\n" + 899 + " \"subtitle\": \"Test7\",\n" +
900 -// " \"score\": \"50\",\n" + 900 + " \"description\": \"Test7\",\n" +
901 -// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 901 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
902 -// " \"validity\": \"0\",\n" + 902 + " },\n" +
903 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 903 + " {\n" +
904 -// " },\n" + 904 + " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
905 -// " {\n" + 905 + " \"businessAdditionalId\": \"\",\n" +
906 -// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 906 + " \"eligibleAssets\": [],\n" +
907 -// " \"businessAdditionalId\": \"\",\n" + 907 + " \"id\": \"000003595\",\n" +
908 -// " \"eligibleAssets\": [],\n" + 908 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
909 -// " \"id\": \"000003586\",\n" + 909 + " \"offerAudienceLevel\": \"guid\",\n" +
910 -// " \"loyaltyCampaignId\": \"NA\",\n" + 910 + " \"offerCode1\": \"000003595\",\n" +
911 -// " \"offerAudienceLevel\": \"guid\",\n" + 911 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
912 -// " \"offerCode1\": \"000003586\",\n" + 912 + " \"productType\": \"GENERIC\",\n" +
913 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 913 + " \"score\": \"50\",\n" +
914 -// " \"productType\": \"GENERIC\",\n" + 914 + " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
915 -// " \"score\": \"50\",\n" + 915 + " \"validity\": \"0\",\n" +
916 -// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 916 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
917 -// " \"validity\": \"0\",\n" + 917 + " \"title\": \"Test8\",\n" +
918 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 918 + " \"subtitle\": \"Test8\",\n" +
919 -// " },\n" + 919 + " \"description\": \"Test8\",\n" +
920 -// " {\n" + 920 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
921 -// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + 921 + " },\n" +
922 -// " \"businessAdditionalId\": \"\",\n" + 922 + " {\n" +
923 -// " \"eligibleAssets\": [],\n" + 923 + " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
924 -// " \"id\": \"000003595\",\n" + 924 + " \"businessAdditionalId\": \"\",\n" +
925 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 925 + " \"eligibleAssets\": [],\n" +
926 -// " \"offerAudienceLevel\": \"guid\",\n" + 926 + " \"id\": \"000003586\",\n" +
927 -// " \"offerCode1\": \"000003595\",\n" + 927 + " \"loyaltyCampaignId\": \"NA\",\n" +
928 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 928 + " \"offerAudienceLevel\": \"guid\",\n" +
929 -// " \"productType\": \"GENERIC\",\n" + 929 + " \"offerCode1\": \"000003586\",\n" +
930 -// " \"score\": \"50\",\n" + 930 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
931 -// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + 931 + " \"productType\": \"GENERIC\",\n" +
932 -// " \"validity\": \"0\",\n" + 932 + " \"score\": \"50\",\n" +
933 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 933 + " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
934 -// " }\n" + 934 + " \"validity\": \"0\",\n" +
935 -// " ]"); 935 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
936 -// } catch (JSONException e) { 936 + " },\n" +
937 -// e.printStackTrace(); 937 + " {\n" +
938 -// } 938 + " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
939 -// if (jArray != null && jArray.length() > 0) { 939 + " \"businessAdditionalId\": \"\",\n" +
940 -// for (int i = 0; i < jArray.length(); i++) { 940 + " \"eligibleAssets\": [],\n" +
941 -// JSONObject jobj = new JSONObject(); 941 + " \"id\": \"000003586\",\n" +
942 -// jobj = jArray.optJSONObject(i); 942 + " \"loyaltyCampaignId\": \"NA\",\n" +
943 -// if (jobj != null) { 943 + " \"offerAudienceLevel\": \"guid\",\n" +
944 -// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); 944 + " \"offerCode1\": \"000003586\",\n" +
945 -// list.add(model); 945 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
946 -// } 946 + " \"productType\": \"GENERIC\",\n" +
947 -// } 947 + " \"score\": \"50\",\n" +
948 -// } 948 + " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
949 -// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); 949 + " \"validity\": \"0\",\n" +
950 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
951 + " },\n" +
952 + " {\n" +
953 + " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
954 + " \"businessAdditionalId\": \"\",\n" +
955 + " \"eligibleAssets\": [],\n" +
956 + " \"id\": \"000003595\",\n" +
957 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
958 + " \"offerAudienceLevel\": \"guid\",\n" +
959 + " \"offerCode1\": \"000003595\",\n" +
960 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
961 + " \"productType\": \"GENERIC\",\n" +
962 + " \"score\": \"50\",\n" +
963 + " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
964 + " \"validity\": \"0\",\n" +
965 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
966 + " \"title\": \"Test9\",\n" +
967 + " \"subtitle\": \"Test9\",\n" +
968 + " \"description\": \"Test9\",\n" +
969 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
970 + " }\n" +
971 + " ]");
972 + } catch (JSONException e) {
973 + e.printStackTrace();
974 + }
975 + if (jArray != null && jArray.length() > 0) {
976 + for (int i = 0; i < jArray.length(); i++) {
977 + JSONObject jobj = new JSONObject();
978 + jobj = jArray.optJSONObject(i);
979 + if (jobj != null) {
980 + LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj);
981 + list.add(model);
982 + }
983 + }
984 + }
985 + WarplyManagerHelper.setCCMSLoyaltyCampaigns(list);
986 +
950 if (result.size() >= 0) { 987 if (result.size() >= 0) {
951 objectSerializer.serialize(result, File.separator + requestSignature); 988 objectSerializer.serialize(result, File.separator + requestSignature);
952 warplyPreferences.saveInboxLastCachedTimeStamp(requestSignature, System.currentTimeMillis()); 989 warplyPreferences.saveInboxLastCachedTimeStamp(requestSignature, System.currentTimeMillis());
......
...@@ -71,7 +71,7 @@ public class BaseFragmentActivity extends FragmentActivity implements Navigation ...@@ -71,7 +71,7 @@ public class BaseFragmentActivity extends FragmentActivity implements Navigation
71 if (!Thread.currentThread().isInterrupted()) { 71 if (!Thread.currentThread().isInterrupted()) {
72 // WarplyManager.getConsumer(new WarplyConsumerRequest(), mConsumerReceiver); 72 // WarplyManager.getConsumer(new WarplyConsumerRequest(), mConsumerReceiver);
73 Warply.getInbox(new WarplyInboxRequest().setUseCache(false), mInboxReceiver); 73 Warply.getInbox(new WarplyInboxRequest().setUseCache(false), mInboxReceiver);
74 -// WarplyManager.getCampaigns(new WarplyGetCampaignsRequest().setLanguage("el"), mCampaignsCallback); 74 +// WarplyManager.getCampaigns(new WarplyGetCampaignsRequest().setLanguage("en"), mCampaignsCallback);
75 } 75 }
76 }).start(); 76 }).start();
77 } 77 }
......
...@@ -179,6 +179,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -179,6 +179,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
179 try { 179 try {
180 JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields()); 180 JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields());
181 if (extraFields != null) { 181 if (extraFields != null) {
182 + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
183 + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
184 + if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
185 + Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class);
186 + intent.putExtra("ccms", ccms);
187 + startActivity(intent);
188 + break;
189 + }
190 + }
191 + return;
192 + }
182 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { 193 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) {
183 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { 194 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
184 if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { 195 if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
...@@ -260,6 +271,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -260,6 +271,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
260 try { 271 try {
261 JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields()); 272 JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields());
262 if (extraFields != null) { 273 if (extraFields != null) {
274 + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
275 + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
276 + if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
277 + Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class);
278 + intent.putExtra("ccms", ccms);
279 + startActivity(intent);
280 + break;
281 + }
282 + }
283 + return;
284 + }
263 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { 285 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) {
264 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { 286 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
265 if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { 287 if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
......
1 package ly.warp.sdk.activities; 1 package ly.warp.sdk.activities;
2 2
3 import android.app.Activity; 3 import android.app.Activity;
4 +import android.content.Intent;
4 import android.os.Bundle; 5 import android.os.Bundle;
5 import android.util.Log; 6 import android.util.Log;
6 import android.view.View; 7 import android.view.View;
...@@ -122,6 +123,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener ...@@ -122,6 +123,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener
122 try { 123 try {
123 JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); 124 JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields());
124 if (extraFields != null) { 125 if (extraFields != null) {
126 + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
127 + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
128 + if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
129 + Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class);
130 + intent.putExtra("ccms", ccms);
131 + startActivity(intent);
132 + break;
133 + }
134 + }
135 + return;
136 + }
125 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { 137 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) {
126 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { 138 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
127 if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { 139 if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
...@@ -172,6 +184,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener ...@@ -172,6 +184,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener
172 try { 184 try {
173 JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); 185 JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields());
174 if (extraFields != null) { 186 if (extraFields != null) {
187 + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
188 + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
189 + if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
190 + Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class);
191 + intent.putExtra("ccms", ccms);
192 + startActivity(intent);
193 + break;
194 + }
195 + }
196 + return;
197 + }
175 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { 198 if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) {
176 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { 199 for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
177 if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { 200 if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
......
1 +package ly.warp.sdk.activities;
2 +
3 +import android.app.Activity;
4 +import android.os.Bundle;
5 +import android.text.TextUtils;
6 +import android.view.View;
7 +import android.widget.ImageView;
8 +import android.widget.LinearLayout;
9 +import android.widget.TextView;
10 +
11 +import com.bumptech.glide.Glide;
12 +import com.bumptech.glide.load.engine.DiskCacheStrategy;
13 +
14 +import ly.warp.sdk.R;
15 +import ly.warp.sdk.io.models.LoyaltyContextualOfferModel;
16 +
17 +
18 +public class TelcoActivity extends Activity implements View.OnClickListener {
19 +
20 + // ===========================================================
21 + // Constants
22 + // ===========================================================
23 +
24 + // ===========================================================
25 + // Fields
26 + // ===========================================================
27 +
28 + private ImageView mIvBack, mIvCampaignPhoto;
29 + private TextView mTvCampaignTitle, mTvCampaignSubtitle;
30 + private LoyaltyContextualOfferModel mCCMS;
31 + private LinearLayout mLlActivateOffer;
32 +
33 + // ===========================================================
34 + // Methods for/from SuperClass/Interfaces
35 + // ===========================================================
36 +
37 + @Override
38 + public void onCreate(Bundle savedInstanceState) {
39 + super.onCreate(savedInstanceState);
40 + setContentView(R.layout.activity_telco);
41 +
42 + mCCMS = (LoyaltyContextualOfferModel) getIntent().getSerializableExtra("ccms");
43 +
44 + mIvBack = findViewById(R.id.iv_telco_back);
45 + mTvCampaignTitle = findViewById(R.id.textView13);
46 + mIvCampaignPhoto = findViewById(R.id.imageView6);
47 + mTvCampaignSubtitle = findViewById(R.id.textView14);
48 + mLlActivateOffer = findViewById(R.id.ll_activate_button);
49 +
50 + initViews();
51 + }
52 +
53 + @Override
54 + public void onResume() {
55 + super.onResume();
56 + }
57 +
58 + @Override
59 + public void onClick(View view) {
60 + if (view.getId() == R.id.iv_telco_back) {
61 + onBackPressed();
62 + return;
63 + }
64 + if (view.getId() == R.id.ll_activate_button) {
65 + //TODO: make submitOrder
66 + }
67 + }
68 +
69 + // ===========================================================
70 + // Methods
71 + // ===========================================================
72 +
73 + private void initViews() {
74 + mTvCampaignTitle.setText(mCCMS.getTitle());
75 + mTvCampaignSubtitle.setText(mCCMS.getSubtitle());
76 +
77 + if (!TextUtils.isEmpty(mCCMS.getImageUrl())) {
78 + Glide.with(this)
79 +// .setDefaultRequestOptions(
80 +// RequestOptions
81 +// .placeholderOf(R.drawable.ic_default_contact_photo)
82 +// .error(R.drawable.ic_default_contact_photo))
83 + .load(mCCMS.getImageUrl())
84 + .diskCacheStrategy(DiskCacheStrategy.DATA)
85 + .into(mIvCampaignPhoto);
86 + } else {
87 + Glide.with(this)
88 + .load(R.drawable.ic_cosmote_logo_horizontal_grey)
89 + .into(mIvCampaignPhoto);
90 + }
91 + mIvBack.setOnClickListener(this);
92 + mLlActivateOffer.setOnClickListener(this);
93 + }
94 +
95 + // ===========================================================
96 + // Inner and Anonymous Classes
97 + // ===========================================================
98 +
99 +}
...@@ -3,13 +3,14 @@ package ly.warp.sdk.io.models; ...@@ -3,13 +3,14 @@ package ly.warp.sdk.io.models;
3 import org.json.JSONArray; 3 import org.json.JSONArray;
4 import org.json.JSONObject; 4 import org.json.JSONObject;
5 5
6 +import java.io.Serializable;
6 import java.util.ArrayList; 7 import java.util.ArrayList;
7 8
8 /** 9 /**
9 * Created by Panagiotis Triantafyllou on 20/Απρ/2022. 10 * Created by Panagiotis Triantafyllou on 20/Απρ/2022.
10 */ 11 */
11 12
12 -public class LoyaltyContextualOfferModel { 13 +public class LoyaltyContextualOfferModel implements Serializable {
13 private String sessionId; 14 private String sessionId;
14 private ArrayList<String> eligibleAssets; 15 private ArrayList<String> eligibleAssets;
15 private String id; 16 private String id;
...@@ -115,6 +116,10 @@ public class LoyaltyContextualOfferModel { ...@@ -115,6 +116,10 @@ public class LoyaltyContextualOfferModel {
115 this.wave = jobj.optString("wave"); 116 this.wave = jobj.optString("wave");
116 this.validity = jobj.optString("validity"); 117 this.validity = jobj.optString("validity");
117 this.offerAudienceLevel = jobj.optString("offerAudienceLevel"); 118 this.offerAudienceLevel = jobj.optString("offerAudienceLevel");
119 + this.imageUrl = jobj.optString("imageUrl");
120 + this.title = jobj.optString("title");
121 + this.subtitle = jobj.optString("subtitle");
122 + this.description = jobj.optString("description");
118 } 123 }
119 } 124 }
120 125
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 25
26 package ly.warp.sdk.utils.managers; 26 package ly.warp.sdk.utils.managers;
27 27
28 +import org.json.JSONArray;
28 import org.json.JSONException; 29 import org.json.JSONException;
29 import org.json.JSONObject; 30 import org.json.JSONObject;
30 31
...@@ -60,6 +61,7 @@ import ly.warp.sdk.io.models.Coupon; ...@@ -60,6 +61,7 @@ import ly.warp.sdk.io.models.Coupon;
60 import ly.warp.sdk.io.models.CouponList; 61 import ly.warp.sdk.io.models.CouponList;
61 import ly.warp.sdk.io.models.Couponset; 62 import ly.warp.sdk.io.models.Couponset;
62 import ly.warp.sdk.io.models.CouponsetsList; 63 import ly.warp.sdk.io.models.CouponsetsList;
64 +import ly.warp.sdk.io.models.LoyaltyContextualOfferModel;
63 import ly.warp.sdk.io.models.MerchantCategoriesList; 65 import ly.warp.sdk.io.models.MerchantCategoriesList;
64 import ly.warp.sdk.io.models.MerchantList; 66 import ly.warp.sdk.io.models.MerchantList;
65 import ly.warp.sdk.io.models.NewCampaign; 67 import ly.warp.sdk.io.models.NewCampaign;
...@@ -1394,6 +1396,512 @@ public class WarplyManager { ...@@ -1394,6 +1396,512 @@ public class WarplyManager {
1394 tempCampaigns.add(camp); 1396 tempCampaigns.add(camp);
1395 } 1397 }
1396 WarplyManagerHelper.setCampaignList(tempCampaigns); 1398 WarplyManagerHelper.setCampaignList(tempCampaigns);
1399 +
1400 + ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>();
1401 + JSONArray jArray = null;
1402 + try {
1403 + jArray = new JSONArray("[\n" +
1404 + " {\n" +
1405 + " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
1406 + " \"businessAdditionalId\": \"\",\n" +
1407 + " \"dataCategory\": \"Data\",\n" +
1408 + " \"dataValue\": \"None\",\n" +
1409 + " \"discount\": \"None\",\n" +
1410 + " \"eligibleAssets\": [\n" +
1411 + " \"306945218770\",\n" +
1412 + " \"306944333488\",\n" +
1413 + " \"306932222490\",\n" +
1414 + " \"306996824010\",\n" +
1415 + " \"306972713201\",\n" +
1416 + " \"306942496252\",\n" +
1417 + " \"306977316716\",\n" +
1418 + " \"306945433100\",\n" +
1419 + " \"306977403986\",\n" +
1420 + " \"306936581495\",\n" +
1421 + " \"306980689662\",\n" +
1422 + " \"306970101490\",\n" +
1423 + " \"306973396329\",\n" +
1424 + " \"306972577064\",\n" +
1425 + " \"306974923219\",\n" +
1426 + " \"306977513761\",\n" +
1427 + " \"306984220987\",\n" +
1428 + " \"306979949205\",\n" +
1429 + " \"306943134127\",\n" +
1430 + " \"306970437794\",\n" +
1431 + " \"306932535319\",\n" +
1432 + " \"306974063133\",\n" +
1433 + " \"306932520323\",\n" +
1434 + " \"306978733823\",\n" +
1435 + " \"306985995420\",\n" +
1436 + " \"306983879555\",\n" +
1437 + " ],\n" +
1438 + " \"id\": \"000003590\",\n" +
1439 + " \"loyaltyCampaignId\": \"NA\",\n" +
1440 + " \"minsValue\": \"None\",\n" +
1441 + " \"noOfRecurrance\": \"None\",\n" +
1442 + " \"notificationMessage\": \"None\",\n" +
1443 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1444 + " \"offerCode1\": \"000003590\",\n" +
1445 + " \"offerName\": \"CCMS loyalty white label\",\n" +
1446 + " \"price\": \"None\",\n" +
1447 + " \"productType\": \"White Label\",\n" +
1448 + " \"provDuration\": \"0.0\",\n" +
1449 + " \"provStepValueMins\": \"None\",\n" +
1450 + " \"score\": \"50\",\n" +
1451 + " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
1452 + " \"validity\": \"0\",\n" +
1453 + " \"voiceCategory\": \"None\",\n" +
1454 + " \"wave\": \"1\",\n" +
1455 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1456 + " },\n" +
1457 + " {\n" +
1458 + " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
1459 + " \"businessAdditionalId\": \"\",\n" +
1460 + " \"dataCategory\": \"Data\",\n" +
1461 + " \"dataValue\": \"None\",\n" +
1462 + " \"discount\": \"None\",\n" +
1463 + " \"eligibleAssets\": [\n" +
1464 + " \"306945218770\",\n" +
1465 + " \"306944333488\",\n" +
1466 + " \"306932222490\",\n" +
1467 + " \"306996824010\",\n" +
1468 + " \"306972713201\",\n" +
1469 + " \"306942496252\",\n" +
1470 + " \"306977316716\",\n" +
1471 + " \"306945433100\",\n" +
1472 + " \"306977403986\",\n" +
1473 + " \"306936581495\",\n" +
1474 + " \"306980689662\",\n" +
1475 + " \"306970101490\",\n" +
1476 + " \"306973396329\",\n" +
1477 + " \"306972577064\",\n" +
1478 + " \"306974923219\",\n" +
1479 + " \"306977513761\",\n" +
1480 + " \"306984220987\",\n" +
1481 + " \"306979949205\",\n" +
1482 + " \"306943134127\",\n" +
1483 + " \"306970437794\",\n" +
1484 + " \"306932535319\",\n" +
1485 + " \"306974063133\",\n" +
1486 + " \"306932520323\",\n" +
1487 + " \"306978733823\",\n" +
1488 + " \"306985995420\",\n" +
1489 + " \"306983879555\",\n" +
1490 + " ],\n" +
1491 + " \"id\": \"000003599\",\n" +
1492 + " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d
1493 + " \"minsValue\": \"None\",\n" +
1494 + " \"noOfRecurrance\": \"None\",\n" +
1495 + " \"notificationMessage\": \"None\",\n" +
1496 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1497 + " \"offerCode1\": \"000003599\",\n" +
1498 + " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" +
1499 + " \"price\": \"None\",\n" +
1500 + " \"productType\": \"White Label\",\n" +
1501 + " \"provDuration\": \"0.0\",\n" +
1502 + " \"provStepValueMins\": \"None\",\n" +
1503 + " \"score\": \"50\",\n" +
1504 + " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
1505 + " \"validity\": \"0\",\n" +
1506 + " \"voiceCategory\": \"None\",\n" +
1507 + " \"wave\": \"1\",\n" +
1508 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1509 + " \"title\": \"Test1\",\n" +
1510 + " \"subtitle\": \"Test1\",\n" +
1511 + " \"description\": \"Test1\",\n" +
1512 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1513 + " },\n" +
1514 + " {\n" +
1515 + " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
1516 + " \"businessAdditionalId\": \"\",\n" +
1517 + " \"businessService\": \"0.0\",\n" +
1518 + " \"eligibleAssets\": [\n" +
1519 + " \"306945218770\",\n" +
1520 + " \"306944333488\",\n" +
1521 + " \"306932222490\",\n" +
1522 + " \"306996824010\",\n" +
1523 + " \"306972713201\",\n" +
1524 + " \"306942496252\",\n" +
1525 + " \"306977316716\",\n" +
1526 + " \"306945433100\",\n" +
1527 + " \"306977403986\",\n" +
1528 + " \"306936581495\",\n" +
1529 + " \"306980689662\",\n" +
1530 + " \"306970101490\",\n" +
1531 + " \"306973396329\",\n" +
1532 + " \"306972577064\",\n" +
1533 + " \"306974923219\",\n" +
1534 + " \"306977513761\",\n" +
1535 + " \"306984220987\",\n" +
1536 + " \"306979949205\",\n" +
1537 + " \"306943134127\",\n" +
1538 + " \"306970437794\",\n" +
1539 + " \"306932535319\",\n" +
1540 + " \"306974063133\",\n" +
1541 + " \"306932520323\",\n" +
1542 + " \"306978733823\",\n" +
1543 + " \"306985995420\",\n" +
1544 + " \"306983879555\",\n" +
1545 + " ],\n" +
1546 + " \"id\": \"000003588\",\n" +
1547 + " \"loyaltyCampaignId\": \"NA\",\n" +
1548 + " \"noOfRecurrance\": \"0\",\n" +
1549 + " \"notificationMessage\": \"None\",\n" +
1550 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1551 + " \"offerCode1\": \"000003588\",\n" +
1552 + " \"offerName\": \"CCMS loyalty postpay addon\",\n" +
1553 + " \"postpayProduct\": \"0.0\",\n" +
1554 + " \"price\": \"None\",\n" +
1555 + " \"productType\": \"MOBILE ADDON\",\n" +
1556 + " \"provDuration\": \"0.0\",\n" +
1557 + " \"score\": \"50\",\n" +
1558 + " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
1559 + " \"validity\": \"0\",\n" +
1560 + " \"wave\": \"1\",\n" +
1561 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1562 + " \"title\": \"Test2\",\n" +
1563 + " \"subtitle\": \"Test2\",\n" +
1564 + " \"description\": \"Test2\",\n" +
1565 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1566 + " },\n" +
1567 + " {\n" +
1568 + " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
1569 + " \"businessAdditionalId\": \"\",\n" +
1570 + " \"dataCategory\": \"Data\",\n" +
1571 + " \"dataValue\": \"None\",\n" +
1572 + " \"discount\": \"None\",\n" +
1573 + " \"eligibleAssets\": [\n" +
1574 + " \"306945218770\",\n" +
1575 + " \"306944333488\",\n" +
1576 + " \"306932222490\",\n" +
1577 + " \"306996824010\",\n" +
1578 + " \"306972713201\",\n" +
1579 + " \"306942496252\",\n" +
1580 + " \"306977316716\",\n" +
1581 + " \"306945433100\",\n" +
1582 + " \"306977403986\",\n" +
1583 + " \"306936581495\",\n" +
1584 + " \"306980689662\",\n" +
1585 + " \"306970101490\",\n" +
1586 + " \"306973396329\",\n" +
1587 + " \"306972577064\",\n" +
1588 + " \"306974923219\",\n" +
1589 + " \"306977513761\",\n" +
1590 + " \"306984220987\",\n" +
1591 + " \"306979949205\",\n" +
1592 + " \"306943134127\",\n" +
1593 + " \"306970437794\",\n" +
1594 + " \"306932535319\",\n" +
1595 + " \"306974063133\",\n" +
1596 + " \"306932520323\",\n" +
1597 + " \"306978733823\",\n" +
1598 + " \"306985995420\",\n" +
1599 + " \"306983879555\",\n" +
1600 + " ],\n" +
1601 + " \"id\": \"000003608\",\n" +
1602 + " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" +
1603 + " \"minsValue\": \"None\",\n" +
1604 + " \"noOfRecurrance\": \"None\",\n" +
1605 + " \"notificationMessage\": \"None\",\n" +
1606 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1607 + " \"offerCode1\": \"000003608\",\n" +
1608 + " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" +
1609 + " \"price\": \"None\",\n" +
1610 + " \"productType\": \"White Label\",\n" +
1611 + " \"provDuration\": \"0.0\",\n" +
1612 + " \"provStepValueMins\": \"None\",\n" +
1613 + " \"score\": \"50\",\n" +
1614 + " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
1615 + " \"validity\": \"0\",\n" +
1616 + " \"voiceCategory\": \"None\",\n" +
1617 + " \"wave\": \"1\",\n" +
1618 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1619 + " \"title\": \"Test3\",\n" +
1620 + " \"subtitle\": \"Test3\",\n" +
1621 + " \"description\": \"Test3\",\n" +
1622 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1623 + " },\n" +
1624 + " {\n" +
1625 + " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
1626 + " \"businessAdditionalId\": \"\",\n" +
1627 + " \"businessService\": \"0.0\",\n" +
1628 + " \"eligibleAssets\": [\n" +
1629 + " \"306945218770\",\n" +
1630 + " \"306944333488\",\n" +
1631 + " \"306932222490\",\n" +
1632 + " \"306996824010\",\n" +
1633 + " \"306972713201\",\n" +
1634 + " \"306942496252\",\n" +
1635 + " \"306977316716\",\n" +
1636 + " \"306945433100\",\n" +
1637 + " \"306977403986\",\n" +
1638 + " \"306936581495\",\n" +
1639 + " \"306980689662\",\n" +
1640 + " \"306970101490\",\n" +
1641 + " \"306973396329\",\n" +
1642 + " \"306972577064\",\n" +
1643 + " \"306974923219\",\n" +
1644 + " \"306977513761\",\n" +
1645 + " \"306984220987\",\n" +
1646 + " \"306979949205\",\n" +
1647 + " \"306943134127\",\n" +
1648 + " \"306970437794\",\n" +
1649 + " \"306932535319\",\n" +
1650 + " \"306974063133\",\n" +
1651 + " \"306932520323\",\n" +
1652 + " \"306978733823\",\n" +
1653 + " \"306985995420\",\n" +
1654 + " \"306983879555\",\n" +
1655 + " ],\n" +
1656 + " \"id\": \"000003612\",\n" +
1657 + " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" +
1658 + " \"noOfRecurrance\": \"0\",\n" +
1659 + " \"notificationMessage\": \"None\",\n" +
1660 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1661 + " \"offerCode1\": \"000003612\",\n" +
1662 + " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" +
1663 + " \"postpayProduct\": \"0.0\",\n" +
1664 + " \"price\": \"None\",\n" +
1665 + " \"productType\": \"MOBILE ADDON\",\n" +
1666 + " \"provDuration\": \"0.0\",\n" +
1667 + " \"score\": \"50\",\n" +
1668 + " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" +
1669 + " \"validity\": \"0\",\n" +
1670 + " \"wave\": \"1\",\n" +
1671 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1672 + " \"title\": \"Test4\",\n" +
1673 + " \"subtitle\": \"Test4\",\n" +
1674 + " \"description\": \"Test4\",\n" +
1675 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1676 + " },\n" +
1677 + " {\n" +
1678 + " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
1679 + " \"businessAdditionalId\": \"\",\n" +
1680 + " \"dataCategory\": \"Data\",\n" +
1681 + " \"dataValue\": \"None\",\n" +
1682 + " \"discount\": \"None\",\n" +
1683 + " \"eligibleAssets\": [\n" +
1684 + " \"306945218770\",\n" +
1685 + " \"306944333488\",\n" +
1686 + " \"306932222490\",\n" +
1687 + " \"306996824010\",\n" +
1688 + " \"306972713201\",\n" +
1689 + " \"306942496252\",\n" +
1690 + " \"306977316716\",\n" +
1691 + " \"306945433100\",\n" +
1692 + " \"306977403986\",\n" +
1693 + " \"306936581495\",\n" +
1694 + " \"306980689662\",\n" +
1695 + " \"306970101490\",\n" +
1696 + " \"306973396329\",\n" +
1697 + " \"306972577064\",\n" +
1698 + " \"306974923219\",\n" +
1699 + " \"306977513761\",\n" +
1700 + " \"306984220987\",\n" +
1701 + " \"306979949205\",\n" +
1702 + " \"306943134127\",\n" +
1703 + " \"306970437794\",\n" +
1704 + " \"306932535319\",\n" +
1705 + " \"306974063133\",\n" +
1706 + " \"306932520323\",\n" +
1707 + " \"306978733823\",\n" +
1708 + " \"306985995420\",\n" +
1709 + " \"306983879555\",\n" +
1710 + " ],\n" +
1711 + " \"id\": \"000003610\",\n" +
1712 + " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" +
1713 + " \"minsValue\": \"None\",\n" +
1714 + " \"noOfRecurrance\": \"None\",\n" +
1715 + " \"notificationMessage\": \"None\",\n" +
1716 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1717 + " \"offerCode1\": \"000003610\",\n" +
1718 + " \"offerName\": \"CCMS loyalty more4u v1\",\n" +
1719 + " \"price\": \"20\",\n" +
1720 + " \"productType\": \"White Label\",\n" +
1721 + " \"provDuration\": \"7.0\",\n" +
1722 + " \"provStepValueMins\": \"None\",\n" +
1723 + " \"score\": \"60\",\n" +
1724 + " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
1725 + " \"validity\": \"0\",\n" +
1726 + " \"voiceCategory\": \"None\",\n" +
1727 + " \"wave\": \"1\",\n" +
1728 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1729 + " \"title\": \"Test5\",\n" +
1730 + " \"subtitle\": \"Test5\",\n" +
1731 + " \"description\": \"Test5\",\n" +
1732 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1733 + " },\n" +
1734 + " {\n" +
1735 + " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
1736 + " \"businessAdditionalId\": \"\",\n" +
1737 + " \"businessService\": \"0.0\",\n" +
1738 + " \"eligibleAssets\": [\n" +
1739 + " \"306945218770\",\n" +
1740 + " \"306944333488\",\n" +
1741 + " \"306932222490\",\n" +
1742 + " \"306996824010\",\n" +
1743 + " \"306972713201\",\n" +
1744 + " \"306942496252\",\n" +
1745 + " \"306977316716\",\n" +
1746 + " \"306945433100\",\n" +
1747 + " \"306977403986\",\n" +
1748 + " \"306936581495\",\n" +
1749 + " \"306980689662\",\n" +
1750 + " \"306970101490\",\n" +
1751 + " \"306973396329\",\n" +
1752 + " \"306972577064\",\n" +
1753 + " \"306974923219\",\n" +
1754 + " \"306977513761\",\n" +
1755 + " \"306984220987\",\n" +
1756 + " \"306979949205\",\n" +
1757 + " \"306943134127\",\n" +
1758 + " \"306970437794\",\n" +
1759 + " \"306932535319\",\n" +
1760 + " \"306974063133\",\n" +
1761 + " \"306932520323\",\n" +
1762 + " \"306978733823\",\n" +
1763 + " \"306985995420\",\n" +
1764 + " \"306983879555\",\n" +
1765 + " ],\n" +
1766 + " \"id\": \"000003614\",\n" +
1767 + " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" +
1768 + " \"noOfRecurrance\": \"0\",\n" +
1769 + " \"notificationMessage\": \"None\",\n" +
1770 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1771 + " \"offerCode1\": \"000003614\",\n" +
1772 + " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" +
1773 + " \"postpayProduct\": \"0.0\",\n" +
1774 + " \"price\": \"None\",\n" +
1775 + " \"productType\": \"MOBILE ADDON\",\n" +
1776 + " \"provDuration\": \"0.0\",\n" +
1777 + " \"score\": \"50\",\n" +
1778 + " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
1779 + " \"validity\": \"0\",\n" +
1780 + " \"wave\": \"1\",\n" +
1781 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1782 + " \"title\": \"Test6\",\n" +
1783 + " \"subtitle\": \"Test6\",\n" +
1784 + " \"description\": \"Test6\",\n" +
1785 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1786 + " },\n" +
1787 + " {\n" +
1788 + " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1789 + " \"businessAdditionalId\": \"\",\n" +
1790 + " \"eligibleAssets\": [],\n" +
1791 + " \"id\": \"000003586\",\n" +
1792 + " \"loyaltyCampaignId\": \"NA\",\n" +
1793 + " \"offerAudienceLevel\": \"guid\",\n" +
1794 + " \"offerCode1\": \"000003586\",\n" +
1795 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1796 + " \"productType\": \"GENERIC\",\n" +
1797 + " \"score\": \"50\",\n" +
1798 + " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1799 + " \"validity\": \"0\",\n" +
1800 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1801 + " },\n" +
1802 + " {\n" +
1803 + " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
1804 + " \"businessAdditionalId\": \"\",\n" +
1805 + " \"eligibleAssets\": [],\n" +
1806 + " \"id\": \"000003595\",\n" +
1807 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1808 + " \"offerAudienceLevel\": \"guid\",\n" +
1809 + " \"offerCode1\": \"000003595\",\n" +
1810 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1811 + " \"productType\": \"GENERIC\",\n" +
1812 + " \"score\": \"50\",\n" +
1813 + " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
1814 + " \"validity\": \"0\",\n" +
1815 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1816 + " \"title\": \"Test7\",\n" +
1817 + " \"subtitle\": \"Test7\",\n" +
1818 + " \"description\": \"Test7\",\n" +
1819 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1820 + " },\n" +
1821 + " {\n" +
1822 + " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
1823 + " \"businessAdditionalId\": \"\",\n" +
1824 + " \"eligibleAssets\": [],\n" +
1825 + " \"id\": \"000003595\",\n" +
1826 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1827 + " \"offerAudienceLevel\": \"guid\",\n" +
1828 + " \"offerCode1\": \"000003595\",\n" +
1829 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1830 + " \"productType\": \"GENERIC\",\n" +
1831 + " \"score\": \"50\",\n" +
1832 + " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
1833 + " \"validity\": \"0\",\n" +
1834 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1835 + " \"title\": \"Test8\",\n" +
1836 + " \"subtitle\": \"Test8\",\n" +
1837 + " \"description\": \"Test8\",\n" +
1838 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1839 + " },\n" +
1840 + " {\n" +
1841 + " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1842 + " \"businessAdditionalId\": \"\",\n" +
1843 + " \"eligibleAssets\": [],\n" +
1844 + " \"id\": \"000003586\",\n" +
1845 + " \"loyaltyCampaignId\": \"NA\",\n" +
1846 + " \"offerAudienceLevel\": \"guid\",\n" +
1847 + " \"offerCode1\": \"000003586\",\n" +
1848 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1849 + " \"productType\": \"GENERIC\",\n" +
1850 + " \"score\": \"50\",\n" +
1851 + " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1852 + " \"validity\": \"0\",\n" +
1853 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1854 + " },\n" +
1855 + " {\n" +
1856 + " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1857 + " \"businessAdditionalId\": \"\",\n" +
1858 + " \"eligibleAssets\": [],\n" +
1859 + " \"id\": \"000003586\",\n" +
1860 + " \"loyaltyCampaignId\": \"NA\",\n" +
1861 + " \"offerAudienceLevel\": \"guid\",\n" +
1862 + " \"offerCode1\": \"000003586\",\n" +
1863 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1864 + " \"productType\": \"GENERIC\",\n" +
1865 + " \"score\": \"50\",\n" +
1866 + " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1867 + " \"validity\": \"0\",\n" +
1868 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1869 + " },\n" +
1870 + " {\n" +
1871 + " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
1872 + " \"businessAdditionalId\": \"\",\n" +
1873 + " \"eligibleAssets\": [],\n" +
1874 + " \"id\": \"000003595\",\n" +
1875 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1876 + " \"offerAudienceLevel\": \"guid\",\n" +
1877 + " \"offerCode1\": \"000003595\",\n" +
1878 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1879 + " \"productType\": \"GENERIC\",\n" +
1880 + " \"score\": \"50\",\n" +
1881 + " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
1882 + " \"validity\": \"0\",\n" +
1883 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1884 + " \"title\": \"Test9\",\n" +
1885 + " \"subtitle\": \"Test9\",\n" +
1886 + " \"description\": \"Test9\",\n" +
1887 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1888 + " }\n" +
1889 + " ]");
1890 + } catch (JSONException e) {
1891 + e.printStackTrace();
1892 + }
1893 + if (jArray != null && jArray.length() > 0) {
1894 + for (int i = 0; i < jArray.length(); i++) {
1895 + JSONObject jobj = new JSONObject();
1896 + jobj = jArray.optJSONObject(i);
1897 + if (jobj != null) {
1898 + LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj);
1899 + list.add(model);
1900 + }
1901 + }
1902 + }
1903 + WarplyManagerHelper.setCCMSLoyaltyCampaigns(list);
1904 +
1397 receiver.onSuccess(result); 1905 receiver.onSuccess(result);
1398 } 1906 }
1399 1907
......
...@@ -129,7 +129,7 @@ public class ActiveCouponAdapter extends RecyclerView.Adapter<ActiveCouponAdapte ...@@ -129,7 +129,7 @@ public class ActiveCouponAdapter extends RecyclerView.Adapter<ActiveCouponAdapte
129 else 129 else
130 holder.tvCouponDate.setText(String.format(mContext.getString(R.string.cos_coupon_date), simpleDateFormat.format(newDate != null ? newDate : ""))); 130 holder.tvCouponDate.setText(String.format(mContext.getString(R.string.cos_coupon_date), simpleDateFormat.format(newDate != null ? newDate : "")));
131 131
132 - holder.tvCouponValue.setText(couponItem.getDiscount()); 132 + holder.tvCouponValue.setText(couponItem.getDiscount() + mContext.getResources().getString(R.string.euro));
133 holder.itemView.setOnClickListener(v -> onClickSubject.onNext(couponItem)); 133 holder.itemView.setOnClickListener(v -> onClickSubject.onNext(couponItem));
134 } 134 }
135 } 135 }
......
1 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 + xmlns:app="http://schemas.android.com/apk/res-auto"
3 + xmlns:tools="http://schemas.android.com/tools"
4 + android:layout_width="match_parent"
5 + android:layout_height="match_parent"
6 + android:background="@android:color/white">
7 +
8 + <androidx.constraintlayout.widget.ConstraintLayout
9 + android:id="@+id/cl_loyalty_wallet_header"
10 + android:layout_width="match_parent"
11 + android:layout_height="50dp"
12 + android:background="@android:color/white">
13 +
14 + <ImageView
15 + android:id="@+id/iv_telco_back"
16 + android:layout_width="20dp"
17 + android:layout_height="20dp"
18 + android:layout_marginStart="16dp"
19 + android:src="@drawable/ic_back"
20 + app:layout_constraintBottom_toBottomOf="parent"
21 + app:layout_constraintStart_toStartOf="parent"
22 + app:layout_constraintTop_toTopOf="parent" />
23 +
24 + <TextView
25 + android:layout_width="wrap_content"
26 + android:layout_height="wrap_content"
27 + android:textColor="@color/grey"
28 + android:textSize="17sp"
29 + android:textStyle="bold"
30 + app:layout_constraintBottom_toBottomOf="parent"
31 + app:layout_constraintEnd_toEndOf="parent"
32 + app:layout_constraintStart_toStartOf="parent"
33 + app:layout_constraintTop_toTopOf="parent" />
34 + </androidx.constraintlayout.widget.ConstraintLayout>
35 +
36 + <ScrollView
37 + android:layout_width="match_parent"
38 + android:layout_height="match_parent"
39 + android:fillViewport="true"
40 + android:layout_below="@+id/cl_loyalty_wallet_header">
41 +
42 + <androidx.constraintlayout.widget.ConstraintLayout
43 + android:layout_width="match_parent"
44 + android:layout_height="match_parent"
45 + android:background="@android:color/white">
46 +
47 + <androidx.constraintlayout.widget.ConstraintLayout
48 + android:id="@+id/cl_loyalty_info_view_inner"
49 + android:layout_width="match_parent"
50 + android:layout_height="match_parent"
51 + android:background="@drawable/shape_cos_loyalty_white"
52 + android:paddingBottom="48dp"
53 + app:layout_constraintEnd_toEndOf="parent"
54 + app:layout_constraintStart_toStartOf="parent"
55 + app:layout_constraintTop_toTopOf="parent">
56 +
57 + <com.github.siyamed.shapeimageview.mask.PorterShapeImageView
58 + android:id="@+id/imageView6"
59 + android:layout_width="match_parent"
60 + android:layout_height="224dp"
61 + android:layout_marginTop="4dp"
62 + android:scaleType="centerCrop"
63 + app:layout_constraintStart_toStartOf="parent"
64 + app:layout_constraintTop_toTopOf="parent"
65 + app:siShape="@drawable/shape_top_left_rounded"
66 + tools:src="@drawable/carousel_banner" />
67 +
68 + <TextView
69 + android:id="@+id/textView13"
70 + android:layout_width="match_parent"
71 + android:layout_height="wrap_content"
72 + android:layout_marginTop="32dp"
73 + android:gravity="center"
74 + android:paddingHorizontal="32dp"
75 + android:textColor="#415564"
76 + android:textSize="18sp"
77 + android:textStyle="bold"
78 + app:layout_constraintEnd_toEndOf="parent"
79 + app:layout_constraintHorizontal_bias="0.509"
80 + app:layout_constraintStart_toStartOf="parent"
81 + app:layout_constraintTop_toBottomOf="@+id/imageView6"
82 + tools:text="Πάρε δωρεάν μηνιαία πακέτα με πάνες στα supermarket Σκλαβενίτης!" />
83 +
84 + <TextView
85 + android:id="@+id/textView14"
86 + android:layout_width="match_parent"
87 + android:layout_height="wrap_content"
88 + android:layout_marginTop="16dp"
89 + android:gravity="center"
90 + android:paddingHorizontal="32dp"
91 + android:textColor="#415564"
92 + android:textSize="16sp"
93 + app:layout_constraintEnd_toEndOf="parent"
94 + app:layout_constraintStart_toStartOf="parent"
95 + app:layout_constraintTop_toBottomOf="@+id/textView13" />
96 +
97 + <LinearLayout
98 + android:id="@+id/ll_activate_button"
99 + android:layout_width="wrap_content"
100 + android:layout_height="wrap_content"
101 + android:layout_marginHorizontal="32dp"
102 + android:background="@drawable/selector_button_green"
103 + android:gravity="center"
104 + android:orientation="horizontal"
105 + android:paddingHorizontal="16dp"
106 + android:paddingVertical="8dp"
107 + app:layout_constraintBottom_toBottomOf="parent"
108 + app:layout_constraintEnd_toEndOf="parent"
109 + app:layout_constraintStart_toStartOf="parent">
110 +
111 + <TextView
112 + android:layout_width="wrap_content"
113 + android:layout_height="wrap_content"
114 + android:gravity="center"
115 + android:text="@string/cos_dlg_positive_button"
116 + android:textColor="@color/white"
117 + android:textFontWeight="600"
118 + android:textSize="17dp" />
119 + </LinearLayout>
120 +
121 + </androidx.constraintlayout.widget.ConstraintLayout>
122 + </androidx.constraintlayout.widget.ConstraintLayout>
123 + </ScrollView>
124 +</RelativeLayout>