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-rev20241105-2.0.0
Show newest version






LiveChatMessageSnippet (YouTube Data API v3 v3-rev20240909-2.0.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 memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership 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 superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
        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 memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership 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 superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
        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
      • getGiftMembershipReceivedDetails

        public LiveChatGiftMembershipReceivedDetails getGiftMembershipReceivedDetails()
        Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'.
        Returns:
        value or null for none
      • setGiftMembershipReceivedDetails

        public LiveChatMessageSnippet setGiftMembershipReceivedDetails(LiveChatGiftMembershipReceivedDetails giftMembershipReceivedDetails)
        Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'.
        Parameters:
        giftMembershipReceivedDetails - giftMembershipReceivedDetails 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
      • getMemberMilestoneChatDetails

        public LiveChatMemberMilestoneChatDetails getMemberMilestoneChatDetails()
        Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'.
        Returns:
        value or null for none
      • setMemberMilestoneChatDetails

        public LiveChatMessageSnippet setMemberMilestoneChatDetails(LiveChatMemberMilestoneChatDetails memberMilestoneChatDetails)
        Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'.
        Parameters:
        memberMilestoneChatDetails - memberMilestoneChatDetails or null for none
      • getMembershipGiftingDetails

        public LiveChatMembershipGiftingDetails getMembershipGiftingDetails()
        Details about the Membership Gifting event, this is only set if the type is 'membershipGiftingEvent'.
        Returns:
        value or null for none
      • setMembershipGiftingDetails

        public LiveChatMessageSnippet setMembershipGiftingDetails(LiveChatMembershipGiftingDetails membershipGiftingDetails)
        Details about the Membership Gifting event, this is only set if the type is 'membershipGiftingEvent'.
        Parameters:
        membershipGiftingDetails - membershipGiftingDetails or null for none
      • getNewSponsorDetails

        public LiveChatNewSponsorDetails getNewSponsorDetails()
        Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
        Returns:
        value or null for none
      • setNewSponsorDetails

        public LiveChatMessageSnippet setNewSponsorDetails(LiveChatNewSponsorDetails newSponsorDetails)
        Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
        Parameters:
        newSponsorDetails - newSponsorDetails or null for none
      • getPollDetails

        public LiveChatPollDetails getPollDetails()
        Details about the poll event, this is only set if the type is 'pollEvent'.
        Returns:
        value or null for none
      • setPollDetails

        public LiveChatMessageSnippet setPollDetails(LiveChatPollDetails pollDetails)
        Details about the poll event, this is only set if the type is 'pollEvent'.
        Parameters:
        pollDetails - pollDetails or null for none
      • getPublishedAt

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

        public LiveChatMessageSnippet setPublishedAt(com.google.api.client.util.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
      • clone

        public LiveChatMessageSnippet clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy