-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let's break the entire fucking api and therefore bump version to 2.0.0
- Loading branch information
Showing
22 changed files
with
107 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
core/src/main/java/moe/kyokobot/koe/gateway/GatewayVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package moe.kyokobot.koe.gateway; | ||
|
||
import moe.kyokobot.koe.VoiceServerInfo; | ||
import moe.kyokobot.koe.internal.VoiceConnectionImpl; | ||
import moe.kyokobot.koe.internal.MediaConnectionImpl; | ||
|
||
public enum GatewayVersion { | ||
V4(VoiceGatewayV4Connection::new), | ||
V5(VoiceGatewayV5Connection::new); | ||
V4(MediaGatewayV4Connection::new), | ||
V5(MediaGatewayV5Connection::new); | ||
|
||
private final VoiceGatewayConnectionFactory factory; | ||
private final MediaGatewayConnectionFactory factory; | ||
|
||
public VoiceGatewayConnection createConnection(VoiceConnectionImpl connection, VoiceServerInfo voiceServerInfo) { | ||
public MediaGatewayConnection createConnection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo) { | ||
return factory.create(connection, voiceServerInfo); | ||
} | ||
|
||
GatewayVersion(VoiceGatewayConnectionFactory factory) { | ||
GatewayVersion(MediaGatewayConnectionFactory factory) { | ||
this.factory = factory; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
core/src/main/java/moe/kyokobot/koe/gateway/MediaGatewayConnectionFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package moe.kyokobot.koe.gateway; | ||
|
||
import moe.kyokobot.koe.VoiceServerInfo; | ||
import moe.kyokobot.koe.internal.MediaConnectionImpl; | ||
|
||
@FunctionalInterface | ||
public interface MediaGatewayConnectionFactory { | ||
MediaGatewayConnection create(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
core/src/main/java/moe/kyokobot/koe/gateway/VoiceGatewayConnectionFactory.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.