-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: moved the distance and answer validation to backend
- Loading branch information
1 parent
8510046
commit dba6b90
Showing
9 changed files
with
128 additions
and
42 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
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
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/edu/nitt/delta/orientation22/models/ClientCredentials.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package edu.nitt.delta.orientation22.models | ||
|
||
open class ClientCredentials (val param : String) { | ||
object ClientID : ClientCredentials("nu7.9dItKsL0AEzQ") | ||
object RedirectUri : ClientCredentials("https://utopia.nitt.edu/api/auth/callback") | ||
object ClientID : ClientCredentials("m3yrmTh1gfRhRptR") | ||
object RedirectUri : ClientCredentials("http://localhost:8000/api/auth/callback") | ||
object State : ClientCredentials("state") | ||
object Nonce : ClientCredentials("123456") | ||
} |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/edu/nitt/delta/orientation22/models/game/CheckAnswerRequest.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,8 @@ | ||
package edu.nitt.delta.orientation22.models.game | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class CheckAnswerRequest ( | ||
@SerializedName("answer") | ||
val answer: String | ||
) |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/edu/nitt/delta/orientation22/models/game/DistanceCheckResponse.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,8 @@ | ||
package edu.nitt.delta.orientation22.models.game | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class DistanceCheckResponse ( | ||
@SerializedName("message") | ||
var message: String | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/edu/nitt/delta/orientation22/models/game/LocationRequest.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 edu.nitt.delta.orientation22.models.game | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class LocationRequest ( | ||
@SerializedName("latitude") | ||
val latitude: Double, | ||
@SerializedName("longitude") | ||
val longitude: Double, | ||
) |