Showing
9 changed files
with
753 additions
and
567 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-cosbeta34' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta35i' |
| 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 7 | } | 7 | } |
| 8 | 8 | ... | ... |
| ... | @@ -479,510 +479,510 @@ public enum Warply { | ... | @@ -479,510 +479,510 @@ 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\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d | 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 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 590 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 591 | -// " \"title\": \"Test1\",\n" + | 591 | + " \"title\": \"Test1\",\n" + |
| 592 | -// " \"subtitle\": \"Test1\",\n" + | 592 | + " \"subtitle\": \"Test1\",\n" + |
| 593 | -// " \"description\": \"Test1\",\n" + | 593 | + " \"description\": \"Test1\",\n" + |
| 594 | -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 594 | + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
| 595 | -// " },\n" + | 595 | + " },\n" + |
| 596 | -// " {\n" + | 596 | + " {\n" + |
| 597 | -// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 597 | + " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
| 598 | -// " \"businessAdditionalId\": \"\",\n" + | 598 | + " \"businessAdditionalId\": \"\",\n" + |
| 599 | -// " \"businessService\": \"0.0\",\n" + | 599 | + " \"businessService\": \"0.0\",\n" + |
| 600 | -// " \"eligibleAssets\": [\n" + | 600 | + " \"eligibleAssets\": [\n" + |
| 601 | -// " \"306945218770\",\n" + | 601 | + " \"306945218770\",\n" + |
| 602 | -// " \"306944333488\",\n" + | 602 | + " \"306944333488\",\n" + |
| 603 | -// " \"306932222490\",\n" + | 603 | + " \"306932222490\",\n" + |
| 604 | -// " \"306996824010\",\n" + | 604 | + " \"306996824010\",\n" + |
| 605 | -// " \"306972713201\",\n" + | 605 | + " \"306972713201\",\n" + |
| 606 | -// " \"306942496252\",\n" + | 606 | + " \"306942496252\",\n" + |
| 607 | -// " \"306977316716\",\n" + | 607 | + " \"306977316716\",\n" + |
| 608 | -// " \"306945433100\",\n" + | 608 | + " \"306945433100\",\n" + |
| 609 | -// " \"306977403986\",\n" + | 609 | + " \"306977403986\",\n" + |
| 610 | -// " \"306936581495\",\n" + | 610 | + " \"306936581495\",\n" + |
| 611 | -// " \"306980689662\",\n" + | 611 | + " \"306980689662\",\n" + |
| 612 | -// " \"306970101490\",\n" + | 612 | + " \"306970101490\",\n" + |
| 613 | -// " \"306973396329\",\n" + | 613 | + " \"306973396329\",\n" + |
| 614 | -// " \"306972577064\",\n" + | 614 | + " \"306972577064\",\n" + |
| 615 | -// " \"306974923219\",\n" + | 615 | + " \"306974923219\",\n" + |
| 616 | -// " \"306977513761\",\n" + | 616 | + " \"306977513761\",\n" + |
| 617 | -// " \"306984220987\",\n" + | 617 | + " \"306984220987\",\n" + |
| 618 | -// " \"306979949205\",\n" + | 618 | + " \"306979949205\",\n" + |
| 619 | -// " \"306943134127\",\n" + | 619 | + " \"306943134127\",\n" + |
| 620 | -// " \"306970437794\",\n" + | 620 | + " \"306970437794\",\n" + |
| 621 | -// " \"306932535319\",\n" + | 621 | + " \"306932535319\",\n" + |
| 622 | -// " \"306974063133\",\n" + | 622 | + " \"306974063133\",\n" + |
| 623 | -// " \"306932520323\",\n" + | 623 | + " \"306932520323\",\n" + |
| 624 | -// " \"306978733823\",\n" + | 624 | + " \"306978733823\",\n" + |
| 625 | -// " \"306985995420\",\n" + | 625 | + " \"306985995420\",\n" + |
| 626 | -// " \"306983879555\",\n" + | 626 | + " \"306983879555\",\n" + |
| 627 | -// " ],\n" + | 627 | + " ],\n" + |
| 628 | -// " \"id\": \"000003588\",\n" + | 628 | + " \"id\": \"000003588\",\n" + |
| 629 | -// " \"loyaltyCampaignId\": \"NA\",\n" + | 629 | + " \"loyaltyCampaignId\": \"NA\",\n" + |
| 630 | -// " \"noOfRecurrance\": \"0\",\n" + | 630 | + " \"noOfRecurrance\": \"0\",\n" + |
| 631 | -// " \"notificationMessage\": \"None\",\n" + | 631 | + " \"notificationMessage\": \"None\",\n" + |
| 632 | -// " \"offerAudienceLevel\": \"msisdn\",\n" + | 632 | + " \"offerAudienceLevel\": \"msisdn\",\n" + |
| 633 | -// " \"offerCode1\": \"000003588\",\n" + | 633 | + " \"offerCode1\": \"000003588\",\n" + |
| 634 | -// " \"offerName\": \"CCMS loyalty postpay addon\",\n" + | 634 | + " \"offerName\": \"CCMS loyalty postpay addon\",\n" + |
| 635 | -// " \"postpayProduct\": \"0.0\",\n" + | 635 | + " \"postpayProduct\": \"0.0\",\n" + |
| 636 | -// " \"price\": \"None\",\n" + | 636 | + " \"price\": \"None\",\n" + |
| 637 | -// " \"productType\": \"MOBILE ADDON\",\n" + | 637 | + " \"productType\": \"MOBILE ADDON\",\n" + |
| 638 | -// " \"provDuration\": \"0.0\",\n" + | 638 | + " \"provDuration\": \"0.0\",\n" + |
| 639 | -// " \"score\": \"50\",\n" + | 639 | + " \"score\": \"50\",\n" + |
| 640 | -// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 640 | + " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
| 641 | -// " \"validity\": \"0\",\n" + | 641 | + " \"validity\": \"0\",\n" + |
| 642 | -// " \"wave\": \"1\",\n" + | 642 | + " \"wave\": \"1\",\n" + |
| 643 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 643 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 644 | -// " \"title\": \"Test2\",\n" + | 644 | + " \"title\": \"Test2\",\n" + |
| 645 | -// " \"subtitle\": \"Test2\",\n" + | 645 | + " \"subtitle\": \"Test2\",\n" + |
| 646 | -// " \"description\": \"Test2\",\n" + | 646 | + " \"description\": \"Test2\",\n" + |
| 647 | -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 647 | + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
| 648 | -// " },\n" + | 648 | + " },\n" + |
| 649 | -// " {\n" + | 649 | + " {\n" + |
| 650 | -// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 650 | + " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
| 651 | -// " \"businessAdditionalId\": \"\",\n" + | 651 | + " \"businessAdditionalId\": \"\",\n" + |
| 652 | -// " \"dataCategory\": \"Data\",\n" + | 652 | + " \"dataCategory\": \"Data\",\n" + |
| 653 | -// " \"dataValue\": \"None\",\n" + | 653 | + " \"dataValue\": \"None\",\n" + |
| 654 | -// " \"discount\": \"None\",\n" + | 654 | + " \"discount\": \"None\",\n" + |
| 655 | -// " \"eligibleAssets\": [\n" + | 655 | + " \"eligibleAssets\": [\n" + |
| 656 | -// " \"306945218770\",\n" + | 656 | + " \"306945218770\",\n" + |
| 657 | -// " \"306944333488\",\n" + | 657 | + " \"306944333488\",\n" + |
| 658 | -// " \"306932222490\",\n" + | 658 | + " \"306932222490\",\n" + |
| 659 | -// " \"306996824010\",\n" + | 659 | + " \"306996824010\",\n" + |
| 660 | -// " \"306972713201\",\n" + | 660 | + " \"306972713201\",\n" + |
| 661 | -// " \"306942496252\",\n" + | 661 | + " \"306942496252\",\n" + |
| 662 | -// " \"306977316716\",\n" + | 662 | + " \"306977316716\",\n" + |
| 663 | -// " \"306945433100\",\n" + | 663 | + " \"306945433100\",\n" + |
| 664 | -// " \"306977403986\",\n" + | 664 | + " \"306977403986\",\n" + |
| 665 | -// " \"306936581495\",\n" + | 665 | + " \"306936581495\",\n" + |
| 666 | -// " \"306980689662\",\n" + | 666 | + " \"306980689662\",\n" + |
| 667 | -// " \"306970101490\",\n" + | 667 | + " \"306970101490\",\n" + |
| 668 | -// " \"306973396329\",\n" + | 668 | + " \"306973396329\",\n" + |
| 669 | -// " \"306972577064\",\n" + | 669 | + " \"306972577064\",\n" + |
| 670 | -// " \"306974923219\",\n" + | 670 | + " \"306974923219\",\n" + |
| 671 | -// " \"306977513761\",\n" + | 671 | + " \"306977513761\",\n" + |
| 672 | -// " \"306984220987\",\n" + | 672 | + " \"306984220987\",\n" + |
| 673 | -// " \"306979949205\",\n" + | 673 | + " \"306979949205\",\n" + |
| 674 | -// " \"306943134127\",\n" + | 674 | + " \"306943134127\",\n" + |
| 675 | -// " \"306970437794\",\n" + | 675 | + " \"306970437794\",\n" + |
| 676 | -// " \"306932535319\",\n" + | 676 | + " \"306932535319\",\n" + |
| 677 | -// " \"306974063133\",\n" + | 677 | + " \"306974063133\",\n" + |
| 678 | -// " \"306932520323\",\n" + | 678 | + " \"306932520323\",\n" + |
| 679 | -// " \"306978733823\",\n" + | 679 | + " \"306978733823\",\n" + |
| 680 | -// " \"306985995420\",\n" + | 680 | + " \"306985995420\",\n" + |
| 681 | -// " \"306983879555\",\n" + | 681 | + " \"306983879555\",\n" + |
| 682 | -// " ],\n" + | 682 | + " ],\n" + |
| 683 | -// " \"id\": \"000003608\",\n" + | 683 | + " \"id\": \"000003608\",\n" + |
| 684 | -// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + | 684 | + " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + |
| 685 | -// " \"minsValue\": \"None\",\n" + | 685 | + " \"minsValue\": \"None\",\n" + |
| 686 | -// " \"noOfRecurrance\": \"None\",\n" + | 686 | + " \"noOfRecurrance\": \"None\",\n" + |
| 687 | -// " \"notificationMessage\": \"None\",\n" + | 687 | + " \"notificationMessage\": \"None\",\n" + |
| 688 | -// " \"offerAudienceLevel\": \"msisdn\",\n" + | 688 | + " \"offerAudienceLevel\": \"msisdn\",\n" + |
| 689 | -// " \"offerCode1\": \"000003608\",\n" + | 689 | + " \"offerCode1\": \"000003608\",\n" + |
| 690 | -// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + | 690 | + " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + |
| 691 | -// " \"price\": \"None\",\n" + | 691 | + " \"price\": \"None\",\n" + |
| 692 | -// " \"productType\": \"White Label\",\n" + | 692 | + " \"productType\": \"White Label\",\n" + |
| 693 | -// " \"provDuration\": \"0.0\",\n" + | 693 | + " \"provDuration\": \"0.0\",\n" + |
| 694 | -// " \"provStepValueMins\": \"None\",\n" + | 694 | + " \"provStepValueMins\": \"None\",\n" + |
| 695 | -// " \"score\": \"50\",\n" + | 695 | + " \"score\": \"50\",\n" + |
| 696 | -// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 696 | + " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
| 697 | -// " \"validity\": \"0\",\n" + | 697 | + " \"validity\": \"0\",\n" + |
| 698 | -// " \"voiceCategory\": \"None\",\n" + | 698 | + " \"voiceCategory\": \"None\",\n" + |
| 699 | -// " \"wave\": \"1\",\n" + | 699 | + " \"wave\": \"1\",\n" + |
| 700 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 700 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 701 | -// " \"title\": \"Test3\",\n" + | 701 | + " \"title\": \"Test3\",\n" + |
| 702 | -// " \"subtitle\": \"Test3\",\n" + | 702 | + " \"subtitle\": \"Test3\",\n" + |
| 703 | -// " \"description\": \"Test3\",\n" + | 703 | + " \"description\": \"Test3\",\n" + |
| 704 | -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 704 | + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
| 705 | -// " },\n" + | 705 | + " },\n" + |
| 706 | -// " {\n" + | 706 | + " {\n" + |
| 707 | -// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 707 | + " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
| 708 | -// " \"businessAdditionalId\": \"\",\n" + | 708 | + " \"businessAdditionalId\": \"\",\n" + |
| 709 | -// " \"businessService\": \"0.0\",\n" + | 709 | + " \"businessService\": \"0.0\",\n" + |
| 710 | -// " \"eligibleAssets\": [\n" + | 710 | + " \"eligibleAssets\": [\n" + |
| 711 | -// " \"306945218770\",\n" + | 711 | + " \"306945218770\",\n" + |
| 712 | -// " \"306944333488\",\n" + | 712 | + " \"306944333488\",\n" + |
| 713 | -// " \"306932222490\",\n" + | 713 | + " \"306932222490\",\n" + |
| 714 | -// " \"306996824010\",\n" + | 714 | + " \"306996824010\",\n" + |
| 715 | -// " \"306972713201\",\n" + | 715 | + " \"306972713201\",\n" + |
| 716 | -// " \"306942496252\",\n" + | 716 | + " \"306942496252\",\n" + |
| 717 | -// " \"306977316716\",\n" + | 717 | + " \"306977316716\",\n" + |
| 718 | -// " \"306945433100\",\n" + | 718 | + " \"306945433100\",\n" + |
| 719 | -// " \"306977403986\",\n" + | 719 | + " \"306977403986\",\n" + |
| 720 | -// " \"306936581495\",\n" + | 720 | + " \"306936581495\",\n" + |
| 721 | -// " \"306980689662\",\n" + | 721 | + " \"306980689662\",\n" + |
| 722 | -// " \"306970101490\",\n" + | 722 | + " \"306970101490\",\n" + |
| 723 | -// " \"306973396329\",\n" + | 723 | + " \"306973396329\",\n" + |
| 724 | -// " \"306972577064\",\n" + | 724 | + " \"306972577064\",\n" + |
| 725 | -// " \"306974923219\",\n" + | 725 | + " \"306974923219\",\n" + |
| 726 | -// " \"306977513761\",\n" + | 726 | + " \"306977513761\",\n" + |
| 727 | -// " \"306984220987\",\n" + | 727 | + " \"306984220987\",\n" + |
| 728 | -// " \"306979949205\",\n" + | 728 | + " \"306979949205\",\n" + |
| 729 | -// " \"306943134127\",\n" + | 729 | + " \"306943134127\",\n" + |
| 730 | -// " \"306970437794\",\n" + | 730 | + " \"306970437794\",\n" + |
| 731 | -// " \"306932535319\",\n" + | 731 | + " \"306932535319\",\n" + |
| 732 | -// " \"306974063133\",\n" + | 732 | + " \"306974063133\",\n" + |
| 733 | -// " \"306932520323\",\n" + | 733 | + " \"306932520323\",\n" + |
| 734 | -// " \"306978733823\",\n" + | 734 | + " \"306978733823\",\n" + |
| 735 | -// " \"306985995420\",\n" + | 735 | + " \"306985995420\",\n" + |
| 736 | -// " \"306983879555\",\n" + | 736 | + " \"306983879555\",\n" + |
| 737 | -// " ],\n" + | 737 | + " ],\n" + |
| 738 | -// " \"id\": \"000003612\",\n" + | 738 | + " \"id\": \"000003612\",\n" + |
| 739 | -// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + | 739 | + " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + |
| 740 | -// " \"noOfRecurrance\": \"0\",\n" + | 740 | + " \"noOfRecurrance\": \"0\",\n" + |
| 741 | -// " \"notificationMessage\": \"None\",\n" + | 741 | + " \"notificationMessage\": \"None\",\n" + |
| 742 | -// " \"offerAudienceLevel\": \"msisdn\",\n" + | 742 | + " \"offerAudienceLevel\": \"msisdn\",\n" + |
| 743 | -// " \"offerCode1\": \"000003612\",\n" + | 743 | + " \"offerCode1\": \"000003612\",\n" + |
| 744 | -// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + | 744 | + " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + |
| 745 | -// " \"postpayProduct\": \"0.0\",\n" + | 745 | + " \"postpayProduct\": \"0.0\",\n" + |
| 746 | -// " \"price\": \"None\",\n" + | 746 | + " \"price\": \"None\",\n" + |
| 747 | -// " \"productType\": \"MOBILE ADDON\",\n" + | 747 | + " \"productType\": \"MOBILE ADDON\",\n" + |
| 748 | -// " \"provDuration\": \"0.0\",\n" + | 748 | + " \"provDuration\": \"0.0\",\n" + |
| 749 | -// " \"score\": \"50\",\n" + | 749 | + " \"score\": \"50\",\n" + |
| 750 | -// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 750 | + " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
| 751 | -// " \"validity\": \"0\",\n" + | 751 | + " \"validity\": \"0\",\n" + |
| 752 | -// " \"wave\": \"1\",\n" + | 752 | + " \"wave\": \"1\",\n" + |
| 753 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 753 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 754 | -// " \"title\": \"Test4\",\n" + | 754 | + " \"title\": \"Test4\",\n" + |
| 755 | -// " \"subtitle\": \"Test4\",\n" + | 755 | + " \"subtitle\": \"Test4\",\n" + |
| 756 | -// " \"description\": \"Test4\",\n" + | 756 | + " \"description\": \"Test4\",\n" + |
| 757 | -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 757 | + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
| 758 | -// " },\n" + | 758 | + " },\n" + |
| 759 | -// " {\n" + | 759 | + " {\n" + |
| 760 | -// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 760 | + " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
| 761 | -// " \"businessAdditionalId\": \"\",\n" + | 761 | + " \"businessAdditionalId\": \"\",\n" + |
| 762 | -// " \"dataCategory\": \"Data\",\n" + | 762 | + " \"dataCategory\": \"Data\",\n" + |
| 763 | -// " \"dataValue\": \"None\",\n" + | 763 | + " \"dataValue\": \"None\",\n" + |
| 764 | -// " \"discount\": \"None\",\n" + | 764 | + " \"discount\": \"None\",\n" + |
| 765 | -// " \"eligibleAssets\": [\n" + | 765 | + " \"eligibleAssets\": [\n" + |
| 766 | -// " \"306945218770\",\n" + | 766 | + " \"306945218770\",\n" + |
| 767 | -// " \"306944333488\",\n" + | 767 | + " \"306944333488\",\n" + |
| 768 | -// " \"306932222490\",\n" + | 768 | + " \"306932222490\",\n" + |
| 769 | -// " \"306996824010\",\n" + | 769 | + " \"306996824010\",\n" + |
| 770 | -// " \"306972713201\",\n" + | 770 | + " \"306972713201\",\n" + |
| 771 | -// " \"306942496252\",\n" + | 771 | + " \"306942496252\",\n" + |
| 772 | -// " \"306977316716\",\n" + | 772 | + " \"306977316716\",\n" + |
| 773 | -// " \"306945433100\",\n" + | 773 | + " \"306945433100\",\n" + |
| 774 | -// " \"306977403986\",\n" + | 774 | + " \"306977403986\",\n" + |
| 775 | -// " \"306936581495\",\n" + | 775 | + " \"306936581495\",\n" + |
| 776 | -// " \"306980689662\",\n" + | 776 | + " \"306980689662\",\n" + |
| 777 | -// " \"306970101490\",\n" + | 777 | + " \"306970101490\",\n" + |
| 778 | -// " \"306973396329\",\n" + | 778 | + " \"306973396329\",\n" + |
| 779 | -// " \"306972577064\",\n" + | 779 | + " \"306972577064\",\n" + |
| 780 | -// " \"306974923219\",\n" + | 780 | + " \"306974923219\",\n" + |
| 781 | -// " \"306977513761\",\n" + | 781 | + " \"306977513761\",\n" + |
| 782 | -// " \"306984220987\",\n" + | 782 | + " \"306984220987\",\n" + |
| 783 | -// " \"306979949205\",\n" + | 783 | + " \"306979949205\",\n" + |
| 784 | -// " \"306943134127\",\n" + | 784 | + " \"306943134127\",\n" + |
| 785 | -// " \"306970437794\",\n" + | 785 | + " \"306970437794\",\n" + |
| 786 | -// " \"306932535319\",\n" + | 786 | + " \"306932535319\",\n" + |
| 787 | -// " \"306974063133\",\n" + | 787 | + " \"306974063133\",\n" + |
| 788 | -// " \"306932520323\",\n" + | 788 | + " \"306932520323\",\n" + |
| 789 | -// " \"306978733823\",\n" + | 789 | + " \"306978733823\",\n" + |
| 790 | -// " \"306985995420\",\n" + | 790 | + " \"306985995420\",\n" + |
| 791 | -// " \"306983879555\",\n" + | 791 | + " \"306983879555\",\n" + |
| 792 | -// " ],\n" + | 792 | + " ],\n" + |
| 793 | -// " \"id\": \"000003610\",\n" + | 793 | + " \"id\": \"000003610\",\n" + |
| 794 | -// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + | 794 | + " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + |
| 795 | -// " \"minsValue\": \"None\",\n" + | 795 | + " \"minsValue\": \"None\",\n" + |
| 796 | -// " \"noOfRecurrance\": \"None\",\n" + | 796 | + " \"noOfRecurrance\": \"None\",\n" + |
| 797 | -// " \"notificationMessage\": \"None\",\n" + | 797 | + " \"notificationMessage\": \"None\",\n" + |
| 798 | -// " \"offerAudienceLevel\": \"msisdn\",\n" + | 798 | + " \"offerAudienceLevel\": \"msisdn\",\n" + |
| 799 | -// " \"offerCode1\": \"000003610\",\n" + | 799 | + " \"offerCode1\": \"000003610\",\n" + |
| 800 | -// " \"offerName\": \"CCMS loyalty more4u v1\",\n" + | 800 | + " \"offerName\": \"CCMS loyalty more4u v1\",\n" + |
| 801 | -// " \"price\": \"20\",\n" + | 801 | + " \"price\": \"20\",\n" + |
| 802 | -// " \"productType\": \"White Label\",\n" + | 802 | + " \"productType\": \"White Label\",\n" + |
| 803 | -// " \"provDuration\": \"7.0\",\n" + | 803 | + " \"provDuration\": \"7.0\",\n" + |
| 804 | -// " \"provStepValueMins\": \"None\",\n" + | 804 | + " \"provStepValueMins\": \"None\",\n" + |
| 805 | -// " \"score\": \"60\",\n" + | 805 | + " \"score\": \"60\",\n" + |
| 806 | -// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 806 | + " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
| 807 | -// " \"validity\": \"0\",\n" + | 807 | + " \"validity\": \"0\",\n" + |
| 808 | -// " \"voiceCategory\": \"None\",\n" + | 808 | + " \"voiceCategory\": \"None\",\n" + |
| 809 | -// " \"wave\": \"1\",\n" + | 809 | + " \"wave\": \"1\",\n" + |
| 810 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 810 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 811 | -// " \"title\": \"Test5\",\n" + | 811 | + " \"title\": \"Test5\",\n" + |
| 812 | -// " \"subtitle\": \"Test5\",\n" + | 812 | + " \"subtitle\": \"Test5\",\n" + |
| 813 | -// " \"description\": \"Test5\",\n" + | 813 | + " \"description\": \"Test5\",\n" + |
| 814 | -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 814 | + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
| 815 | -// " },\n" + | 815 | + " },\n" + |
| 816 | -// " {\n" + | 816 | + " {\n" + |
| 817 | -// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 817 | + " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
| 818 | -// " \"businessAdditionalId\": \"\",\n" + | 818 | + " \"businessAdditionalId\": \"\",\n" + |
| 819 | -// " \"businessService\": \"0.0\",\n" + | 819 | + " \"businessService\": \"0.0\",\n" + |
| 820 | -// " \"eligibleAssets\": [\n" + | 820 | + " \"eligibleAssets\": [\n" + |
| 821 | -// " \"306945218770\",\n" + | 821 | + " \"306945218770\",\n" + |
| 822 | -// " \"306944333488\",\n" + | 822 | + " \"306944333488\",\n" + |
| 823 | -// " \"306932222490\",\n" + | 823 | + " \"306932222490\",\n" + |
| 824 | -// " \"306996824010\",\n" + | 824 | + " \"306996824010\",\n" + |
| 825 | -// " \"306972713201\",\n" + | 825 | + " \"306972713201\",\n" + |
| 826 | -// " \"306942496252\",\n" + | 826 | + " \"306942496252\",\n" + |
| 827 | -// " \"306977316716\",\n" + | 827 | + " \"306977316716\",\n" + |
| 828 | -// " \"306945433100\",\n" + | 828 | + " \"306945433100\",\n" + |
| 829 | -// " \"306977403986\",\n" + | 829 | + " \"306977403986\",\n" + |
| 830 | -// " \"306936581495\",\n" + | 830 | + " \"306936581495\",\n" + |
| 831 | -// " \"306980689662\",\n" + | 831 | + " \"306980689662\",\n" + |
| 832 | -// " \"306970101490\",\n" + | 832 | + " \"306970101490\",\n" + |
| 833 | -// " \"306973396329\",\n" + | 833 | + " \"306973396329\",\n" + |
| 834 | -// " \"306972577064\",\n" + | 834 | + " \"306972577064\",\n" + |
| 835 | -// " \"306974923219\",\n" + | 835 | + " \"306974923219\",\n" + |
| 836 | -// " \"306977513761\",\n" + | 836 | + " \"306977513761\",\n" + |
| 837 | -// " \"306984220987\",\n" + | 837 | + " \"306984220987\",\n" + |
| 838 | -// " \"306979949205\",\n" + | 838 | + " \"306979949205\",\n" + |
| 839 | -// " \"306943134127\",\n" + | 839 | + " \"306943134127\",\n" + |
| 840 | -// " \"306970437794\",\n" + | 840 | + " \"306970437794\",\n" + |
| 841 | -// " \"306932535319\",\n" + | 841 | + " \"306932535319\",\n" + |
| 842 | -// " \"306974063133\",\n" + | 842 | + " \"306974063133\",\n" + |
| 843 | -// " \"306932520323\",\n" + | 843 | + " \"306932520323\",\n" + |
| 844 | -// " \"306978733823\",\n" + | 844 | + " \"306978733823\",\n" + |
| 845 | -// " \"306985995420\",\n" + | 845 | + " \"306985995420\",\n" + |
| 846 | -// " \"306983879555\",\n" + | 846 | + " \"306983879555\",\n" + |
| 847 | -// " ],\n" + | 847 | + " ],\n" + |
| 848 | -// " \"id\": \"000003614\",\n" + | 848 | + " \"id\": \"000003614\",\n" + |
| 849 | -// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + | 849 | + " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + |
| 850 | -// " \"noOfRecurrance\": \"0\",\n" + | 850 | + " \"noOfRecurrance\": \"0\",\n" + |
| 851 | -// " \"notificationMessage\": \"None\",\n" + | 851 | + " \"notificationMessage\": \"None\",\n" + |
| 852 | -// " \"offerAudienceLevel\": \"msisdn\",\n" + | 852 | + " \"offerAudienceLevel\": \"msisdn\",\n" + |
| 853 | -// " \"offerCode1\": \"000003614\",\n" + | 853 | + " \"offerCode1\": \"000003614\",\n" + |
| 854 | -// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + | 854 | + " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + |
| 855 | -// " \"postpayProduct\": \"0.0\",\n" + | 855 | + " \"postpayProduct\": \"0.0\",\n" + |
| 856 | -// " \"price\": \"None\",\n" + | 856 | + " \"price\": \"None\",\n" + |
| 857 | -// " \"productType\": \"MOBILE ADDON\",\n" + | 857 | + " \"productType\": \"MOBILE ADDON\",\n" + |
| 858 | -// " \"provDuration\": \"0.0\",\n" + | 858 | + " \"provDuration\": \"0.0\",\n" + |
| 859 | -// " \"score\": \"50\",\n" + | 859 | + " \"score\": \"50\",\n" + |
| 860 | -// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 860 | + " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
| 861 | -// " \"validity\": \"0\",\n" + | 861 | + " \"validity\": \"0\",\n" + |
| 862 | -// " \"wave\": \"1\",\n" + | 862 | + " \"wave\": \"1\",\n" + |
| 863 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 863 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 864 | -// " \"title\": \"Test6\",\n" + | 864 | + " \"title\": \"Test6\",\n" + |
| 865 | -// " \"subtitle\": \"Test6\",\n" + | 865 | + " \"subtitle\": \"Test6\",\n" + |
| 866 | -// " \"description\": \"Test6\",\n" + | 866 | + " \"description\": \"Test6\",\n" + |
| 867 | -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 867 | + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
| 868 | -// " },\n" + | 868 | + " },\n" + |
| 869 | -// " {\n" + | 869 | + " {\n" + |
| 870 | -// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 870 | + " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 871 | -// " \"businessAdditionalId\": \"\",\n" + | 871 | + " \"businessAdditionalId\": \"\",\n" + |
| 872 | -// " \"eligibleAssets\": [],\n" + | 872 | + " \"eligibleAssets\": [],\n" + |
| 873 | -// " \"id\": \"000003586\",\n" + | 873 | + " \"id\": \"000003586\",\n" + |
| 874 | -// " \"loyaltyCampaignId\": \"NA\",\n" + | 874 | + " \"loyaltyCampaignId\": \"NA\",\n" + |
| 875 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 875 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 876 | -// " \"offerCode1\": \"000003586\",\n" + | 876 | + " \"offerCode1\": \"000003586\",\n" + |
| 877 | -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 877 | + " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
| 878 | -// " \"productType\": \"GENERIC\",\n" + | 878 | + " \"productType\": \"GENERIC\",\n" + |
| 879 | -// " \"score\": \"50\",\n" + | 879 | + " \"score\": \"50\",\n" + |
| 880 | -// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 880 | + " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 881 | -// " \"validity\": \"0\",\n" + | 881 | + " \"validity\": \"0\",\n" + |
| 882 | -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 882 | + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
| 883 | -// " },\n" + | 883 | + " },\n" + |
| 884 | -// " {\n" + | 884 | + " {\n" + |
| 885 | -// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 885 | + " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
| 886 | -// " \"businessAdditionalId\": \"\",\n" + | 886 | + " \"businessAdditionalId\": \"\",\n" + |
| 887 | -// " \"eligibleAssets\": [],\n" + | 887 | + " \"eligibleAssets\": [],\n" + |
| 888 | -// " \"id\": \"000003595\",\n" + | 888 | + " \"id\": \"000003595\",\n" + |
| 889 | -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 889 | + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
| 890 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 890 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 891 | -// " \"offerCode1\": \"000003595\",\n" + | 891 | + " \"offerCode1\": \"000003595\",\n" + |
| 892 | -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 892 | + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
| 893 | -// " \"productType\": \"GENERIC\",\n" + | 893 | + " \"productType\": \"GENERIC\",\n" + |
| 894 | -// " \"score\": \"50\",\n" + | 894 | + " \"score\": \"50\",\n" + |
| 895 | -// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 895 | + " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
| 896 | -// " \"validity\": \"0\",\n" + | 896 | + " \"validity\": \"0\",\n" + |
| 897 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 897 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 898 | -// " \"title\": \"Test7\",\n" + | 898 | + " \"title\": \"Test7\",\n" + |
| 899 | -// " \"subtitle\": \"Test7\",\n" + | 899 | + " \"subtitle\": \"Test7\",\n" + |
| 900 | -// " \"description\": \"Test7\",\n" + | 900 | + " \"description\": \"Test7\",\n" + |
| 901 | -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 901 | + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
| 902 | -// " },\n" + | 902 | + " },\n" + |
| 903 | -// " {\n" + | 903 | + " {\n" + |
| 904 | -// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 904 | + " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
| 905 | -// " \"businessAdditionalId\": \"\",\n" + | 905 | + " \"businessAdditionalId\": \"\",\n" + |
| 906 | -// " \"eligibleAssets\": [],\n" + | 906 | + " \"eligibleAssets\": [],\n" + |
| 907 | -// " \"id\": \"000003595\",\n" + | 907 | + " \"id\": \"000003595\",\n" + |
| 908 | -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 908 | + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
| 909 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 909 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 910 | -// " \"offerCode1\": \"000003595\",\n" + | 910 | + " \"offerCode1\": \"000003595\",\n" + |
| 911 | -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 911 | + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
| 912 | -// " \"productType\": \"GENERIC\",\n" + | 912 | + " \"productType\": \"GENERIC\",\n" + |
| 913 | -// " \"score\": \"50\",\n" + | 913 | + " \"score\": \"50\",\n" + |
| 914 | -// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 914 | + " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
| 915 | -// " \"validity\": \"0\",\n" + | 915 | + " \"validity\": \"0\",\n" + |
| 916 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 916 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 917 | -// " \"title\": \"Test8\",\n" + | 917 | + " \"title\": \"Test8\",\n" + |
| 918 | -// " \"subtitle\": \"Test8\",\n" + | 918 | + " \"subtitle\": \"Test8\",\n" + |
| 919 | -// " \"description\": \"Test8\",\n" + | 919 | + " \"description\": \"Test8\",\n" + |
| 920 | -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 920 | + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
| 921 | -// " },\n" + | 921 | + " },\n" + |
| 922 | -// " {\n" + | 922 | + " {\n" + |
| 923 | -// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 923 | + " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 924 | -// " \"businessAdditionalId\": \"\",\n" + | 924 | + " \"businessAdditionalId\": \"\",\n" + |
| 925 | -// " \"eligibleAssets\": [],\n" + | 925 | + " \"eligibleAssets\": [],\n" + |
| 926 | -// " \"id\": \"000003586\",\n" + | 926 | + " \"id\": \"000003586\",\n" + |
| 927 | -// " \"loyaltyCampaignId\": \"NA\",\n" + | 927 | + " \"loyaltyCampaignId\": \"NA\",\n" + |
| 928 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 928 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 929 | -// " \"offerCode1\": \"000003586\",\n" + | 929 | + " \"offerCode1\": \"000003586\",\n" + |
| 930 | -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 930 | + " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
| 931 | -// " \"productType\": \"GENERIC\",\n" + | 931 | + " \"productType\": \"GENERIC\",\n" + |
| 932 | -// " \"score\": \"50\",\n" + | 932 | + " \"score\": \"50\",\n" + |
| 933 | -// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 933 | + " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 934 | -// " \"validity\": \"0\",\n" + | 934 | + " \"validity\": \"0\",\n" + |
| 935 | -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 935 | + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
| 936 | -// " },\n" + | 936 | + " },\n" + |
| 937 | -// " {\n" + | 937 | + " {\n" + |
| 938 | -// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 938 | + " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 939 | -// " \"businessAdditionalId\": \"\",\n" + | 939 | + " \"businessAdditionalId\": \"\",\n" + |
| 940 | -// " \"eligibleAssets\": [],\n" + | 940 | + " \"eligibleAssets\": [],\n" + |
| 941 | -// " \"id\": \"000003586\",\n" + | 941 | + " \"id\": \"000003586\",\n" + |
| 942 | -// " \"loyaltyCampaignId\": \"NA\",\n" + | 942 | + " \"loyaltyCampaignId\": \"NA\",\n" + |
| 943 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 943 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 944 | -// " \"offerCode1\": \"000003586\",\n" + | 944 | + " \"offerCode1\": \"000003586\",\n" + |
| 945 | -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 945 | + " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
| 946 | -// " \"productType\": \"GENERIC\",\n" + | 946 | + " \"productType\": \"GENERIC\",\n" + |
| 947 | -// " \"score\": \"50\",\n" + | 947 | + " \"score\": \"50\",\n" + |
| 948 | -// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 948 | + " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
| 949 | -// " \"validity\": \"0\",\n" + | 949 | + " \"validity\": \"0\",\n" + |
| 950 | -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 950 | + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
| 951 | -// " },\n" + | 951 | + " },\n" + |
| 952 | -// " {\n" + | 952 | + " {\n" + |
| 953 | -// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 953 | + " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
| 954 | -// " \"businessAdditionalId\": \"\",\n" + | 954 | + " \"businessAdditionalId\": \"\",\n" + |
| 955 | -// " \"eligibleAssets\": [],\n" + | 955 | + " \"eligibleAssets\": [],\n" + |
| 956 | -// " \"id\": \"000003595\",\n" + | 956 | + " \"id\": \"000003595\",\n" + |
| 957 | -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 957 | + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
| 958 | -// " \"offerAudienceLevel\": \"guid\",\n" + | 958 | + " \"offerAudienceLevel\": \"guid\",\n" + |
| 959 | -// " \"offerCode1\": \"000003595\",\n" + | 959 | + " \"offerCode1\": \"000003595\",\n" + |
| 960 | -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 960 | + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
| 961 | -// " \"productType\": \"GENERIC\",\n" + | 961 | + " \"productType\": \"GENERIC\",\n" + |
| 962 | -// " \"score\": \"50\",\n" + | 962 | + " \"score\": \"50\",\n" + |
| 963 | -// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 963 | + " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
| 964 | -// " \"validity\": \"0\",\n" + | 964 | + " \"validity\": \"0\",\n" + |
| 965 | -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 965 | + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
| 966 | -// " \"title\": \"Test9\",\n" + | 966 | + " \"title\": \"Test9\",\n" + |
| 967 | -// " \"subtitle\": \"Test9\",\n" + | 967 | + " \"subtitle\": \"Test9\",\n" + |
| 968 | -// " \"description\": \"Test9\",\n" + | 968 | + " \"description\": \"Test9\",\n" + |
| 969 | -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 969 | + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
| 970 | -// " }\n" + | 970 | + " }\n" + |
| 971 | -// " ]"); | 971 | + " ]"); |
| 972 | -// } catch (JSONException e) { | 972 | + } catch (JSONException e) { |
| 973 | -// e.printStackTrace(); | 973 | + e.printStackTrace(); |
| 974 | -// } | 974 | + } |
| 975 | -// if (jArray != null && jArray.length() > 0) { | 975 | + if (jArray != null && jArray.length() > 0) { |
| 976 | -// for (int i = 0; i < jArray.length(); i++) { | 976 | + for (int i = 0; i < jArray.length(); i++) { |
| 977 | -// JSONObject jobj = new JSONObject(); | 977 | + JSONObject jobj = new JSONObject(); |
| 978 | -// jobj = jArray.optJSONObject(i); | 978 | + jobj = jArray.optJSONObject(i); |
| 979 | -// if (jobj != null) { | 979 | + if (jobj != null) { |
| 980 | -// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); | 980 | + LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); |
| 981 | -// list.add(model); | 981 | + list.add(model); |
| 982 | -// } | 982 | + } |
| 983 | -// } | 983 | + } |
| 984 | -// } | 984 | + } |
| 985 | -// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); | 985 | + WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); |
| 986 | 986 | ||
| 987 | if (result.size() >= 0) { | 987 | if (result.size() >= 0) { |
| 988 | objectSerializer.serialize(result, File.separator + requestSignature); | 988 | objectSerializer.serialize(result, File.separator + requestSignature); | ... | ... |
| ... | @@ -179,17 +179,18 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -179,17 +179,18 @@ 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")) { | 182 | + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { |
| 183 | -// for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 183 | + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 184 | -// if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 184 | + if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { |
| 185 | -// Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class); | 185 | + Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class); |
| 186 | -// intent.putExtra("ccms", ccms); | 186 | + intent.putExtra("ccms", ccms); |
| 187 | -// startActivity(intent); | 187 | + intent.putExtra("loyalty", (Serializable) dataItem.getCampaign()); |
| 188 | -// break; | 188 | + startActivity(intent); |
| 189 | -// } | 189 | + break; |
| 190 | -// } | 190 | + } |
| 191 | -// return; | 191 | + } |
| 192 | -// } | 192 | + return; |
| 193 | + } | ||
| 193 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 194 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 194 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 195 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 195 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 196 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { |
| ... | @@ -271,17 +272,18 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene | ... | @@ -271,17 +272,18 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene |
| 271 | try { | 272 | try { |
| 272 | JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields()); | 273 | JSONObject extraFields = WarpJSONParser.getJSONFromString(dataItem.getCampaign().getExtraFields()); |
| 273 | if (extraFields != null) { | 274 | if (extraFields != null) { |
| 274 | -// if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { | 275 | + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { |
| 275 | -// for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 276 | + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 276 | -// if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 277 | + if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { |
| 277 | -// Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class); | 278 | + Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class); |
| 278 | -// intent.putExtra("ccms", ccms); | 279 | + intent.putExtra("ccms", ccms); |
| 279 | -// startActivity(intent); | 280 | + intent.putExtra("loyalty", (Serializable) dataItem.getCampaign()); |
| 280 | -// break; | 281 | + startActivity(intent); |
| 281 | -// } | 282 | + break; |
| 282 | -// } | 283 | + } |
| 283 | -// return; | 284 | + } |
| 284 | -// } | 285 | + return; |
| 286 | + } | ||
| 285 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 287 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 286 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 288 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 287 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | 289 | if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) { | ... | ... |
| ... | @@ -3,6 +3,7 @@ package ly.warp.sdk.activities; | ... | @@ -3,6 +3,7 @@ package ly.warp.sdk.activities; |
| 3 | import android.app.Activity; | 3 | import android.app.Activity; |
| 4 | import android.content.Intent; | 4 | import android.content.Intent; |
| 5 | import android.os.Bundle; | 5 | import android.os.Bundle; |
| 6 | +import android.os.Parcelable; | ||
| 6 | import android.util.Log; | 7 | import android.util.Log; |
| 7 | import android.view.View; | 8 | import android.view.View; |
| 8 | import android.widget.ImageView; | 9 | import android.widget.ImageView; |
| ... | @@ -16,6 +17,7 @@ import org.greenrobot.eventbus.EventBus; | ... | @@ -16,6 +17,7 @@ import org.greenrobot.eventbus.EventBus; |
| 16 | import org.greenrobot.eventbus.Subscribe; | 17 | import org.greenrobot.eventbus.Subscribe; |
| 17 | import org.json.JSONObject; | 18 | import org.json.JSONObject; |
| 18 | 19 | ||
| 20 | +import java.io.Serializable; | ||
| 19 | import java.util.ArrayList; | 21 | import java.util.ArrayList; |
| 20 | import java.util.HashSet; | 22 | import java.util.HashSet; |
| 21 | 23 | ||
| ... | @@ -123,17 +125,18 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener | ... | @@ -123,17 +125,18 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener |
| 123 | try { | 125 | try { |
| 124 | JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); | 126 | JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); |
| 125 | if (extraFields != null) { | 127 | if (extraFields != null) { |
| 126 | -// if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { | 128 | + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { |
| 127 | -// for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 129 | + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 128 | -// if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { | 130 | + if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { |
| 129 | -// Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); | 131 | + Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); |
| 130 | -// intent.putExtra("ccms", ccms); | 132 | + intent.putExtra("ccms", ccms); |
| 131 | -// startActivity(intent); | 133 | + intent.putExtra("loyalty", (Serializable) gift); |
| 132 | -// break; | 134 | + startActivity(intent); |
| 133 | -// } | 135 | + break; |
| 134 | -// } | 136 | + } |
| 135 | -// return; | 137 | + } |
| 136 | -// } | 138 | + return; |
| 139 | + } | ||
| 137 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 140 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 138 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 141 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 139 | if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { | 142 | if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { |
| ... | @@ -184,17 +187,18 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener | ... | @@ -184,17 +187,18 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener |
| 184 | try { | 187 | try { |
| 185 | JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); | 188 | JSONObject extraFields = WarpJSONParser.getJSONFromString(gift.getExtraFields()); |
| 186 | if (extraFields != null) { | 189 | if (extraFields != null) { |
| 187 | -// if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { | 190 | + if (extraFields.has("type") && extraFields.optString("type").equals("telco")) { |
| 188 | -// for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 191 | + for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 189 | -// if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { | 192 | + if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { |
| 190 | -// Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); | 193 | + Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class); |
| 191 | -// intent.putExtra("ccms", ccms); | 194 | + intent.putExtra("ccms", ccms); |
| 192 | -// startActivity(intent); | 195 | + intent.putExtra("loyalty", (Serializable) gift); |
| 193 | -// break; | 196 | + startActivity(intent); |
| 194 | -// } | 197 | + break; |
| 195 | -// } | 198 | + } |
| 196 | -// return; | 199 | + } |
| 197 | -// } | 200 | + return; |
| 201 | + } | ||
| 198 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { | 202 | if (extraFields.has("ccms_offer") && extraFields.optString("ccms_offer").equals("true")) { |
| 199 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { | 203 | for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) { |
| 200 | if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) { | 204 | if (ccms.getLoyaltyCampaignId().equals(gift.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.Context; | ||
| 4 | import android.os.Bundle; | 5 | import android.os.Bundle; |
| 5 | import android.text.TextUtils; | 6 | import android.text.TextUtils; |
| 7 | +import android.util.Log; | ||
| 8 | +import android.view.LayoutInflater; | ||
| 6 | import android.view.View; | 9 | import android.view.View; |
| 10 | +import android.view.ViewGroup; | ||
| 7 | import android.widget.ImageView; | 11 | import android.widget.ImageView; |
| 8 | import android.widget.LinearLayout; | 12 | import android.widget.LinearLayout; |
| 9 | import android.widget.TextView; | 13 | import android.widget.TextView; |
| 10 | 14 | ||
| 15 | +import androidx.appcompat.app.AlertDialog; | ||
| 16 | + | ||
| 11 | import com.bumptech.glide.Glide; | 17 | import com.bumptech.glide.Glide; |
| 12 | import com.bumptech.glide.load.engine.DiskCacheStrategy; | 18 | import com.bumptech.glide.load.engine.DiskCacheStrategy; |
| 19 | +import com.google.android.material.bottomsheet.BottomSheetDialog; | ||
| 20 | + | ||
| 21 | +import org.json.JSONArray; | ||
| 22 | +import org.json.JSONException; | ||
| 23 | +import org.json.JSONObject; | ||
| 13 | 24 | ||
| 14 | import ly.warp.sdk.R; | 25 | import ly.warp.sdk.R; |
| 26 | +import ly.warp.sdk.io.callbacks.CallbackReceiver; | ||
| 27 | +import ly.warp.sdk.io.models.Campaign; | ||
| 28 | +import ly.warp.sdk.io.models.Consumer; | ||
| 15 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | 29 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; |
| 30 | +import ly.warp.sdk.io.request.CosmoteSubmitOrderRequest; | ||
| 31 | +import ly.warp.sdk.io.request.WarplyConsumerRequest; | ||
| 32 | +import ly.warp.sdk.utils.managers.WarplyManager; | ||
| 16 | 33 | ||
| 17 | 34 | ||
| 18 | public class TelcoActivity extends Activity implements View.OnClickListener { | 35 | public class TelcoActivity extends Activity implements View.OnClickListener { |
| ... | @@ -21,14 +38,20 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -21,14 +38,20 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
| 21 | // Constants | 38 | // Constants |
| 22 | // =========================================================== | 39 | // =========================================================== |
| 23 | 40 | ||
| 41 | + private final String MSISDN_LIST = "msisdnList"; | ||
| 42 | + | ||
| 24 | // =========================================================== | 43 | // =========================================================== |
| 25 | // Fields | 44 | // Fields |
| 26 | // =========================================================== | 45 | // =========================================================== |
| 27 | 46 | ||
| 28 | private ImageView mIvBack, mIvCampaignPhoto; | 47 | private ImageView mIvBack, mIvCampaignPhoto; |
| 29 | private TextView mTvCampaignTitle, mTvCampaignSubtitle; | 48 | private TextView mTvCampaignTitle, mTvCampaignSubtitle; |
| 30 | - private LoyaltyContextualOfferModel mCCMS; | 49 | + private LoyaltyContextualOfferModel mCCMS = new LoyaltyContextualOfferModel(); |
| 50 | + private Campaign mLoyalty = new Campaign(); | ||
| 31 | private LinearLayout mLlActivateOffer; | 51 | private LinearLayout mLlActivateOffer; |
| 52 | + private Consumer mConsumer; | ||
| 53 | + private String mSender = ""; | ||
| 54 | + private AlertDialog mAlertDialogAskActivate, mAlertDialogErrorActivating, mAlertDialogSuccessActivating; | ||
| 32 | 55 | ||
| 33 | // =========================================================== | 56 | // =========================================================== |
| 34 | // Methods for/from SuperClass/Interfaces | 57 | // Methods for/from SuperClass/Interfaces |
| ... | @@ -40,6 +63,7 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -40,6 +63,7 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
| 40 | setContentView(R.layout.activity_telco); | 63 | setContentView(R.layout.activity_telco); |
| 41 | 64 | ||
| 42 | mCCMS = (LoyaltyContextualOfferModel) getIntent().getSerializableExtra("ccms"); | 65 | mCCMS = (LoyaltyContextualOfferModel) getIntent().getSerializableExtra("ccms"); |
| 66 | + mLoyalty = (Campaign) getIntent().getSerializableExtra("loyalty"); | ||
| 43 | 67 | ||
| 44 | mIvBack = findViewById(R.id.iv_telco_back); | 68 | mIvBack = findViewById(R.id.iv_telco_back); |
| 45 | mTvCampaignTitle = findViewById(R.id.textView13); | 69 | mTvCampaignTitle = findViewById(R.id.textView13); |
| ... | @@ -53,6 +77,14 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -53,6 +77,14 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
| 53 | @Override | 77 | @Override |
| 54 | public void onResume() { | 78 | public void onResume() { |
| 55 | super.onResume(); | 79 | super.onResume(); |
| 80 | + | ||
| 81 | + new Thread(() -> { | ||
| 82 | + if (!Thread.currentThread().isInterrupted()) { | ||
| 83 | + WarplyManager.getConsumer(new WarplyConsumerRequest() | ||
| 84 | + , mConsumerCallback); | ||
| 85 | + } | ||
| 86 | + Thread.currentThread().interrupt(); | ||
| 87 | + }).start(); | ||
| 56 | } | 88 | } |
| 57 | 89 | ||
| 58 | @Override | 90 | @Override |
| ... | @@ -62,7 +94,7 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -62,7 +94,7 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
| 62 | return; | 94 | return; |
| 63 | } | 95 | } |
| 64 | if (view.getId() == R.id.ll_activate_button) { | 96 | if (view.getId() == R.id.ll_activate_button) { |
| 65 | - //TODO: make submitOrder | 97 | + showActivationDialog(); |
| 66 | } | 98 | } |
| 67 | } | 99 | } |
| 68 | 100 | ||
| ... | @@ -92,8 +124,134 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -92,8 +124,134 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
| 92 | mLlActivateOffer.setOnClickListener(this); | 124 | mLlActivateOffer.setOnClickListener(this); |
| 93 | } | 125 | } |
| 94 | 126 | ||
| 127 | + private void showActivationDialog() { | ||
| 128 | + final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this); | ||
| 129 | + bottomSheetDialog.setContentView(R.layout.dl_share); | ||
| 130 | + LinearLayout parent = bottomSheetDialog.findViewById(R.id.ll_share_dialog_view_inner); | ||
| 131 | + | ||
| 132 | + ImageView dialogClose = (ImageView) bottomSheetDialog.findViewById(R.id.iv_sender_list_close); | ||
| 133 | + dialogClose.setOnClickListener(view -> bottomSheetDialog.dismiss()); | ||
| 134 | + | ||
| 135 | + if (mConsumer != null) { | ||
| 136 | + try { | ||
| 137 | + JSONObject profMeta = new JSONObject(mConsumer.getProfileMetadata()); | ||
| 138 | + if (profMeta != null) { | ||
| 139 | + JSONArray msisdnList = new JSONArray(); | ||
| 140 | + msisdnList = profMeta.optJSONArray(MSISDN_LIST); | ||
| 141 | + if (msisdnList != null && msisdnList.length() > 0) { | ||
| 142 | + for (int i = 0; i < msisdnList.length(); i++) { | ||
| 143 | + LayoutInflater vi = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); | ||
| 144 | + LinearLayout v = (LinearLayout) vi.inflate(R.layout.item_share, null); | ||
| 145 | + TextView textView = (TextView) v.findViewById(R.id.tv_phone_share); | ||
| 146 | + textView.setText(msisdnList.optString(i)); | ||
| 147 | + textView.setOnClickListener(view -> { | ||
| 148 | + TextView tv = (TextView) view; | ||
| 149 | + mSender = tv.getText().toString(); | ||
| 150 | + bottomSheetDialog.dismiss(); | ||
| 151 | + askActivateDialog(); | ||
| 152 | + }); | ||
| 153 | + parent.addView(v, 0, new ViewGroup.LayoutParams( | ||
| 154 | + ViewGroup.LayoutParams.MATCH_PARENT, | ||
| 155 | + ViewGroup.LayoutParams.WRAP_CONTENT)); | ||
| 156 | + } | ||
| 157 | + } | ||
| 158 | + } | ||
| 159 | + } catch (JSONException e) { | ||
| 160 | + e.printStackTrace(); | ||
| 161 | + } | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + bottomSheetDialog.show(); | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + private void activateGift() { | ||
| 168 | + new Thread(() -> { | ||
| 169 | + if (!Thread.currentThread().isInterrupted()) { | ||
| 170 | + WarplyManager.submitOrder(new CosmoteSubmitOrderRequest() | ||
| 171 | + .setCommunicationUuid(mLoyalty.getSessionUUID()) | ||
| 172 | + .setUserMsisdn(mSender) | ||
| 173 | + .setBusinessService(mCCMS.getBusinessService()) | ||
| 174 | + .setOfferName(mCCMS.getOfferName()) | ||
| 175 | + .setProductType(mCCMS.getProductType()) | ||
| 176 | + .setProvDuration(mCCMS.getProvDuration()) | ||
| 177 | + .setNoOfRecurrance(mCCMS.getNoOfRecurrance()) | ||
| 178 | + .setPrice(mCCMS.getPrice()) | ||
| 179 | + .setDiscount(mCCMS.getDiscount()) | ||
| 180 | + .setVoiceCategory(mCCMS.getVoiceCategory()) | ||
| 181 | + .setDataCategory(mCCMS.getDataCategory()) | ||
| 182 | + .setMinsValue(mCCMS.getMinsValue()) | ||
| 183 | + .setDataValue(mCCMS.getDataValue()) | ||
| 184 | + .setProvStepValueMins(mCCMS.getProvStepValueMins()), | ||
| 185 | + mSubmitCallback); | ||
| 186 | + } | ||
| 187 | + Thread.currentThread().interrupt(); | ||
| 188 | + }).start(); | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + private void askActivateDialog() { | ||
| 192 | + mAlertDialogAskActivate = new AlertDialog.Builder(this) | ||
| 193 | + .setTitle(R.string.cos_dlg_activate_telco_title) | ||
| 194 | + .setMessage(R.string.cos_dlg_activate_telco_subtitle) | ||
| 195 | + .setPositiveButton(R.string.cos_dlg_positive_button, (dialogPositive, whichPositive) -> { | ||
| 196 | + activateGift(); | ||
| 197 | + }) | ||
| 198 | + .setNegativeButton(R.string.cos_dlg_negative_button2, (dialogNegative, whichNegative) -> { | ||
| 199 | + dialogNegative.dismiss(); | ||
| 200 | + }) | ||
| 201 | + .show(); | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + private void errorActivatingDialog() { | ||
| 205 | + mAlertDialogErrorActivating = new AlertDialog.Builder(this) | ||
| 206 | + .setTitle(R.string.cos_dlg_error_title) | ||
| 207 | + .setMessage(R.string.cos_dlg_error_subtitle) | ||
| 208 | + .setPositiveButton(R.string.cos_dlg_positive_button2, (dialogPositive, whichPositive) -> { | ||
| 209 | + dialogPositive.dismiss(); | ||
| 210 | + }) | ||
| 211 | + .show(); | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + private void successActivatingDialog() { | ||
| 215 | + mAlertDialogSuccessActivating = new AlertDialog.Builder(this) | ||
| 216 | + .setTitle(R.string.cos_dlg_activate_success_title) | ||
| 217 | + .setMessage(R.string.cos_dlg_activate_success_subtitle) | ||
| 218 | + .setPositiveButton(R.string.cos_dlg_positive_button2, (dialogPositive, whichPositive) -> { | ||
| 219 | + dialogPositive.dismiss(); | ||
| 220 | + }) | ||
| 221 | + .show(); | ||
| 222 | + } | ||
| 223 | + | ||
| 95 | // =========================================================== | 224 | // =========================================================== |
| 96 | // Inner and Anonymous Classes | 225 | // Inner and Anonymous Classes |
| 97 | // =========================================================== | 226 | // =========================================================== |
| 98 | 227 | ||
| 228 | + private final CallbackReceiver<Consumer> mConsumerCallback = new CallbackReceiver<Consumer>() { | ||
| 229 | + @Override | ||
| 230 | + public void onSuccess(Consumer result) { | ||
| 231 | + mConsumer = result; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + @Override | ||
| 235 | + public void onFailure(int errorCode) { | ||
| 236 | + Log.v("TELCO_ACTIVITY", String.valueOf(errorCode)); | ||
| 237 | + } | ||
| 238 | + }; | ||
| 239 | + | ||
| 240 | + private CallbackReceiver<JSONObject> mSubmitCallback = new CallbackReceiver<JSONObject>() { | ||
| 241 | + @Override | ||
| 242 | + public void onSuccess(JSONObject result) { | ||
| 243 | + int status = result.optInt("status", 2); | ||
| 244 | + runOnUiThread(() -> { | ||
| 245 | + if (status == 1) | ||
| 246 | + successActivatingDialog(); | ||
| 247 | + else | ||
| 248 | + errorActivatingDialog(); | ||
| 249 | + }); | ||
| 250 | + } | ||
| 251 | + | ||
| 252 | + @Override | ||
| 253 | + public void onFailure(int errorCode) { | ||
| 254 | + runOnUiThread(() -> errorActivatingDialog()); | ||
| 255 | + } | ||
| 256 | + }; | ||
| 99 | } | 257 | } | ... | ... |
| ... | @@ -109,72 +109,72 @@ public class CosmoteSubmitOrderRequest { | ... | @@ -109,72 +109,72 @@ public class CosmoteSubmitOrderRequest { |
| 109 | // =========================================================== | 109 | // =========================================================== |
| 110 | 110 | ||
| 111 | public CosmoteSubmitOrderRequest setCommunicationUuid(String communicationUuid) { | 111 | public CosmoteSubmitOrderRequest setCommunicationUuid(String communicationUuid) { |
| 112 | - mCommunicationUuid = communicationUuid; | 112 | + this.mCommunicationUuid = communicationUuid; |
| 113 | return this; | 113 | return this; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | public CosmoteSubmitOrderRequest setUserMsisdn(String userMsisdn) { | 116 | public CosmoteSubmitOrderRequest setUserMsisdn(String userMsisdn) { |
| 117 | - mUserMsisdn = userMsisdn; | 117 | + this.mUserMsisdn = userMsisdn; |
| 118 | return this; | 118 | return this; |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | public CosmoteSubmitOrderRequest setBusinessService(String businessService) { | 121 | public CosmoteSubmitOrderRequest setBusinessService(String businessService) { |
| 122 | - mBusinessService = businessService; | 122 | + this.mBusinessService = businessService; |
| 123 | return this; | 123 | return this; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | public CosmoteSubmitOrderRequest setOfferName(String offerName) { | 126 | public CosmoteSubmitOrderRequest setOfferName(String offerName) { |
| 127 | - mOfferName = offerName; | 127 | + this.mOfferName = offerName; |
| 128 | return this; | 128 | return this; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | public CosmoteSubmitOrderRequest setProductType(String productType) { | 131 | public CosmoteSubmitOrderRequest setProductType(String productType) { |
| 132 | - mProductType = productType; | 132 | + this.mProductType = productType; |
| 133 | return this; | 133 | return this; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | public CosmoteSubmitOrderRequest setProvDuration(String provDuration) { | 136 | public CosmoteSubmitOrderRequest setProvDuration(String provDuration) { |
| 137 | - mProvDuration = provDuration; | 137 | + this.mProvDuration = provDuration; |
| 138 | return this; | 138 | return this; |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | public CosmoteSubmitOrderRequest setNoOfRecurrance(String noOfRecurrance) { | 141 | public CosmoteSubmitOrderRequest setNoOfRecurrance(String noOfRecurrance) { |
| 142 | - mNoOfRecurrance = noOfRecurrance; | 142 | + this.mNoOfRecurrance = noOfRecurrance; |
| 143 | return this; | 143 | return this; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | public CosmoteSubmitOrderRequest setPrice(String price) { | 146 | public CosmoteSubmitOrderRequest setPrice(String price) { |
| 147 | - mPrice = price; | 147 | + this.mPrice = price; |
| 148 | return this; | 148 | return this; |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | public CosmoteSubmitOrderRequest setDiscount(String discount) { | 151 | public CosmoteSubmitOrderRequest setDiscount(String discount) { |
| 152 | - mDiscount = discount; | 152 | + this.mDiscount = discount; |
| 153 | return this; | 153 | return this; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | public CosmoteSubmitOrderRequest setVoiceCategory(String voiceCategory) { | 156 | public CosmoteSubmitOrderRequest setVoiceCategory(String voiceCategory) { |
| 157 | - mVoiceCategory = voiceCategory; | 157 | + this.mVoiceCategory = voiceCategory; |
| 158 | return this; | 158 | return this; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | public CosmoteSubmitOrderRequest setDataCategory(String dataCategory) { | 161 | public CosmoteSubmitOrderRequest setDataCategory(String dataCategory) { |
| 162 | - mDataCategory = dataCategory; | 162 | + this.mDataCategory = dataCategory; |
| 163 | return this; | 163 | return this; |
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | public CosmoteSubmitOrderRequest setMinsValue(String minsValue) { | 166 | public CosmoteSubmitOrderRequest setMinsValue(String minsValue) { |
| 167 | - mMinsValue = minsValue; | 167 | + this.mMinsValue = minsValue; |
| 168 | return this; | 168 | return this; |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | public CosmoteSubmitOrderRequest setDataValue(String dataValue) { | 171 | public CosmoteSubmitOrderRequest setDataValue(String dataValue) { |
| 172 | - mDataValue = dataValue; | 172 | + this.mDataValue = dataValue; |
| 173 | return this; | 173 | return this; |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | public CosmoteSubmitOrderRequest setProvStepValueMins(String provStepValueMins) { | 176 | public CosmoteSubmitOrderRequest setProvStepValueMins(String provStepValueMins) { |
| 177 | - mProvStepValueMins = provStepValueMins; | 177 | + this.mProvStepValueMins = provStepValueMins; |
| 178 | return this; | 178 | return this; |
| 179 | } | 179 | } |
| 180 | 180 | ||
| ... | @@ -241,7 +241,24 @@ public class CosmoteSubmitOrderRequest { | ... | @@ -241,7 +241,24 @@ public class CosmoteSubmitOrderRequest { |
| 241 | JSONObject extraJson = new JSONObject(); | 241 | JSONObject extraJson = new JSONObject(); |
| 242 | extraJson.putOpt(KEY_ACTION, KEY_ACTION_VALUE); | 242 | extraJson.putOpt(KEY_ACTION, KEY_ACTION_VALUE); |
| 243 | extraJson.putOpt(KEY_PRODUCT_UUID, KEY_PRODUCT_UUID_VALUE); | 243 | extraJson.putOpt(KEY_PRODUCT_UUID, KEY_PRODUCT_UUID_VALUE); |
| 244 | - | 244 | + extraJson.putOpt(KEY_COMMUNICATION_UUID, mCommunicationUuid); |
| 245 | + | ||
| 246 | + JSONObject extraData = new JSONObject(); | ||
| 247 | + extraData.putOpt(KEY_USER_MSISDN, mUserMsisdn); | ||
| 248 | + extraData.putOpt(KEY_BUSINESS_SERVICE, mBusinessService); | ||
| 249 | + extraData.putOpt(KEY_OFFER_NAME, mOfferName); | ||
| 250 | + extraData.putOpt(KEY_PRODUCT_TYPE, mProductType); | ||
| 251 | + extraData.putOpt(KEY_PROV_DURATION, mProvDuration); | ||
| 252 | + extraData.putOpt(KEY_NO_OF_RECURRANCE, mNoOfRecurrance); | ||
| 253 | + extraData.putOpt(KEY_PRICE, mPrice); | ||
| 254 | + extraData.putOpt(KEY_DISCOUNT, mDiscount); | ||
| 255 | + extraData.putOpt(KEY_VOICE_CATEGORY, mVoiceCategory); | ||
| 256 | + extraData.putOpt(KEY_DATA_CATEGORY, mDataCategory); | ||
| 257 | + extraData.putOpt(KEY_MINS_VALUE, mMinsValue); | ||
| 258 | + extraData.putOpt(KEY_DATA_VALUE, mDataValue); | ||
| 259 | + extraData.putOpt(KEY_PROV_STEP_VALUE_MINS, mProvStepValueMins); | ||
| 260 | + | ||
| 261 | + extraJson.putOpt(KEY_EXTRA_DATA, extraData); | ||
| 245 | bodyJsonObject.putOpt(KEY_MAPP, extraJson); | 262 | bodyJsonObject.putOpt(KEY_MAPP, extraJson); |
| 246 | } catch (JSONException e) { | 263 | } catch (JSONException e) { |
| 247 | if (WarpConstants.DEBUG) | 264 | if (WarpConstants.DEBUG) | ... | ... |
| ... | @@ -2256,7 +2256,7 @@ public class WarplyManager { | ... | @@ -2256,7 +2256,7 @@ public class WarplyManager { |
| 2256 | public void onSuccess(JSONObject result) { | 2256 | public void onSuccess(JSONObject result) { |
| 2257 | int status = result.optInt("status", 2); | 2257 | int status = result.optInt("status", 2); |
| 2258 | if (status == 1) { | 2258 | if (status == 1) { |
| 2259 | - | 2259 | + receiver.onSuccess(result); |
| 2260 | } else | 2260 | } else |
| 2261 | receiver.onFailure(status); | 2261 | receiver.onFailure(status); |
| 2262 | } | 2262 | } | ... | ... |
| ... | @@ -90,6 +90,7 @@ | ... | @@ -90,6 +90,7 @@ |
| 90 | android:paddingHorizontal="32dp" | 90 | android:paddingHorizontal="32dp" |
| 91 | android:textColor="#415564" | 91 | android:textColor="#415564" |
| 92 | android:textSize="16sp" | 92 | android:textSize="16sp" |
| 93 | + tools:text="test test" | ||
| 93 | app:layout_constraintEnd_toEndOf="parent" | 94 | app:layout_constraintEnd_toEndOf="parent" |
| 94 | app:layout_constraintStart_toStartOf="parent" | 95 | app:layout_constraintStart_toStartOf="parent" |
| 95 | app:layout_constraintTop_toBottomOf="@+id/textView13" /> | 96 | app:layout_constraintTop_toBottomOf="@+id/textView13" /> | ... | ... |
| ... | @@ -104,6 +104,10 @@ | ... | @@ -104,6 +104,10 @@ |
| 104 | <string name="cos_dlg_error_subtitle2">Τα πεδία δεν είναι σωστά</string> | 104 | <string name="cos_dlg_error_subtitle2">Τα πεδία δεν είναι σωστά</string> |
| 105 | <string name="cos_dlg_success_couponset_title">Το κουπόνι σου ενεργοποιήθηκε</string> | 105 | <string name="cos_dlg_success_couponset_title">Το κουπόνι σου ενεργοποιήθηκε</string> |
| 106 | <string name="cos_dlg_success_couponset_subtitle">Μπορείς να το βρεις στην αρχική οθόνη της εφαρμογής και στην ενότητα ενεργά δώρα!</string> | 106 | <string name="cos_dlg_success_couponset_subtitle">Μπορείς να το βρεις στην αρχική οθόνη της εφαρμογής και στην ενότητα ενεργά δώρα!</string> |
| 107 | + <string name="cos_dlg_activate_telco_title">Ενεργοποίηση υπηρεσίας</string> | ||
| 108 | + <string name="cos_dlg_activate_telco_subtitle">Θέλετε να γίνει ενεργοποίηση στο Κινητό μου;</string> | ||
| 109 | + <string name="cos_dlg_activate_success_title">Το αίτημά σου ολοκληρώθηκε επιτυχώς!</string> | ||
| 110 | + <string name="cos_dlg_activate_success_subtitle">Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.</string> | ||
| 107 | 111 | ||
| 108 | <string-array name="coupons_array"> | 112 | <string-array name="coupons_array"> |
| 109 | <item>Κουπόνια</item> | 113 | <item>Κουπόνια</item> | ... | ... |
-
Please register or login to post a comment