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@638eef98</example>
<example>[B@3e7785cf</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 @@
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@638eef98</example>
<example>[B@3e7785cf</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down Expand Up @@ -105,7 +105,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 108 in src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'EncryptedRCLResult.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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static ImagesField GetField(this Images imgs, GraphicFieldType fieldType)
{
foreach (var field in imgs.FieldList)
{
if (field.FieldType == fieldType) return field;
if (field.FieldType == (int)fieldType) return field;
}

return null;
Expand All @@ -20,7 +20,7 @@ public static List<ImagesField> GetFields(this Images imgs, GraphicFieldType fie

foreach (var field in imgs.FieldList)
{
if (field.FieldType == fieldType)
if (field.FieldType == (int)fieldType)
fields.Add(field);
}

Expand Down
17 changes: 9 additions & 8 deletions src/Regula.DocumentReader.WebClient/Model/ImagesField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ namespace Regula.DocumentReader.WebClient.Model
[DataContract(Name = "ImagesField")]
public partial class ImagesField : IValidatableObject
{

/// <summary>
/// Gets or Sets FieldType
/// </summary>
[DataMember(Name = "fieldType", IsRequired = true, EmitDefaultValue = true)]
public GraphicFieldType FieldType { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ImagesField" /> class.
/// </summary>
Expand All @@ -47,10 +41,10 @@ protected ImagesField() { }
/// Initializes a new instance of the <see cref="ImagesField" /> class.
/// </summary>
/// <param name="fieldName">Human readable field name. Do not bind to this name - use GraphicFieldType instead. (required).</param>
/// <param name="fieldType">fieldType (required).</param>
/// <param name="fieldType">The value can be from GraphicFieldType or TextFieldType enum. (required).</param>
/// <param name="valueList">valueList (required).</param>
/// <param name="valueCount">Field value count.</param>
public ImagesField(string fieldName = default(string), GraphicFieldType fieldType = default(GraphicFieldType), List<ImagesFieldValue> valueList = default(List<ImagesFieldValue>), decimal valueCount = default(decimal))
public ImagesField(string fieldName = default(string), int fieldType = default(int), List<ImagesFieldValue> valueList = default(List<ImagesFieldValue>), decimal valueCount = default(decimal))
{
// to ensure "fieldName" is required (not null)
if (fieldName == null)
Expand All @@ -75,6 +69,13 @@ protected ImagesField() { }
[DataMember(Name = "fieldName", IsRequired = true, EmitDefaultValue = true)]
public string FieldName { get; set; }

/// <summary>
/// The value can be from GraphicFieldType or TextFieldType enum.
/// </summary>
/// <value>The value can be from GraphicFieldType or TextFieldType enum.</value>
[DataMember(Name = "fieldType", IsRequired = true, EmitDefaultValue = true)]
public int FieldType { get; set; }

/// <summary>
/// Gets or Sets ValueList
/// </summary>
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@19a26868</example>
<example>[B@62d85d39</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@19a26868</example>
<example>[B@62d85d39</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Loading