Skip to content

Commit 9df0e64

Browse files
Merge pull request #261 from regulaforensics/develop
Develop -> Stable
2 parents fd511ce + 4f6a401 commit 9df0e64

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/Regula.DocumentReader.WebClient/Model/Ext/Autheticity/AuthenticityResult.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Linq;
23

34
namespace 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
}

src/Regula.DocumentReader.WebClient/Model/Ext/Autheticity/Autheticity.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Linq;
1+
using System;
2+
using System.Linq;
23

34
namespace 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)

0 commit comments

Comments
 (0)