Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit dc856bc

Browse files
committed
Merged develop. Closed #53.
2 parents 864d960 + 4c6a051 commit dc856bc

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

src/main/java/org/codeoverflow/chatoverflow/api/io/dto/chat/twitch/TwitchChatMessageAuthor.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,34 @@ public class TwitchChatMessageAuthor extends ChatMessageAuthor {
1111
private final boolean broadcaster;
1212
private final boolean moderator;
1313
private final boolean subscriber;
14+
private final boolean vip;
1415

1516
public TwitchChatMessageAuthor(String displayName) {
1617
super(displayName);
1718
this.turbo = false;
1819
this.broadcaster = false;
1920
this.moderator = false;
2021
this.subscriber = false;
22+
this.vip = false;
2123
}
2224

2325
public TwitchChatMessageAuthor(String displayName, String color) {
24-
this(displayName, color, false, false, false, false);
26+
this(displayName, color, false, false, false, false, false);
2527
}
2628

27-
public TwitchChatMessageAuthor(String displayName, String color, boolean broadcaster, boolean moderator, boolean subscriber, boolean turbo) {
29+
public TwitchChatMessageAuthor(String displayName, String color, boolean broadcaster, boolean moderator, boolean subscriber, boolean turbo, boolean vip) {
2830
super(displayName, displayName, color);
2931
this.turbo = turbo;
3032
this.broadcaster = broadcaster;
3133
this.moderator = moderator;
3234
this.subscriber = subscriber;
35+
this.vip = vip;
3336
}
3437

3538
/**
3639
* @return true if the user has twitch turbo, false otherwise
3740
*/
38-
public boolean isTrubo() {
41+
public boolean isTurbo() {
3942
return turbo;
4043
}
4144

@@ -59,4 +62,11 @@ public boolean isModerator() {
5962
public boolean isSubscriber() {
6063
return subscriber;
6164
}
65+
66+
/**
67+
* @return true if the user is a vip of the channel, false otherwise
68+
*/
69+
public boolean isVIP() {
70+
return vip;
71+
}
6272
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
/**
77
* Event that is triggered by tipeeestream if a user follows your channel
88
*/
9-
public class TipeeestramFollowEvent extends FollowEvent<TipeeestreamFollow> implements TipeeestreamEvent {
10-
public TipeeestramFollowEvent(TipeeestreamFollow info) {
9+
public class TipeeestreamFollowEvent extends FollowEvent<TipeeestreamFollow> implements TipeeestreamEvent {
10+
public TipeeestreamFollowEvent(TipeeestreamFollow info) {
1111
super(info);
1212
}
1313
}

src/main/java/org/codeoverflow/chatoverflow/api/io/input/event/TipeeestreamEventInput.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package org.codeoverflow.chatoverflow.api.io.input.event;
22

33
import org.codeoverflow.chatoverflow.api.IsRequirement;
4-
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestramFollowEvent;
54
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamDonationEvent;
65
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamEvent;
6+
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamFollowEvent;
77
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamSubscriptionEvent;
88

99
import java.util.function.Consumer;
@@ -21,12 +21,12 @@ default void registerSubscriptionEventHandler(Consumer<TipeeestreamSubscriptionE
2121
}
2222

2323
/**
24-
* Register an event handler that listens to all {@link TipeeestramFollowEvent}
24+
* Register an event handler that listens to all {@link TipeeestreamFollowEvent}
2525
*
2626
* @param eventHandler consumer that receives the Events
2727
*/
28-
default void registerFollowEventHandler(Consumer<TipeeestramFollowEvent> eventHandler) {
29-
registerEventHandler(eventHandler, TipeeestramFollowEvent.class);
28+
default void registerFollowEventHandler(Consumer<TipeeestreamFollowEvent> eventHandler) {
29+
registerEventHandler(eventHandler, TipeeestreamFollowEvent.class);
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)