Skip to content

Commit b0d4c13

Browse files
committed
update C# samples
1 parent 47d9912 commit b0d4c13

62 files changed

Lines changed: 173 additions & 173 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Activity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public Activity(Option<Dictionary<string, List<ActivityOutputElementRepresentati
5454
/// Gets or Sets ActivityOutputs
5555
/// </summary>
5656
[JsonPropertyName("activity_outputs")]
57-
public Dictionary<string, List<ActivityOutputElementRepresentation>>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } }
57+
public Dictionary<string, List<ActivityOutputElementRepresentation>>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } }
5858

5959
/// <summary>
6060
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public ActivityOutputElementRepresentation(Option<string?> prop1 = default, Opti
5656
/// Gets or Sets Prop1
5757
/// </summary>
5858
[JsonPropertyName("prop1")]
59-
public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } }
59+
public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } }
6060

6161
/// <summary>
6262
/// Used to track the state of Prop2
@@ -69,7 +69,7 @@ public ActivityOutputElementRepresentation(Option<string?> prop1 = default, Opti
6969
/// Gets or Sets Prop2
7070
/// </summary>
7171
[JsonPropertyName("prop2")]
72-
public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } }
72+
public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } }
7373

7474
/// <summary>
7575
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
6868
/// Gets or Sets Anytype1
6969
/// </summary>
7070
[JsonPropertyName("anytype_1")]
71-
public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } }
71+
public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } }
7272

7373
/// <summary>
7474
/// Used to track the state of EmptyMap
@@ -82,7 +82,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
8282
/// </summary>
8383
/// <value>an object with no declared properties and no undeclared properties, hence it&#39;s an empty map.</value>
8484
[JsonPropertyName("empty_map")]
85-
public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } }
85+
public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } }
8686

8787
/// <summary>
8888
/// Used to track the state of MapOfMapProperty
@@ -95,7 +95,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
9595
/// Gets or Sets MapOfMapProperty
9696
/// </summary>
9797
[JsonPropertyName("map_of_map_property")]
98-
public Dictionary<string, Dictionary<string, string>>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } }
98+
public Dictionary<string, Dictionary<string, string>>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } }
9999

100100
/// <summary>
101101
/// Used to track the state of MapProperty
@@ -108,7 +108,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
108108
/// Gets or Sets MapProperty
109109
/// </summary>
110110
[JsonPropertyName("map_property")]
111-
public Dictionary<string, string>? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } }
111+
public Dictionary<string, string>? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } }
112112

113113
/// <summary>
114114
/// Used to track the state of MapWithUndeclaredPropertiesAnytype1
@@ -121,7 +121,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
121121
/// Gets or Sets MapWithUndeclaredPropertiesAnytype1
122122
/// </summary>
123123
[JsonPropertyName("map_with_undeclared_properties_anytype_1")]
124-
public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } }
124+
public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } }
125125

126126
/// <summary>
127127
/// Used to track the state of MapWithUndeclaredPropertiesAnytype2
@@ -134,7 +134,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
134134
/// Gets or Sets MapWithUndeclaredPropertiesAnytype2
135135
/// </summary>
136136
[JsonPropertyName("map_with_undeclared_properties_anytype_2")]
137-
public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } }
137+
public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } }
138138

139139
/// <summary>
140140
/// Used to track the state of MapWithUndeclaredPropertiesAnytype3
@@ -147,7 +147,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
147147
/// Gets or Sets MapWithUndeclaredPropertiesAnytype3
148148
/// </summary>
149149
[JsonPropertyName("map_with_undeclared_properties_anytype_3")]
150-
public Dictionary<string, Object>? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } }
150+
public Dictionary<string, Object>? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } }
151151

152152
/// <summary>
153153
/// Used to track the state of MapWithUndeclaredPropertiesString
@@ -160,7 +160,7 @@ public AdditionalPropertiesClass(Option<Object?> anytype1 = default, Option<Obje
160160
/// Gets or Sets MapWithUndeclaredPropertiesString
161161
/// </summary>
162162
[JsonPropertyName("map_with_undeclared_properties_string")]
163-
public Dictionary<string, string>? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } }
163+
public Dictionary<string, string>? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } }
164164

165165
/// <summary>
166166
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Animal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Animal(Option<string?> color = default)
6262
/// Gets or Sets Color
6363
/// </summary>
6464
[JsonPropertyName("color")]
65-
public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } }
65+
public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } }
6666

