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

Added Twitch VIP to Code Overflow #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
public class TwitchChatMessageAuthor extends ChatMessageAuthor {

private boolean premium;
private boolean vip;

public TwitchChatMessageAuthor(String displayName) {
super(displayName);
this.premium = false;
}

public TwitchChatMessageAuthor(String displayName, boolean broadcaster, boolean moderator, boolean subscriber, boolean premium) {
public TwitchChatMessageAuthor(String displayName, boolean broadcaster, boolean moderator, boolean subscriber, boolean premium, boolean vip) {
super(displayName, broadcaster, moderator, subscriber);
this.premium = premium;
this.vip = vip;
}

public boolean isPremium() {
return premium;
}

public boolean isVIP() {
return vip;
}
}