-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from SourcePointUSA/DIA-3500-post-pv-data-call
DIA-3500 post pv data call
- Loading branch information
Showing
5 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
core/src/commonMain/kotlin/com/sourcepoint/mobile_core/network/requests/PvDataRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.sourcepoint.mobile_core.network.requests | ||
|
||
import com.sourcepoint.mobile_core.models.consents.ConsentStatus | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.json.JsonObject | ||
|
||
|
||
|
||
@Serializable | ||
data class PvDataRequest ( | ||
val gdpr: GDPR?, | ||
val ccpa: CCPA?, | ||
val usnat: USNat? | ||
) { | ||
@Serializable | ||
data class GDPR ( | ||
val applies: Boolean, | ||
val uuid: String?, | ||
val accountId: Int, | ||
@SerialName("siteId") val propertyId: Int, | ||
val consentStatus: ConsentStatus, | ||
val pubData: JsonObject?, | ||
val sampleRate: Float?, | ||
val euconsent: String?, | ||
val msgId: Int?, | ||
val categoryId: Int?, | ||
val subCategoryId: Int?, | ||
val prtnUUID: String? | ||
) | ||
|
||
@Serializable | ||
data class CCPA ( | ||
val applies: Boolean, | ||
val uuid: String?, | ||
val accountId: Int, | ||
@SerialName("siteId") val propertyId: Int, | ||
val consentStatus: ConsentStatus, | ||
val pubData: JsonObject?, | ||
val messageId: Int?, | ||
val sampleRate : Float? | ||
) | ||
|
||
@Serializable | ||
data class USNat ( | ||
val applies: Boolean, | ||
val uuid: String?, | ||
val accountId: Int, | ||
@SerialName("siteId") val propertyId: Int, | ||
val consentStatus: ConsentStatus, | ||
val pubData: JsonObject?, | ||
val sampleRate: Float?, | ||
val msgId: Int?, | ||
val categoryId: Int?, | ||
val subCategoryId: Int?, | ||
val prtnUUID : String? | ||
) | ||
} |
15 changes: 15 additions & 0 deletions
15
core/src/commonMain/kotlin/com/sourcepoint/mobile_core/network/responses/PvDataResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.sourcepoint.mobile_core.network.responses | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class PvDataResponse ( | ||
val gdpr: Campaign?, | ||
val ccpa: Campaign?, | ||
val usnat: Campaign? | ||
) { | ||
@Serializable | ||
data class Campaign ( | ||
val uuid: String | ||
) | ||
} |