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
data class SelfieVerificationRequest( | |
val tag: String, | |
val documentType: SelfieVerificationDocument, | |
val documentId: String, | |
val residence: Residence, | |
val userId: String, | |
val firstName: String, | |
val lastName: String, | |
val email: String, | |
val birthDate: String) |
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
fun mockMetadata(metadata: SIDMetadata, request: SelfieVerificationRequest, base64: String = "") { | |
val userIdInfo = metadata.sidUserIdInfo | |
userIdInfo.idNumber = "0000000004" | |
// userIdInfo.idNumber = request.documentId | |
// .replace("[0-9]".toRegex(), "0") | |
// .replace("0\$".toRegex(), "4") | |
if (base64.isNotEmpty()) { | |
// metadata.partnerParams.addtionalValues[request.documentType.mockPictureTag()] = selfieFile.toBase64String() | |
metadata.partnerParams.addtionalValues[request.documentType.mockPictureTag()] = base64 | |
Log.d("Base 64 Image", base64) |
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
let plus: (Int, Int) -> Int = { | |
return $0 + $1 | |
} | |
let minus: (Int, Int) -> Int = { | |
return $0 - $1 | |
} | |
let add: (Int, Int) -> Int = { | |
return $0 + $1 |
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
let plus: (Int, Int) -> Int = { | |
return $0 + $1 | |
} | |
let minus: (Int, Int) -> Int = { | |
return $0 - $1 | |
} | |
let add: (Int, Int) -> Int = { | |
return $0 + $1 |
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
let fullName: (String, String) -> String = { | |
return "The Full Name is \($0) \($1)" | |
} | |
print(fullName("Promise", "Ochornma")) | |
//The Result is: | |
//The Full Name is Promise Ochornma |
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
let fullName: (String, String) -> String = { (firstName, lastName) in | |
return "The Full Name is \(firstName) \(lastName)" | |
} | |
print(fullName("Promise", "Ochornma")) | |
//The Result is: | |
//The Full Name is Promise Ochornma |
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
func fullName(firstName: String, lastName: String) -> String{ | |
return "The Full Name is \(firstName) \(lastName)" | |
} | |
print(fullName(firstName: "Promise", lastName: "Ochornma")) | |
//The Result is: | |
//The Full Name is Promise Ochornma |
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
class VerifyAdapter(private val list: List<UnverifiedData>, val listener: OnItemClickListener): RecyclerView.Adapter<VerifyAdapter.VerifyHolder>() { | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VerifyHolder { | |
val binding = VerifyBvnListBinding | |
.inflate(LayoutInflater.from(parent.context), parent, false) | |
return VerifyHolder(binding) | |
} |
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
data class VerifyResponse( | |
val Response_message: String, | |
val success: Boolean | |
) |
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
data class UnverifiedResponse( | |
val `data`: List<UnverifiedData>, | |
val response_code: String, | |
val response_message: String, | |
val success: Boolean | |
) |
NewerOlder