Skip to content
Permalink
Browse files

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	.gitignore
  • Loading branch information...
sebinside committed May 14, 2019
2 parents b80dbb1 + 37994db commit 72efa0b4fdc420bc5267268397f3e70eb2332ec8
@@ -33,6 +33,7 @@ project/plugins/project/
/bin/
/lib/
/deploy/
/wiki/

# Plugin Data
data/
@@ -5,12 +5,14 @@ import org.codeoverflow.chatoverflow.connector.Connector

class SampleConnector(override val sourceIdentifier: String) extends Connector(sourceIdentifier) with WithLogger {
override protected var requiredCredentialKeys: List[String] = List()
override protected var optionalCredentialKeys: List[String] = List()
override protected var optionalCredentialKeys: List[String] = List("optionalSample")

/**
* Starts the connector, e.g. creates a connection with its platform.
*/
override def start(): Boolean = {
val optionalSample: Option[String] = credentials.get.getValue("optionalSample")
if (optionalSample.isEmpty) logger info "Credentials value optionalSample was not set"
logger info s"Started sample connector! Source identifier is: '$sourceIdentifier'."
true
}

0 comments on commit 72efa0b

Please sign in to comment.
You can’t perform that action at this time.