Skip to content

Commit

Permalink
Fix: Data model update for client meta data and credential display
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan committed Sep 24, 2024
1 parent 9c869fa commit eb934fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.google.gson.annotations.SerializedName
data class InputDescriptors(

@SerializedName("id") var id: String? = null,
@SerializedName("name") var name: String? = null,
@SerializedName("constraints") var constraints: Constraints? = null

)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ data class CredentialsSupported(
@SerializedName("display") var display: ArrayList<Display> = arrayListOf(),
@SerializedName("cryptographic_suites_supported") var cryptographicSuitesSupported: ArrayList<String> = arrayListOf()
)
data class CredentialDetails(
@SerializedName("format") val format: String? = null,
@SerializedName("scope") val scope: String? = null,
@SerializedName("cryptographic_binding_methods_supported") val cryptographicBindingMethodsSupported: List<String>? = null,
@SerializedName("cryptographic_suites_supported") val cryptographicSuitesSupported: List<String>? = null,
@SerializedName("display") val display: List<CredentialDisplay>? = null,
@SerializedName("credential_definition") val credentialDefinition: Any? = null
)
data class CredentialDisplay(
@SerializedName("name") var name: String? = null,
@SerializedName("locale") var locale: String? = null,
@SerializedName("logo") var logo: Image? = null,
@SerializedName("description") var description: String? = null,
@SerializedName("background_color") var backgroundColor: String? = null,
@SerializedName("background_image") var backgroundImage: Image? = null,
@SerializedName("text_color") var textColor: String? = null
)

data class Display(
@SerializedName("name") var name: String? = null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.ewc.eudi_wallet_oidc_android.models

import com.google.gson.annotations.SerializedName

data class ClientMetaDetails(
@SerializedName("client_name") var clientName: String? = null,
@SerializedName("cover_uri") var coverUri: String? = null,
Expand All @@ -20,5 +18,5 @@ data class PresentationRequest(
@SerializedName("request_uri") var requestUri: String? = null,
@SerializedName("response_uri") var responseUri: String? = null,
@SerializedName("presentation_definition") var presentationDefinition: Any? = null,
@SerializedName("client_metadata") var clientMetaDetails: ClientMetaDetails? = null
@SerializedName("client_metadata") var clientMetaDetails: Any? = null
)

0 comments on commit eb934fc

Please sign in to comment.