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

Commit 4c6a051

Browse files
MelanXJ0B10
authored andcommitted
Added VIP role
1 parent 320871a commit 4c6a051

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
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
}

0 commit comments

Comments
 (0)