-
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.
Merge branch 'ipzs-rebase' of https://github.com/teamdigitale/io-cie-…
…android-sdk into ipzs-rebase (#13) # Conflicts: # cieidsdk/src/main/java/it/ipzs/cieidsdk/common/CieIDSdk.kt # cieidsdk/src/main/java/it/ipzs/cieidsdk/network/NetworkClient.kt # cieidsdk/src/main/java/it/ipzs/cieidsdk/nfc/ApduResponse.kt # cieidsdk/src/main/java/it/ipzs/cieidsdk/nfc/AppUtil.kt # cieidsdk/src/main/java/it/ipzs/cieidsdk/nfc/Asn1Tag.kt # cieidsdk/src/main/java/it/ipzs/cieidsdk/nfc/Ias.kt refactor enum from enum to class
- Loading branch information
1 parent
17f0db0
commit 72ce38d
Showing
7 changed files
with
47 additions
and
64 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
33 changes: 33 additions & 0 deletions
33
cieidsdk/src/main/java/it/ipzs/cieidsdk/event/CieIDEvent.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,33 @@ | ||
package it.ipzs.cieidsdk.event | ||
|
||
|
||
interface EventEnum | ||
|
||
enum class EventTag : EventEnum { | ||
//tag | ||
ON_TAG_DISCOVERED_NOT_CIE, | ||
ON_TAG_DISCOVERED, | ||
ON_TAG_LOST; | ||
|
||
} | ||
enum class EventCard: EventEnum { | ||
//card | ||
ON_CARD_PIN_LOCKED, | ||
ON_PIN_ERROR; | ||
|
||
} | ||
enum class EventCertificate : EventEnum { | ||
//certificate | ||
CERTIFICATE_EXPIRED, | ||
CERTIFICATE_REVOKED; | ||
|
||
} | ||
enum class EventError : EventEnum { | ||
//error | ||
AUTHENTICATION_ERROR, | ||
GENERAL_ERROR, | ||
PIN_INPUT_ERROR, | ||
ON_NO_INTERNET_CONNECTION; | ||
} | ||
|
||
data class Event(var event : EventEnum,var attempts : Int? = null,var url : String? = null) |
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