@@ -1269,9 +1269,9 @@ public static string CreateParameterDef(IEnumerable<OdcmParameter> parameters)
1269
1269
* The {0}.
1270
1270
* {1}
1271
1271
*/
1272
- @SerializedName(""{2}"")
1272
+ @SerializedName(value = ""{2}"", alternate = {{""{3}""}} )
1273
1273
@Expose
1274
- public {3 } {4 };
1274
+ public {4 } {5 };
1275
1275
1276
1276
" ;
1277
1277
foreach ( var p in parameters )
@@ -1281,6 +1281,7 @@ public static string CreateParameterDef(IEnumerable<OdcmParameter> parameters)
1281
1281
p . ParamName ( ) . SplitCamelCase ( ) ,
1282
1282
ReplaceInvalidCharacters ( p . LongDescription ) ,
1283
1283
p . ParamName ( ) ,
1284
+ p . ParamName ( ) . ToUpperFirstChar ( ) ,
1284
1285
p . ParamType ( ) ,
1285
1286
p . ParamName ( ) . SanitizePropertyName ( p ) . ToLowerFirstChar ( )
1286
1287
) ;
@@ -1413,19 +1414,19 @@ public static string CreatePropertyDef(IEnumerable<OdcmProperty> properties, boo
1413
1414
var format =
1414
1415
@" /**
1415
1416
* The {0}.
1416
- * {4 }
1417
+ * {1 }
1417
1418
*/
1418
- @SerializedName(""{1 }"")
1419
+ @SerializedName(value = ""{2 }"", alternate = {{""{3}""}} )
1419
1420
@Expose
1420
- public {2 } {3 };
1421
+ public {4 } {5 };
1421
1422
1422
1423
" ;
1423
1424
var collectionFormat =
1424
1425
@" /**
1425
1426
* The {0}.
1426
- * {4 }
1427
+ * {1 }
1427
1428
*/
1428
- public {2 } {3 };
1429
+ public {4 } {5 };
1429
1430
1430
1431
" ;
1431
1432
@@ -1454,10 +1455,11 @@ public static string CreatePropertyDef(IEnumerable<OdcmProperty> properties, boo
1454
1455
1455
1456
sb . AppendFormat ( propertyFormat ,
1456
1457
propertyName . SplitCamelCase ( ) ,
1458
+ GetSanitizedDescription ( property ) ,
1457
1459
property . Name ,
1460
+ propertyName ,
1458
1461
propertyType ,
1459
- property . Name . ToLowerFirstChar ( ) . SanitizePropertyName ( property ) ,
1460
- GetSanitizedDescription ( property ) ) ;
1462
+ property . Name . ToLowerFirstChar ( ) . SanitizePropertyName ( property ) ) ;
1461
1463
}
1462
1464
return sb . ToString ( ) ;
1463
1465
}
0 commit comments