Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Tayfun Oztemel committed Jul 26, 2024
1 parent ba320f6 commit 7121bdb
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,30 @@ object : PromotionCallback {
val configKey = c.key
val configValue = c.value
}
val imageBadge = content.getImageBadge()
val textBadge = content.getTextBadge()
promotion.content?.contentConfig()?.let {
when (it) {
is SecondaryMessaging -> {
val name = it.name
val text = it.text
val fontColor = it.fontColor
}

is TextBadge -> {
val name = it.name
val text = it.text
val fontColor = it.fontColor
val borderColor = it.borderColor
val backgroundColor = it.backgroundColor
}

is ImageBadge -> {
val name = it.name
val image = it.image
val altText = it.altText
}

}
}
}
}
}
Expand Down

0 comments on commit 7121bdb

Please sign in to comment.