File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Source/FikaAmazonAPI/ConstructFeed/Messages Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
1
+ using System ;
2
+ using System . Collections . Generic ;
2
3
using System . Xml . Serialization ;
3
4
4
5
namespace FikaAmazonAPI . ConstructFeed . Messages
@@ -8,8 +9,15 @@ public class CartonContentsRequest
8
9
{
9
10
[ XmlElement ( ElementName = "ShipmentId" ) ]
10
11
public string ShipmentId { get ; set ; }
12
+
11
13
[ XmlElement ( ElementName = "NumCartons" ) ]
12
- public int NumCartons { get { return Carton . Count ; } }
14
+ public int NumCartons
15
+ {
16
+ get { return Carton . Count ; }
17
+ [ Obsolete ( "Only used for xml serialization" , error : true ) ]
18
+ set { throw new NotSupportedException ( ) ; }
19
+ }
20
+
13
21
[ XmlElement ( ElementName = "Carton" ) ]
14
22
public List < Carton > Carton { get ; set ; } = new List < Carton > ( ) ;
15
23
}
You can’t perform that action at this time.
0 commit comments