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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintFlash 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 StringgetUid()@NonNull ZonedDateTimevoidsetMainText(@NonNull String mainText) voidsetRedirectionUrl(@NonNull String redirectionUrl) voidsetStreamUrl(@Nullable String streamUrl) voidsetTitleText(@NonNull String titleText) voidvoidsetUpdateDate(@NonNull ZonedDateTime updateDate) 
- 
Constructor Details- 
FlashBriefingItempublic 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.
 
- 
compareToFlash 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:
- compareToin interface- Comparable<FlashBriefingItem>
- Parameters:
- o- Flash briefing item being compared to
- Returns:
- comparison results based on updateDate.
 
 
-