Class PartyDonationMessage
java.lang.Object
io.github.bbobbogi.stream4j.chzzk.chat.ChatMessage
io.github.bbobbogi.stream4j.chzzk.chat.DonationMessage
io.github.bbobbogi.stream4j.chzzk.chat.PartyDonationMessage
Party donation message.
Contains information about a user participating in party donation.
Sent through CHAT/DONATION command (cmd: 93101/93102), and donationType is "PARTY".
You can identify which party was donated to via partyName and partyNo.
Party donation lifecycle:
1. CHANGE_DONATION_ACTIVE (donationType: "PARTY", donationActive: true) - party donation starts
2. PARTY_DONATION_INFO (party status info) - can be sent multiple times during party donation
3. PartyDonationMessage (party donation) - repeated per participant
4. CHANGE_DONATION_ACTIVE (donationType: "PARTY", donationActive: false) - party donation deactivated
5. PARTY_DONATION_FINISH (confirmNeeded: true) - party donation ends
6. PARTY_DONATION_CONFIRM - per-channel ranking and settlement info (repeated by channel count)
Note: if chat is connected after party donation starts, event #1 may be missed and events can begin from #2.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.bbobbogi.stream4j.chzzk.chat.ChatMessage
ChatMessage.Extras, ChatMessage.OsType, ChatMessage.Profile -
Field Summary
Fields inherited from class io.github.bbobbogi.stream4j.chzzk.chat.ChatMessage
content, createTime, extras, msgStatusType, msgTypeCode, profile, rawJson, userIdHash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the party donation ID.Returns the party name.intReturns the party number.Methods inherited from class io.github.bbobbogi.stream4j.chzzk.chat.DonationMessage
getPayAmount, isAnonymousMethods inherited from class io.github.bbobbogi.stream4j.chzzk.chat.ChatMessage
getChatTypeCode, getContent, getCreateTime, getExtras, getMemberCount, getMessageStatusType, getMessageTime, getProfile, getRawJson, getUserId, getUserIdHash, hasProfile, isBlind, isHidden, isOpenMessage, isSystemMessage, isTestMessage, isUserMessage, toString
-
Constructor Details
-
PartyDonationMessage
public PartyDonationMessage()Creates aPartyDonationMessage.
-
-
Method Details
-
getPartyDonationId
Returns the party donation ID.- Returns:
- party donation ID
-
getPartyName
Returns the party name.- Returns:
- party name
-
getPartyNo
public int getPartyNo()Returns the party number.- Returns:
- party number
-