Skip to content

Commit 6ccb901

Browse files
Add PercentValue
1 parent 408f3eb commit 6ccb901

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ protected AuthenticityCheckResultItem() { }
5858
/// <param name="type">Same as authenticity result type, but used for safe parsing of not-described values. See authenticity result type (required) (default to 0).</param>
5959
/// <param name="elementResult">elementResult.</param>
6060
/// <param name="elementDiagnose">elementDiagnose.</param>
61-
public AuthenticityCheckResultItem(int type = 0, int elementResult = default(int), int elementDiagnose = default(int))
61+
/// <param name="percentValue">percentValue.</param>
62+
public AuthenticityCheckResultItem(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = 0)
6263
{
6364
// to ensure "type" is required (not null)
6465
if (type == null)
@@ -69,7 +70,7 @@ protected AuthenticityCheckResultItem() { }
6970
{
7071
this.Type = type;
7172
}
72-
73+
this.PercentValue = percentValue;
7374
this.ElementResult = elementResult;
7475
this.ElementDiagnose = elementDiagnose;
7576
}
@@ -81,6 +82,13 @@ protected AuthenticityCheckResultItem() { }
8182
[DataMember(Name="Type", EmitDefaultValue=true)]
8283
public int Type { get; set; }
8384

85+
/// <summary>
86+
/// Gets or Sets PercentValue
87+
/// </summary>
88+
[DataMember(Name="PercentValue", EmitDefaultValue=false)]
89+
public int PercentValue { get; set; }
90+
91+
8492
/// <summary>
8593
/// Gets or Sets ElementResult
8694
/// </summary>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public RecognitionRequest(ProcessParams param, ContainerList containerList, stri
2424
{
2525
}
2626

27+
public RecognitionRequest(ProcessParams param, List<ProcessRequestImage> images, string extPortrait, string tag = null)
28+
: base(param, images, tag, extPortrait:extPortrait)
29+
{
30+
}
31+
2732
public string Json => Newtonsoft.Json.JsonConvert.SerializeObject(this);
2833
}
2934
}

0 commit comments

Comments
 (0)