Skip to content

Commit 018d048

Browse files
authored
Merge pull request #1 from time-frame/master
Sticky note serialization fix
2 parents 6ca1a67 + 411e8a2 commit 018d048

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
using NetoDotNET.Extensions;
2+
using Newtonsoft.Json;
3+
using System;
24
using System.Collections.Generic;
35
using System.Text;
46

@@ -7,6 +9,8 @@ namespace NetoDotNET.Entities
79
public class AddedOrder
810
{
911
public string OrderID { get; set; }
10-
public StickyNotes[] StickyNotes { get; set; }
12+
13+
[JsonConverter(typeof(SingleOrArrayConverter<StickyNotes>))]
14+
public List<StickyNotes> StickyNotes { get; set; }
1115
}
1216
}

NetoDotNET/Entities/Order/Order.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ public class Order
157157

158158
public OrderPayment[] OrderPayment { get; set; }
159159

160-
public StickyNotes[] StickyNotes { get; set; }
160+
[JsonConverter(typeof(SingleOrArrayConverter<StickyNotes>))]
161+
public List<StickyNotes> StickyNotes { get; set; }
161162
}
162163

163164
public class OrderLine

0 commit comments

Comments
 (0)