Skip to content

Commit 059511e

Browse files
actions-userhleb-albau
authored andcommitted
image quality de-ser bug
1 parent 9aae845 commit 059511e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public partial class AreaArray : IEquatable<AreaArray>, IValidatableObject
3535
/// </summary>
3636
/// <param name="list">list.</param>
3737
/// <param name="points">points.</param>
38-
public AreaArray(List<RectangleCoordinates> list = default(List<RectangleCoordinates>), PointArray points = default(PointArray))
38+
public AreaArray(List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
3939
{
4040
this.List = list;
4141
this.Points = points;
@@ -51,7 +51,7 @@ public partial class AreaArray : IEquatable<AreaArray>, IValidatableObject
5151
/// Gets or Sets Points
5252
/// </summary>
5353
[DataMember(Name="Points", EmitDefaultValue=false)]
54-
public PointArray Points { get; set; }
54+
public List<PointArray> Points { get; set; }
5555

5656
/// <summary>
5757
/// Returns the string presentation of the object
@@ -105,8 +105,9 @@ public bool Equals(AreaArray input)
105105
) &&
106106
(
107107
this.Points == input.Points ||
108-
(this.Points != null &&
109-
this.Points.Equals(input.Points))
108+
this.Points != null &&
109+
input.Points != null &&
110+
this.Points.SequenceEqual(input.Points)
110111
);
111112
}
112113

0 commit comments

Comments
 (0)