Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit ac54e4d

Browse files
Add new cta_text field to suggestions response
1 parent 5dfbbc9 commit ac54e4d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeAdSuggestion.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ package org.wordpress.android.fluxc.model.blaze
22

33
data class BlazeAdSuggestion(
44
val tagLine: String,
5-
val description: String
5+
val description: String,
6+
val ctaText: String
67
)

fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,14 @@ private class BlazeAdSuggestionListResponse(
366366
val siteName: String,
367367
@SerializedName("text_snippet")
368368
val textSnippet: String,
369+
@SerializedName("cta_text")
370+
val ctaText: String,
369371
) {
370372
fun toDomainModel(): BlazeAdSuggestion {
371373
return BlazeAdSuggestion(
372374
tagLine = siteName,
373-
description = textSnippet
375+
description = textSnippet,
376+
ctaText = ctaText
374377
)
375378
}
376379
}

0 commit comments

Comments
 (0)