-
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 #26 from SourcePointUSA/refactor_get_all_choices
Refactor GET choice all
- Loading branch information
Showing
4 changed files
with
42 additions
and
104 deletions.
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
15 changes: 0 additions & 15 deletions
15
...ommonMain/kotlin/com/sourcepoint/mobile_core/network/requests/ChoiceAllMetaDataRequest.kt
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
core/src/commonMain/kotlin/com/sourcepoint/mobile_core/network/requests/ChoiceAllRequest.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,27 @@ | ||
package com.sourcepoint.mobile_core.network.requests | ||
|
||
import com.sourcepoint.mobile_core.models.SPIDFAStatus | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ChoiceAllRequest ( | ||
val accountId: Int, | ||
val propertyId: Int, | ||
@SerialName("metadata") val campaigns: ChoiceAllCampaigns, | ||
val idfaStatus: SPIDFAStatus? = SPIDFAStatus.current(), | ||
val includeData: IncludeData? = IncludeData(), | ||
private val hasCsp: Boolean = true, | ||
private val withSiteActions: Boolean = false, | ||
private val includeCustomVendorsRes: Boolean = false | ||
): DefaultRequest() { | ||
@Serializable | ||
data class ChoiceAllCampaigns ( | ||
val gdpr: Campaign?, | ||
val ccpa: Campaign?, | ||
val usnat: Campaign? | ||
) { | ||
@Serializable | ||
data class Campaign (val applies: Boolean) | ||
} | ||
} |
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