in src/main/scala/com/gu/mobile/content/notifications/Configuration.scala [56:86]
def load(): Configuration = {
val notificationsHost = getMandatoryProperty("notifications.host")
logger.info(s"notifications.host: $notificationsHost")
val notificationsKey = getMandatoryProperty("notifications.key")
val guardianNotificationsEnabled = getMandatoryProperty("notifications.enabled").toBoolean
logger.info(s"notifications.enable $guardianNotificationsEnabled")
val contentDynamoTableName = getMandatoryProperty("content.notifications.table")
logger.info(s"content.notifications.table: $contentDynamoTableName")
val crossAccountDynamoRole = getMandatoryProperty("content.notifications.crossAccountDynamoRole")
logger.info(s"content.notifications.crossAccountDynamoRole: $crossAccountDynamoRole")
val contentApiKey = getMandatoryProperty("content.api.key")
val contentLiveBlogDynamoTableName = getMandatoryProperty("content.liveblog-notifications.table")
logger.info(s"mobile-liveblog-content-notifications $contentLiveBlogDynamoTableName")
Configuration(
guardianNotificationsEnabled,
notificationsHost,
notificationsKey,
contentApiKey,
crossAccountDynamoRole,
contentDynamoTableName,
contentLiveBlogDynamoTableName,
stage)
}