Skip to content

Commit

Permalink
Add new cta_text field to suggestions response
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Nov 8, 2024
1 parent 5dfbbc9 commit ac54e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit ac54e4d

Please sign in to comment.