Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-06-29 12:40:06 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4eb6680476d0ca06d8be6f5898352aae5d405c01
4eb66804
1 parent
e786ea7a
update CampaignItemModel
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
4eb6680
...
...
@@ -415,6 +415,7 @@ public class swiftApi {
public
let
message
:
String
?
public
let
loyaltyCampaignId
:
String
?
public
let
hasExtraFields
:
Bool
?
public
let
ccms_offer
:
Bool
?
init
(
dictionary
:
[
String
:
Any
])
{
self
.
index_url
=
dictionary
[
"index_url"
]
as?
String
?
??
""
...
...
@@ -438,16 +439,19 @@ public class swiftApi {
self
.
subcategory
=
extra_fields_parsed
[
"subcategory"
]
as?
String
?
??
""
self
.
loyaltyCampaignId
=
extra_fields_parsed
[
"loyaltyCampaignId"
]
as?
String
?
??
""
self
.
hasExtraFields
=
true
self
.
ccms_offer
=
extra_fields_parsed
[
"ccms_offer"
]
as?
Bool
?
??
false
}
else
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
self
.
hasExtraFields
=
false
self
.
ccms_offer
=
false
print
(
"bad json"
)
}
}
catch
let
error
as
NSError
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
self
.
hasExtraFields
=
false
self
.
ccms_offer
=
false
print
(
error
)
}
...
...
@@ -1482,14 +1486,12 @@ public class swiftApi {
+
"&dataValue="
+
(
campaign
.
_dataValue
)
+
"&provStepValueMins="
+
(
campaign
.
_provStepValueMins
)
+
"&UACIOfferTrackingCode="
+
(
campaign
.
_uaciOfferTrackingCode
)
+
"&MSISDN="
+
"&OFFERCODE1="
+
(
campaign
.
_offerCode1
)
+
"&SCORE="
+
(
campaign
.
_score
)
+
"&ZONE="
+
(
campaign
.
_zone
)
+
"&WAVE="
+
(
campaign
.
_wave
)
+
"&VALIDITY="
+
(
campaign
.
_validity
)
+
"&TREATMENT_CODE="
+
(
campaign
.
_treatmentCode
)
+
"&GUID="
+
"&OfferAudienceLevel="
+
(
campaign
.
_offerAudienceLevel
);
return
finalUrl
...
...
@@ -1527,14 +1529,12 @@ public class swiftApi {
+
"&dataValue="
+
(
ccmsCampaign
.
_dataValue
)
+
"&provStepValueMins="
+
(
ccmsCampaign
.
_provStepValueMins
)
+
"&UACIOfferTrackingCode="
+
(
ccmsCampaign
.
_uaciOfferTrackingCode
)
+
"&MSISDN="
+
"&OFFERCODE1="
+
(
ccmsCampaign
.
_offerCode1
)
+
"&SCORE="
+
(
ccmsCampaign
.
_score
)
+
"&ZONE="
+
(
ccmsCampaign
.
_zone
)
+
"&WAVE="
+
(
ccmsCampaign
.
_wave
)
+
"&VALIDITY="
+
(
ccmsCampaign
.
_validity
)
+
"&TREATMENT_CODE="
+
(
ccmsCampaign
.
_treatmentCode
)
+
"&GUID="
+
"&OfferAudienceLevel="
+
(
ccmsCampaign
.
_offerAudienceLevel
);
return
finalUrl
...
...
Please
register
or
login
to post a comment