File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/Regula.DocumentReader.WebClient/Model/Ext/Autheticity Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Linq ;
23
34namespace Regula . DocumentReader . WebClient . Model . Ext . Autheticity
45{
@@ -19,8 +20,11 @@ public AuthenticityCheckResult Payload()
1920 public List < T > Items ( )
2021 {
2122 var ls = this . authenticityCheckResult . List ;
22-
23- return ls as List < T > ;
23+ if ( ls is List < AuthenticityCheckResultItem > items )
24+ {
25+ return items . OfType < T > ( ) . ToList ( ) ;
26+ }
27+ return new List < T > ( ) ;
2428 }
2529 }
2630}
Original file line number Diff line number Diff line change 1- using System . Linq ;
1+ using System ;
2+ using System . Linq ;
23
34namespace Regula . DocumentReader . WebClient . Model . Ext . Autheticity
45{
@@ -10,9 +11,9 @@ public static SecurityFeatureChecks UvLuminescenceChecks(this AuthenticityCheckL
1011 return auth . securityFeatureOrNull ( AuthenticityResultType . UV_LUMINESCENCE ) ;
1112 }
1213
13- public static SecurityFeatureChecks LivenessChecks ( this AuthenticityCheckList auth )
14+ public static IdentChecks LivenessChecks ( this AuthenticityCheckList auth )
1415 {
15- return auth . securityFeatureOrNull ( AuthenticityResultType . LIVENESS ) ;
16+ return auth . identOrNull ( AuthenticityResultType . LIVENESS ) ;
1617 }
1718
1819 public static SecurityFeatureChecks IrB900Checks ( this AuthenticityCheckList auth )
You can’t perform that action at this time.
0 commit comments