6767
/// <summary>
6868
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ApiResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public ApiResponse(Option<int?> code = default, Option<string?> message = defaul
5858
/// Gets or Sets Code
5959
/// </summary>
6060
[JsonPropertyName("code")]
61-
public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } }
61+
public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } }
6262

6363
/// <summary>
6464
/// Used to track the state of Message
@@ -71,7 +71,7 @@ public ApiResponse(Option<int?> code = default, Option<string?> message = defaul
7171
/// Gets or Sets Message
7272
/// </summary>
7373
[JsonPropertyName("message")]
74-
public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } }
74+
public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } }
7575

7676
/// <summary>
7777
/// Used to track the state of Type
@@ -84,7 +84,7 @@ public ApiResponse(Option<int?> code = default, Option<string?> message = defaul
8484
/// Gets or Sets Type
8585
/// </summary>
8686
[JsonPropertyName("type")]
87-
public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } }
87+
public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } }
8888

8989
/// <summary>
9090
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Apple.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Apple(Option<string?> colorCode = default, Option<string?> cultivar = def
5858
/// Gets or Sets ColorCode
5959
/// </summary>
6060
[JsonPropertyName("color_code")]
61-
public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } }
61+
public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } }
6262

6363
/// <summary>
6464
/// Used to track the state of Cultivar
@@ -71,7 +71,7 @@ public Apple(Option<string?> colorCode = default, Option<string?> cultivar = def
7171
/// Gets or Sets Cultivar
7272
/// </summary>
7373
[JsonPropertyName("cultivar")]
74-
public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } }
74+
public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } }
7575

7676
/// <summary>
7777
/// Used to track the state of Origin
@@ -84,7 +84,7 @@ public Apple(Option<string?> colorCode = default, Option<string?> cultivar = def
8484
/// Gets or Sets Origin
8585
/// </summary>
8686
[JsonPropertyName("origin")]
87-
public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } }
87+
public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } }
8888

8989
/// <summary>
9090
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AppleReq.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AppleReq(string cultivar, Option<bool?> mealy = default)
6262
/// Gets or Sets Mealy
6363
/// </summary>
6464
[JsonPropertyName("mealy")]
65-
public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } }
65+
public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } }
6666

6767
/// <summary>
6868
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ArrayOfArrayOfNumberOnly(Option<List<List<decimal>>?> arrayArrayNumber =
5454
/// Gets or Sets ArrayArrayNumber
5555
/// </summary>
5656
[JsonPropertyName("ArrayArrayNumber")]
57-
public List<List<decimal>>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } }
57+
public List<List<decimal>>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } }
5858

5959
/// <summary>
6060
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ArrayOfNumberOnly(Option<List<decimal>?> arrayNumber = default)
5454
/// Gets or Sets ArrayNumber
5555
/// </summary>
5656
[JsonPropertyName("ArrayNumber")]
57-
public List<decimal>? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } }
57+
public List<decimal>? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } }
5858

5959
/// <summary>
6060
/// Returns the string presentation of the object

samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public ArrayTest(Option<List<List<long>>?> arrayArrayOfInteger = default, Option
5858
/// Gets or Sets ArrayArrayOfInteger
5959
/// </summary>
6060
[JsonPropertyName("array_array_of_integer")]
61-
public List<List<long>>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } }
61+
public List<List<long>>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } }
6262

6363
/// <summary>
6464
/// Used to track the state of ArrayArrayOfModel
@@ -71,7 +71,7 @@ public ArrayTest(Option<List<List<long>>?> arrayArrayOfInteger = default, Option
7171
/// Gets or Sets ArrayArrayOfModel
7272
/// </summary>
7373
[JsonPropertyName("array_array_of_model")]
74-
public List<List<ReadOnlyFirst>>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } }
74+
public List<List<ReadOnlyFirst>>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } }
7575

7676
/// <summary>
7777
/// Used to track the state of ArrayOfString
@@ -84,7 +84,7 @@ public ArrayTest(Option<List<List<long>>?> arrayArrayOfInteger = default, Option
8484
/// Gets or Sets ArrayOfString
8585
/// </summary>
8686
[JsonPropertyName("array_of_string")]
87-
public List<string>? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } }
87+
public List<string>? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } }
8888

8989
/// <summary>
9090
/// Returns the string presentation of the object

0 commit comments

Comments
 (0)