-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: final testing of multiple verification cases
- Loading branch information
1 parent
f032e6a
commit 1821879
Showing
6 changed files
with
150 additions
and
54 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
36 changes: 36 additions & 0 deletions
36
sampleapp/src/main/java/io/iohk/atala/prism/sampleapp/ui/messages/UiMessage.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,36 @@ | ||
package io.iohk.atala.prism.sampleapp.ui.messages | ||
|
||
import io.iohk.atala.prism.walletsdk.domain.models.AttachmentDescriptor | ||
|
||
data class UiMessage( | ||
val id: String, | ||
val piuri: String, | ||
val from: String, | ||
val to: String, | ||
val status: String? = null, | ||
val attachments: Array<AttachmentDescriptor> | ||
) { | ||
override fun equals(other: Any?): Boolean { | ||
if (this === other) return true | ||
if (other == null || this::class != other::class) return false | ||
|
||
other as UiMessage | ||
|
||
if (id != other.id) return false | ||
if (piuri != other.piuri) return false | ||
if (from != other.from) return false | ||
if (to != other.to) return false | ||
if (status != other.status) return false | ||
return attachments.contentEquals(other.attachments) | ||
} | ||
|
||
override fun hashCode(): Int { | ||
var result = id.hashCode() | ||
result = 31 * result + piuri.hashCode() | ||
result = 31 * result + from.hashCode() | ||
result = 31 * result + to.hashCode() | ||
result = 31 * result + (status?.hashCode() ?: 0) | ||
result = 31 * result + attachments.contentHashCode() | ||
return result | ||
} | ||
} |
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