Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@22e6ed8b</example>
<example>[B@4b3f0960</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected EncryptedRCLResult() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@22e6ed8b</example>
<example>[B@4b3f0960</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
16 changes: 3 additions & 13 deletions src/Regula.DocumentReader.WebClient/Model/FaceDetectionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,17 @@ public partial class FaceDetectionItem : IValidatableObject
/// <summary>
/// Initializes a new instance of the <see cref="FaceDetectionItem" /> class.
/// </summary>
[JsonConstructorAttribute]
protected FaceDetectionItem() { }
/// <summary>
/// Initializes a new instance of the <see cref="FaceDetectionItem" /> class.
/// </summary>
/// <param name="faceDetection">faceDetection (required).</param>
/// <param name="faceDetection">faceDetection.</param>
public FaceDetectionItem(FaceDetection faceDetection = default(FaceDetection))
{
// to ensure "faceDetection" is required (not null)
if (faceDetection == null)
{
throw new ArgumentNullException("faceDetection is a required property for FaceDetectionItem and cannot be null");
}
this.FaceDetection = faceDetection;
}

/// <summary>
/// Gets or Sets FaceDetection
/// </summary>
[DataMember(Name = "FaceDetection", IsRequired = true, EmitDefaultValue = true)]
public FaceDetection FaceDetection { get; set; }
[DataMember(Name = "FaceDetection", EmitDefaultValue = false)]
public FaceDetection? FaceDetection { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,22 @@
/// <summary>
/// Initializes a new instance of the <see cref="FaceDetectionResult" /> class.
/// </summary>
/// <param name="faceDetection">faceDetection (required).</param>
/// <param name="faceDetection">faceDetection.</param>
/// <param name="bufLength">bufLength.</param>
/// <param name="light">light.</param>
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.FACE_DETECTION).</param>
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)
{
// to ensure "faceDetection" is required (not null)
if (faceDetection == null)
{
throw new ArgumentNullException("faceDetection is a required property for FaceDetectionResult and cannot be null");
}
this.FaceDetection = faceDetection;
}

/// <summary>
/// Gets or Sets FaceDetection
/// </summary>
[DataMember(Name = "FaceDetection", IsRequired = true, EmitDefaultValue = true)]
public FaceDetection FaceDetection { get; set; }
[DataMember(Name = "FaceDetection", EmitDefaultValue = false)]
public FaceDetection? FaceDetection { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -101,7 +96,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 99 in src/Regula.DocumentReader.WebClient/Model/FaceDetectionResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'FaceDetectionResult.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected LicenseItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@158096b5</example>
<example>[B@5259b0e4</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected LicenseResult() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@158096b5</example>
<example>[B@5259b0e4</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Loading