Skip to content

Commit

Permalink
Dev feature report sb names (#9)
Browse files Browse the repository at this point in the history
* Updated dependencies

* DASB-146 - Changed to use snake case for service bus messages

---------

Co-authored-by: Matt B Krystof <[email protected]>
  • Loading branch information
mkrystof and Matt B Krystof authored Nov 29, 2023
1 parent 274deae commit 6ef9cbc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions processing-status-api-function-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'

implementation 'com.azure:azure-messaging-servicebus:7.13.3'
implementation 'com.azure:azure-identity:1.8.0'

implementation 'org.danilopianini:khttp:1.3.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'

agent "io.opentelemetry.javaagent:opentelemetry-javaagent:1.29.0"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gov.cdc.ocio.processingstatusapi.model

import com.google.gson.annotations.SerializedName

/**
* Amend an existing report service bus message.
*
Expand All @@ -10,10 +12,13 @@ package gov.cdc.ocio.processingstatusapi.model
*/
class AmendReportSBMessage: ServiceBusMessage() {

@SerializedName("upload_id")
val uploadId: String? = null

@SerializedName("stage_name")
val stageName: String? = null

@SerializedName("content_type")
val contentType: String? = null

val content: String? = null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gov.cdc.ocio.processingstatusapi.model

import com.google.gson.annotations.SerializedName

/**
* Create a report service bus message.
*
Expand All @@ -9,9 +11,12 @@ package gov.cdc.ocio.processingstatusapi.model
*/
class CreateReportSBMessage: ServiceBusMessage() {

@SerializedName("upload_id")
val uploadId: String? = null

@SerializedName("destination_id")
val destinationId: String? = null

@SerializedName("event_type")
val eventType: String? = null
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ enum class DispositionType {
*/
open class ServiceBusMessage {

@SerializedName("request_type")
var requestType = RequestType.UNDEFINED

@SerializedName("disposition_type")
// Default is to append
var dispositionType = DispositionType.APPEND
}

0 comments on commit 6ef9cbc

Please sign in to comment.