Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
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 @@ -11,31 +11,34 @@ public class TwitchChatMessageAuthor extends ChatMessageAuthor {
private final boolean broadcaster;
private final boolean moderator;
private final boolean subscriber;
private final boolean vip;

public TwitchChatMessageAuthor(String displayName) {
super(displayName);
this.turbo = false;
this.broadcaster = false;
this.moderator = false;
this.subscriber = false;
this.vip = false;
}

public TwitchChatMessageAuthor(String displayName, String color) {
this(displayName, color, false, false, false, false);
this(displayName, color, false, false, false, false, false);
}

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

/**
* @return true if the user has twitch turbo, false otherwise
*/
public boolean isTrubo() {
public boolean isTurbo() {
return turbo;
}

Expand All @@ -59,4 +62,11 @@ public boolean isModerator() {
public boolean isSubscriber() {
return subscriber;
}

/**
* @return true if the user is a vip of the channel, false otherwise
*/
public boolean isVIP() {
return vip;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
/**
* Event that is triggered by tipeeestream if a user follows your channel
*/
public class TipeeestramFollowEvent extends FollowEvent<TipeeestreamFollow> implements TipeeestreamEvent {
public TipeeestramFollowEvent(TipeeestreamFollow info) {
public class TipeeestreamFollowEvent extends FollowEvent<TipeeestreamFollow> implements TipeeestreamEvent {
public TipeeestreamFollowEvent(TipeeestreamFollow info) {
super(info);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.codeoverflow.chatoverflow.api.io.input.event;

import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestramFollowEvent;
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamFollowEvent;
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamDonationEvent;
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamEvent;
import org.codeoverflow.chatoverflow.api.io.event.stream.tipeeestream.TipeeestreamSubscriptionEvent;
Expand All @@ -19,12 +19,12 @@ default void registerSubscriptionEventHandler(Consumer<TipeeestreamSubscriptionE
}

/**
* Register an event handler that listens to all {@link TipeeestramFollowEvent}
* Register an event handler that listens to all {@link TipeeestreamFollowEvent}
*
* @param eventHandler consumer that receives the Events
*/
default void registerFollowEventHandler(Consumer<TipeeestramFollowEvent> eventHandler) {
registerEventHandler(eventHandler, TipeeestramFollowEvent.class);
default void registerFollowEventHandler(Consumer<TipeeestreamFollowEvent> eventHandler) {
registerEventHandler(eventHandler, TipeeestreamFollowEvent.class);
}

/**
Expand Down