-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package renamed to align with domain.
- Loading branch information
1 parent
ad327c0
commit cf17b20
Showing
56 changed files
with
445 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
backends/slack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/SlackModule.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...k/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/ChannelsCreateResponse.kt
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...ack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/ChannelsListResponse.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...ack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/GroupsCreateResponse.kt
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...slack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/GroupsListResponse.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
.../slack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/PaginatedResponse.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
.../main/kotlin/com/gatehill/slackgateway/backend/slack/model/SlackChannelsCreateResponse.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...k/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/UserGroupsListResponse.kt
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
.../slack/src/main/kotlin/com/gatehill/slackgateway/backend/slack/model/UsersListResponse.kt
This file was deleted.
Oops, something went wrong.
181 changes: 0 additions & 181 deletions
181
...src/main/kotlin/com/gatehill/slackgateway/backend/slack/service/SlackOperationsService.kt
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
backends/slack/src/main/kotlin/io/gatehill/slackgateway/backend/slack/SlackModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.gatehill.slackgateway.backend.slack | ||
|
||
import com.google.inject.AbstractModule | ||
import io.gatehill.slackgateway.asSingleton | ||
import io.gatehill.slackgateway.service.OutboundMessageService | ||
|
||
class SlackModule : AbstractModule() { | ||
override fun configure() { | ||
bind(OutboundMessageService::class.java) | ||
.to(io.gatehill.slackgateway.backend.slack.service.SlackOutboundMessageService::class.java).asSingleton() | ||
bind(io.gatehill.slackgateway.backend.slack.service.SlackOperationsService::class.java).asSingleton() | ||
bind(io.gatehill.slackgateway.backend.slack.service.SlackApiService::class.java).asSingleton() | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...way/backend/slack/config/SlackSettings.kt → ...way/backend/slack/config/SlackSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ck/src/main/kotlin/io/gatehill/slackgateway/backend/slack/model/ChannelsCreateResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.gatehill.slackgateway.backend.slack.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class ChannelsCreateResponse( | ||
override val ok: Boolean, | ||
override val channel: io.gatehill.slackgateway.backend.slack.model.SlackPublicChannel | ||
) : io.gatehill.slackgateway.backend.slack.model.ResponseWithStatus, | ||
io.gatehill.slackgateway.backend.slack.model.SlackChannelsCreateResponse |
19 changes: 19 additions & 0 deletions
19
...lack/src/main/kotlin/io/gatehill/slackgateway/backend/slack/model/ChannelsListResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.gatehill.slackgateway.backend.slack.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties | ||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
data class ChannelsListResponse( | ||
override val ok: Boolean, | ||
|
||
val channels: MutableList<io.gatehill.slackgateway.backend.slack.model.SlackPublicChannel>?, | ||
|
||
@JsonProperty("response_metadata") | ||
override val responseMetadata: io.gatehill.slackgateway.backend.slack.model.ResponseMetadata? | ||
|
||
) : io.gatehill.slackgateway.backend.slack.model.ResponseWithStatus, | ||
io.gatehill.slackgateway.backend.slack.model.PaginatedResponse<io.gatehill.slackgateway.backend.slack.model.SlackPublicChannel> { | ||
override val innerResults | ||
get() = channels ?: mutableListOf() | ||
} |
Oops, something went wrong.