All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.model.LiveChatMessageSnippet.html Maven / Gradle / Ivy

There is a newer version: v3-rev20250101-2.0.0
Show newest version






LiveChatMessageSnippet (YouTube Data API v3 v3-rev20210410-1.31.0)












com.google.api.services.youtube.model

Class LiveChatMessageSnippet

    • Constructor Detail

      • LiveChatMessageSnippet

        public LiveChatMessageSnippet()
    • Method Detail

      • getAuthorChannelId

        public String getAuthorChannelId()
        The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase
        Returns:
        value or null for none
      • setAuthorChannelId

        public LiveChatMessageSnippet setAuthorChannelId(String authorChannelId)
        The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase
        Parameters:
        authorChannelId - authorChannelId or null for none
      • getDisplayMessage

        public String getDisplayMessage()
        Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
        Returns:
        value or null for none
      • setDisplayMessage

        public LiveChatMessageSnippet setDisplayMessage(String displayMessage)
        Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
        Parameters:
        displayMessage - displayMessage or null for none
      • getFanFundingEventDetails

        public LiveChatFanFundingEventDetails getFanFundingEventDetails()
        Details about the funding event, this is only set if the type is 'fanFundingEvent'.
        Returns:
        value or null for none
      • setFanFundingEventDetails

        public LiveChatMessageSnippet setFanFundingEventDetails(LiveChatFanFundingEventDetails fanFundingEventDetails)
        Details about the funding event, this is only set if the type is 'fanFundingEvent'.
        Parameters:
        fanFundingEventDetails - fanFundingEventDetails or null for none
      • getHasDisplayContent

        public Boolean getHasDisplayContent()
        Whether the message has display content that should be displayed to users.
        Returns:
        value or null for none
      • setHasDisplayContent

        public LiveChatMessageSnippet setHasDisplayContent(Boolean hasDisplayContent)
        Whether the message has display content that should be displayed to users.
        Parameters:
        hasDisplayContent - hasDisplayContent or null for none
      • getLiveChatId

        public String getLiveChatId()
        Returns:
        value or null for none
      • getPublishedAt

        public DateTime getPublishedAt()
        The date and time when the message was orignally published.
        Returns:
        value or null for none
      • setPublishedAt

        public LiveChatMessageSnippet setPublishedAt(DateTime publishedAt)
        The date and time when the message was orignally published.
        Parameters:
        publishedAt - publishedAt or null for none
      • getSuperChatDetails

        public LiveChatSuperChatDetails getSuperChatDetails()
        Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
        Returns:
        value or null for none
      • setSuperChatDetails

        public LiveChatMessageSnippet setSuperChatDetails(LiveChatSuperChatDetails superChatDetails)
        Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
        Parameters:
        superChatDetails - superChatDetails or null for none
      • getSuperStickerDetails

        public LiveChatSuperStickerDetails getSuperStickerDetails()
        Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
        Returns:
        value or null for none
      • setSuperStickerDetails

        public LiveChatMessageSnippet setSuperStickerDetails(LiveChatSuperStickerDetails superStickerDetails)
        Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
        Parameters:
        superStickerDetails - superStickerDetails or null for none
      • getTextMessageDetails

        public LiveChatTextMessageDetails getTextMessageDetails()
        Details about the text message, this is only set if the type is 'textMessageEvent'.
        Returns:
        value or null for none
      • setTextMessageDetails

        public LiveChatMessageSnippet setTextMessageDetails(LiveChatTextMessageDetails textMessageDetails)
        Details about the text message, this is only set if the type is 'textMessageEvent'.
        Parameters:
        textMessageDetails - textMessageDetails or null for none
      • getType

        public String getType()
        The type of message, this will always be present, it determines the contents of the message as well as which fields will be present.
        Returns:
        value or null for none
      • setType

        public LiveChatMessageSnippet setType(String type)
        The type of message, this will always be present, it determines the contents of the message as well as which fields will be present.
        Parameters:
        type - type or null for none

Copyright © 2011–2021 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy