diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeAdSuggestion.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeAdSuggestion.kt index d19ba73883..28e9b423fa 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeAdSuggestion.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeAdSuggestion.kt @@ -2,5 +2,6 @@ package org.wordpress.android.fluxc.model.blaze data class BlazeAdSuggestion( val tagLine: String, - val description: String + val description: String, + val ctaText: String ) diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt index 004458d8f3..c0a2832664 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt @@ -366,11 +366,14 @@ private class BlazeAdSuggestionListResponse( val siteName: String, @SerializedName("text_snippet") val textSnippet: String, + @SerializedName("cta_text") + val ctaText: String, ) { fun toDomainModel(): BlazeAdSuggestion { return BlazeAdSuggestion( tagLine = siteName, - description = textSnippet + description = textSnippet, + ctaText = ctaText ) } }