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/
3333/bin /
3434/lib /
3535/deploy /
36+ /wiki /
Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ import org.codeoverflow.chatoverflow.connector.Connector
55
66class SampleConnector (override val sourceIdentifier : String ) extends Connector (sourceIdentifier) with WithLogger {
77 override protected var requiredCredentialKeys : List [String ] = List ()
8- override protected var optionalCredentialKeys : List [String ] = List ()
8+ override protected var optionalCredentialKeys : List [String ] = List (" optionalSample " )
99
1010 /**
1111 * Starts the connector, e.g. creates a connection with its platform.
1212 */
1313 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"
1416 logger info s " Started sample connector! Source identifier is: ' $sourceIdentifier'. "
1517 true
1618 }
You can’t perform that action at this time.
0 commit comments