Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ecsec Public
reqesidta-prototype
client-signer
Commits
a517483b
Commit
a517483b
authored
Oct 23, 2019
by
Tobias Wich
Browse files
Add process minor error code to mobile result class
parent
1b2f8fd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
clients/android-lib/src/main/java/org/openecard/android/activation/ActivationController.java
View file @
a517483b
...
@@ -138,6 +138,9 @@ public class ActivationController {
...
@@ -138,6 +138,9 @@ public class ActivationController {
default
:
default
:
activationResult
=
new
ActivationResult
(
INTERNAL_ERROR
,
result
.
getResultMessage
());
activationResult
=
new
ActivationResult
(
INTERNAL_ERROR
,
result
.
getResultMessage
());
}
}
activationResult
.
setProcessMinor
(
result
.
getAuxResultData
().
get
(
AuxDataKeys
.
MINOR_PROCESS_RESULT
));
return
activationResult
;
return
activationResult
;
}
}
...
...
clients/android-lib/src/main/java/org/openecard/android/activation/ActivationResult.java
View file @
a517483b
...
@@ -32,6 +32,7 @@ public class ActivationResult {
...
@@ -32,6 +32,7 @@ public class ActivationResult {
private
final
String
redirectUrl
;
private
final
String
redirectUrl
;
private
final
ActivationResultCode
resultCode
;
private
final
ActivationResultCode
resultCode
;
private
final
String
errorMessage
;
private
final
String
errorMessage
;
private
String
processMinor
;
public
ActivationResult
(
ActivationResultCode
resultCode
)
{
public
ActivationResult
(
ActivationResultCode
resultCode
)
{
this
(
null
,
resultCode
,
null
);
this
(
null
,
resultCode
,
null
);
...
@@ -51,6 +52,10 @@ public class ActivationResult {
...
@@ -51,6 +52,10 @@ public class ActivationResult {
this
.
errorMessage
=
errorMessage
;
this
.
errorMessage
=
errorMessage
;
}
}
public
void
setProcessMinor
(
String
processMinor
)
{
this
.
processMinor
=
processMinor
;
}
public
String
getRedirectUrl
()
{
public
String
getRedirectUrl
()
{
return
redirectUrl
;
return
redirectUrl
;
}
}
...
@@ -63,4 +68,14 @@ public class ActivationResult {
...
@@ -63,4 +68,14 @@ public class ActivationResult {
return
errorMessage
;
return
errorMessage
;
}
}
/**
* If present, represents the minor error code of the error leading to the termination of the process.
*
* @see ECardConstants.Minor;
* @return The minor result code or {@code null} if not present.
*/
public
String
getProcessResultMinor
()
{
return
processMinor
;
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment