Manos Chorianopoulos

openQuestionnaire, consumerIntegration additions

......@@ -1058,6 +1058,8 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
- (void)consumerIntegrationWithSuccessBlock:(NSNumber*)nonTelco :(NSNumber*)acceptedConsent :(NSArray*)msisdnList :(NSString*)guid :(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure
{
NSMutableDictionary* data = [[NSMutableDictionary alloc] init];
[data setValue:@"consumer_extra_data" forKey:@"method"];
if (nonTelco && ![nonTelco isEqual:@NO]) {
[data setValue:nonTelco forKey:@"nonTelco"];
......
......@@ -1490,7 +1490,8 @@ public class swiftApi {
if (item.offer_category == "questionnaire") {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! CampaignViewController
vc.campaignUrl = item.index_url ?? ""
let url = swiftApi().constructCampaignUrl(item)
vc.campaignUrl = url
controller.navigationController?.pushViewController(vc, animated: true)
break;
}
......