Skip to content

Commit 541b2a3

Browse files
Merge pull request #184 from regulaforensics/fix/sp-22886
SP-22886 - optional FaceDetection
2 parents c4c93a3 + 5fc3834 commit 541b2a3

File tree

6 files changed

+10
-25
lines changed

6 files changed

+10
-25
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@22e6ed8b</example>
59+
<example>[B@4b3f0960</example>
6060
*/
6161
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] EncryptedRCL { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected EncryptedRCLResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@22e6ed8b</example>
65+
<example>[B@4b3f0960</example>
6666
*/
6767
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] EncryptedRCL { get; set; }

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,17 @@ public partial class FaceDetectionItem : IValidatableObject
3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="FaceDetectionItem" /> class.
3737
/// </summary>
38-
[JsonConstructorAttribute]
39-
protected FaceDetectionItem() { }
40-
/// <summary>
41-
/// Initializes a new instance of the <see cref="FaceDetectionItem" /> class.
42-
/// </summary>
43-
/// <param name="faceDetection">faceDetection (required).</param>
38+
/// <param name="faceDetection">faceDetection.</param>
4439
public FaceDetectionItem(FaceDetection faceDetection = default(FaceDetection))
4540
{
46-
// to ensure "faceDetection" is required (not null)
47-
if (faceDetection == null)
48-
{
49-
throw new ArgumentNullException("faceDetection is a required property for FaceDetectionItem and cannot be null");
50-
}
5141
this.FaceDetection = faceDetection;
5242
}
5343

5444
/// <summary>
5545
/// Gets or Sets FaceDetection
5646
/// </summary>
57-
[DataMember(Name = "FaceDetection", IsRequired = true, EmitDefaultValue = true)]
58-
public FaceDetection FaceDetection { get; set; }
47+
[DataMember(Name = "FaceDetection", EmitDefaultValue = false)]
48+
public FaceDetection? FaceDetection { get; set; }
5949

6050
/// <summary>
6151
/// Returns the string presentation of the object

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,22 @@ protected FaceDetectionResult() { }
4141
/// <summary>
4242
/// Initializes a new instance of the <see cref="FaceDetectionResult" /> class.
4343
/// </summary>
44-
/// <param name="faceDetection">faceDetection (required).</param>
44+
/// <param name="faceDetection">faceDetection.</param>
4545
/// <param name="bufLength">bufLength.</param>
4646
/// <param name="light">light.</param>
4747
/// <param name="listIdx">listIdx.</param>
4848
/// <param name="pageIdx">pageIdx.</param>
4949
/// <param name="resultType">resultType (required) (default to Result.FACE_DETECTION).</param>
5050
public FaceDetectionResult(FaceDetection faceDetection = default(FaceDetection), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.FACE_DETECTION) : base(bufLength, light, listIdx, pageIdx, resultType)
5151
{
52-
// to ensure "faceDetection" is required (not null)
53-
if (faceDetection == null)
54-
{
55-
throw new ArgumentNullException("faceDetection is a required property for FaceDetectionResult and cannot be null");
56-
}
5752
this.FaceDetection = faceDetection;
5853
}
5954

6055
/// <summary>
6156
/// Gets or Sets FaceDetection
6257
/// </summary>
63-
[DataMember(Name = "FaceDetection", IsRequired = true, EmitDefaultValue = true)]
64-
public FaceDetection FaceDetection { get; set; }
58+
[DataMember(Name = "FaceDetection", EmitDefaultValue = false)]
59+
public FaceDetection? FaceDetection { get; set; }
6560

6661
/// <summary>
6762
/// Returns the string presentation of the object

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected LicenseItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@158096b5</example>
59+
<example>[B@5259b0e4</example>
6060
*/
6161
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] License { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected LicenseResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@158096b5</example>
65+
<example>[B@5259b0e4</example>
6666
*/
6767
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] License { get; set; }

0 commit comments

Comments
 (0)