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

Commit 2315ecb

Browse files
committed
Make RCON Connector Ready for new ChatOverflow version
1 parent 7181a78 commit 2315ecb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/main/scala/org/codeoverflow/chatoverflow/requirement/service/rcon/impl/RconInputImpl.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package org.codeoverflow.chatoverflow.requirement.service.rcon.impl
33
import org.codeoverflow.chatoverflow.WithLogger
44
import org.codeoverflow.chatoverflow.api.io.input.RconInput
55
import org.codeoverflow.chatoverflow.registry.Impl
6-
import org.codeoverflow.chatoverflow.requirement.InputImpl
6+
import org.codeoverflow.chatoverflow.requirement.impl.InputImpl
77
import org.codeoverflow.chatoverflow.requirement.service.rcon.RconConnector
88

99
@Impl(impl = classOf[RconInput], connector = classOf[RconConnector])
@@ -16,4 +16,6 @@ class RconInputImpl extends InputImpl[RconConnector] with RconInput with WithLog
1616
* @return true if starting the input was successful, false if some problems occurred
1717
*/
1818
override def start(): Boolean = sourceConnector.get.isLoggedIn
19+
20+
override def stop(): Boolean = true
1921
}

src/main/scala/org/codeoverflow/chatoverflow/requirement/service/rcon/impl/RconOutputImpl.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package org.codeoverflow.chatoverflow.requirement.service.rcon.impl
33
import org.codeoverflow.chatoverflow.WithLogger
44
import org.codeoverflow.chatoverflow.api.io.output.RconOutput
55
import org.codeoverflow.chatoverflow.registry.Impl
6-
import org.codeoverflow.chatoverflow.requirement.OutputImpl
6+
import org.codeoverflow.chatoverflow.requirement.impl.OutputImpl
77
import org.codeoverflow.chatoverflow.requirement.service.rcon.RconConnector
88

99
@Impl(impl = classOf[RconOutput], connector = classOf[RconConnector])
@@ -18,4 +18,11 @@ class RconOutputImpl extends OutputImpl[RconConnector] with RconOutput with With
1818
* @return true if starting the input was successful, false if some problems occurred
1919
*/
2020
override def start(): Boolean = sourceConnector.get.isLoggedIn
21+
22+
/**
23+
* Stops the output, called before source connector will shutdown
24+
*
25+
* @return true if stopping was successful
26+
*/
27+
override def stop(): Boolean = true
2128
}

0 commit comments

Comments
 (0)