File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
tests/Microsoft.Graph.DotnetCore.Core.Test/TestModels Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
// ------------------------------------------------------------------------------
4
4
5
5
6
+ using System . Runtime . Serialization ;
7
+
6
8
namespace Microsoft . Graph . DotnetCore . Core . Test . TestModels
7
9
{
8
10
/// <summary>
9
11
/// Enum for testing enum serialization and deserialization.
10
12
/// </summary>
11
13
public enum EnumType
12
14
{
15
+ [ EnumMember ( Value = "value" ) ]
13
16
Value ,
14
17
}
15
18
}
Original file line number Diff line number Diff line change 3
3
// ------------------------------------------------------------------------------
4
4
5
5
6
+ using System . Runtime . Serialization ;
7
+
6
8
namespace Microsoft . Graph . DotnetCore . Core . Test . TestModels
7
9
{
8
10
/// <summary>
@@ -11,8 +13,9 @@ namespace Microsoft.Graph.DotnetCore.Core.Test.TestModels
11
13
[ System . Flags ]
12
14
public enum EnumTypeWithFlags
13
15
{
16
+ [ EnumMember ( Value = "firstValue" ) ]
14
17
FirstValue = 1 ,
15
-
18
+ [ EnumMember ( Value = "secondValue" ) ]
16
19
SecondValue = 2
17
20
}
18
21
}
Original file line number Diff line number Diff line change 2
2
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3
3
// ------------------------------------------------------------------------------
4
4
5
+ using System . Runtime . Serialization ;
6
+
5
7
namespace Microsoft . Graph . DotnetCore . Core . Test . TestModels . ServiceModels
6
8
{
7
9
/// <summary>
@@ -13,11 +15,13 @@ public enum TestBodyType
13
15
/// <summary>
14
16
/// Text
15
17
/// </summary>
18
+ [ EnumMember ( Value = "text" ) ]
16
19
Text = 0 ,
17
20
18
21
/// <summary>
19
22
/// Html
20
23
/// </summary>
24
+ [ EnumMember ( Value = "html" ) ]
21
25
Html = 1 ,
22
26
23
27
}
You can’t perform that action at this time.
0 commit comments