This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/scala/org/codeoverflow/chatoverflow/requirement/service/sample Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,4 @@ project/plugins/project/
33
33
/bin /
34
34
/lib /
35
35
/deploy /
36
+ /wiki /
Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ import org.codeoverflow.chatoverflow.connector.Connector
5
5
6
6
class SampleConnector (override val sourceIdentifier : String ) extends Connector (sourceIdentifier) with WithLogger {
7
7
override protected var requiredCredentialKeys : List [String ] = List ()
8
- override protected var optionalCredentialKeys : List [String ] = List ()
8
+ override protected var optionalCredentialKeys : List [String ] = List (" optionalSample " )
9
9
10
10
/**
11
11
* Starts the connector, e.g. creates a connection with its platform.
12
12
*/
13
13
override def start (): Boolean = {
14
+ val optionalSample : Option [String ] = credentials.get.getValue(" optionalSample" )
15
+ if (optionalSample.isEmpty) logger info " Credentials value optionalSample was not set"
14
16
logger info s " Started sample connector! Source identifier is: ' $sourceIdentifier'. "
15
17
true
16
18
}
You can’t perform that action at this time.
0 commit comments