-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
WhisperReceivedType.java
34 lines (29 loc) · 1.07 KB
/
WhisperReceivedType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.github.twitch4j.eventsub.subscriptions;
import com.github.twitch4j.eventsub.condition.UserEventSubCondition;
import com.github.twitch4j.eventsub.events.WhisperReceivedEvent;
/**
* Fires when anyone whispers the specified user.
* <p>
* Must have oauth scope user:read:whispers or user:manage:whispers.
*
* @see com.github.twitch4j.auth.domain.TwitchScopes#HELIX_USER_WHISPERS_READ
* @see com.github.twitch4j.auth.domain.TwitchScopes#HELIX_USER_WHISPERS_MANAGE
*/
public class WhisperReceivedType implements SubscriptionType<UserEventSubCondition, UserEventSubCondition.UserEventSubConditionBuilder<?, ?>, WhisperReceivedEvent> {
@Override
public String getName() {
return "user.whisper.message";
}
@Override
public String getVersion() {
return "1";
}
@Override
public UserEventSubCondition.UserEventSubConditionBuilder<?, ?> getConditionBuilder() {
return UserEventSubCondition.builder();
}
@Override
public Class<WhisperReceivedEvent> getEventClass() {
return WhisperReceivedEvent.class;
}
}