Class FlashBriefingItem
java.lang.Object
io.micronaut.aws.alexa.flashbriefing.FlashBriefingItem
- All Implemented Interfaces:
Comparable<FlashBriefingItem>
@Introspected
public class FlashBriefingItem
extends Object
implements Comparable<FlashBriefingItem>
Flash Briefing item.
- Since:
- 2.0.0
- Author:
- sdelamo
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Flash briefing items should be provided in order from newest to oldest, based on the date value for the item.@NonNull String
@NonNull String
@Nullable String
@NonNull String
@NonNull String
getUid()
@NonNull ZonedDateTime
void
setMainText
(@NonNull String mainText) void
setRedirectionUrl
(@NonNull String redirectionUrl) void
setStreamUrl
(@Nullable String streamUrl) void
setTitleText
(@NonNull String titleText) void
void
setUpdateDate
(@NonNull ZonedDateTime updateDate)
-
Constructor Details
-
FlashBriefingItem
public FlashBriefingItem()Constructor.
-
-
Method Details
-
getUid
- Returns:
- A unique identifier for the feed item.
-
setUid
- Parameters:
uid
- A unique identifier for the feed item
-
getUpdateDate
- Returns:
- The date that indicates the freshness of the feed item
-
setUpdateDate
- Parameters:
updateDate
- the date that indicates the freshness of the feed item
-
getTitleText
- Returns:
- The title of the feed item to display in the alexa app.
-
setTitleText
- Parameters:
titleText
- Title of the feed item to display in the alexa app.
-
getMainText
- Returns:
- The text that alexa read to the customer.
-
setMainText
- Parameters:
mainText
- The text that alexa read to the customer.
-
getStreamUrl
- Returns:
- The HTTPs URL specifying the location of the audio content.
-
setStreamUrl
- Parameters:
streamUrl
- Sets an HTTPs URL specifying the location of the audio content.
-
getRedirectionUrl
- Returns:
- the url target for the Read more link in he alexa app.
-
setRedirectionUrl
- Parameters:
redirectionUrl
- Sets the url target for the Read more link in he alexa app.
-
compareTo
Flash briefing items should be provided in order from newest to oldest, based on the date value for the item. Alexa may ignore older items.- Specified by:
compareTo
in interfaceComparable<FlashBriefingItem>
- Parameters:
o
- Flash briefing item being compared to- Returns:
- comparison results based on
updateDate
.
-