diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/WebRequestBuilder.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/WebRequestBuilder.kt index 7611015f3a6906039552bac7dbfdfa196d1549bc..5c6de861a4595467ebe46e513ed752cdf53d03d1 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/WebRequestBuilder.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/WebRequestBuilder.kt @@ -24,7 +24,7 @@ import com.google.protobuf.InvalidProtocolBufferException import de.rki.coronawarnapp.exception.ApplicationConfigurationCorruptException import de.rki.coronawarnapp.exception.ApplicationConfigurationInvalidException import de.rki.coronawarnapp.http.requests.RegistrationTokenRequest -import de.rki.coronawarnapp.http.requests.ReqistrationRequest +import de.rki.coronawarnapp.http.requests.RegistrationRequest import de.rki.coronawarnapp.http.requests.TanRequestBody import de.rki.coronawarnapp.http.service.DistributionService import de.rki.coronawarnapp.http.service.SubmissionService @@ -155,7 +155,7 @@ class WebRequestBuilder( ): Int = withContext(Dispatchers.IO) { verificationService.getTestResult( SubmissionConstants.TEST_RESULT_URL, - "0", ReqistrationRequest(registrationToken) + "0", RegistrationRequest(registrationToken) ).testResult } diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/ReqistrationRequest.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/RegistrationRequest.kt similarity index 84% rename from Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/ReqistrationRequest.kt rename to Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/RegistrationRequest.kt index 1c5dceb55042654a275cb6c6f5d3c49dc38fff82..78d7d1d62cf05c141ebf62daa3f3d22e5541ec41 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/ReqistrationRequest.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/requests/RegistrationRequest.kt @@ -2,7 +2,7 @@ package de.rki.coronawarnapp.http.requests import com.google.gson.annotations.SerializedName -data class ReqistrationRequest( +data class RegistrationRequest( @SerializedName("registrationToken") val registrationToken: String ) diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/service/VerificationService.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/service/VerificationService.kt index 688ceba4c53d8ae45c3d129760aa6b6caee98a61..4f47c3bedf084523905c8a3f43c4bf9ead73f66e 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/service/VerificationService.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/service/VerificationService.kt @@ -1,7 +1,7 @@ package de.rki.coronawarnapp.http.service import de.rki.coronawarnapp.http.requests.RegistrationTokenRequest -import de.rki.coronawarnapp.http.requests.ReqistrationRequest +import de.rki.coronawarnapp.http.requests.RegistrationRequest import de.rki.coronawarnapp.http.requests.TanRequestBody import de.rki.coronawarnapp.http.responses.RegistrationTokenResponse import de.rki.coronawarnapp.http.responses.TanResponse @@ -24,7 +24,7 @@ interface VerificationService { suspend fun getTestResult( @Url url: String, @Header("cwa-fake") fake: String, - @Body request: ReqistrationRequest + @Body request: RegistrationRequest ): TestResultResponse @POST