@@ -53,13 +53,13 @@ protected FDSIDList() { }
53
53
/// Initializes a new instance of the <see cref="FDSIDList" /> class.
54
54
/// </summary>
55
55
/// <param name="iCAOCode">ICAO code of the issuing country (required).</param>
56
- /// <param name="count">Number of elements in the List (required) .</param>
57
- /// <param name="list">Document identifiers in 'Information Reference Systems' (required) .</param>
56
+ /// <param name="count">Number of elements in the List.</param>
57
+ /// <param name="list">Document identifiers in 'Information Reference Systems'.</param>
58
58
/// <param name="dType">dType (required).</param>
59
59
/// <param name="dFormat">dFormat (required).</param>
60
60
/// <param name="dMRZ">Flag indicating the presence of MRZ on the document (required).</param>
61
61
/// <param name="dDescription">Document description.</param>
62
- /// <param name="dYear">Year of publication of the document (required) .</param>
62
+ /// <param name="dYear">Year of publication of the document.</param>
63
63
/// <param name="dCountryName">Issuing country name (required).</param>
64
64
/// <param name="dStateCode">Issuing state code.</param>
65
65
/// <param name="dStateName">Issuing state name.</param>
@@ -72,30 +72,20 @@ protected FDSIDList() { }
72
72
throw new ArgumentNullException ( "iCAOCode is a required property for FDSIDList and cannot be null" ) ;
73
73
}
74
74
this . ICAOCode = iCAOCode ;
75
- this . Count = count ;
76
- // to ensure "list" is required (not null)
77
- if ( list == null )
78
- {
79
- throw new ArgumentNullException ( "list is a required property for FDSIDList and cannot be null" ) ;
80
- }
81
- this . List = list ;
82
75
this . DType = dType ;
83
76
this . DFormat = dFormat ;
84
77
this . DMRZ = dMRZ ;
85
- // to ensure "dYear" is required (not null)
86
- if ( dYear == null )
87
- {
88
- throw new ArgumentNullException ( "dYear is a required property for FDSIDList and cannot be null" ) ;
89
- }
90
- this . DYear = dYear ;
91
78
// to ensure "dCountryName" is required (not null)
92
79
if ( dCountryName == null )
93
80
{
94
81
throw new ArgumentNullException ( "dCountryName is a required property for FDSIDList and cannot be null" ) ;
95
82
}
96
83
this . DCountryName = dCountryName ;
97
84
this . IsDeprecated = isDeprecated ;
85
+ this . Count = count ;
86
+ this . List = list ;
98
87
this . DDescription = dDescription ;
88
+ this . DYear = dYear ;
99
89
this . DStateCode = dStateCode ;
100
90
this . DStateName = dStateName ;
101
91
}
@@ -111,15 +101,15 @@ protected FDSIDList() { }
111
101
/// Number of elements in the List
112
102
/// </summary>
113
103
/// <value>Number of elements in the List</value>
114
- [ DataMember ( Name = "Count" , IsRequired = true , EmitDefaultValue = true ) ]
115
- public decimal Count { get ; set ; }
104
+ [ DataMember ( Name = "Count" , EmitDefaultValue = false ) ]
105
+ public decimal ? Count { get ; set ; }
116
106
117
107
/// <summary>
118
108
/// Document identifiers in 'Information Reference Systems'
119
109
/// </summary>
120
110
/// <value>Document identifiers in 'Information Reference Systems'</value>
121
- [ DataMember ( Name = "List" , IsRequired = true , EmitDefaultValue = true ) ]
122
- public List < int > List { get ; set ; }
111
+ [ DataMember ( Name = "List" , EmitDefaultValue = false ) ]
112
+ public List < int > ? List { get ; set ; }
123
113
124
114
/// <summary>
125
115
/// Flag indicating the presence of MRZ on the document
@@ -139,8 +129,8 @@ protected FDSIDList() { }
139
129
/// Year of publication of the document
140
130
/// </summary>
141
131
/// <value>Year of publication of the document</value>
142
- [ DataMember ( Name = "dYear" , IsRequired = true , EmitDefaultValue = true ) ]
143
- public string DYear { get ; set ; }
132
+ [ DataMember ( Name = "dYear" , EmitDefaultValue = false ) ]
133
+ public string ? DYear { get ; set ; }
144
134
145
135
/// <summary>
146
136
/// Issuing country name
0 commit comments