-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTestTypes.cs
74 lines (62 loc) · 1.51 KB
/
TestTypes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System.Collections.Generic;
using MessagePack;
using ProtoBuf;
namespace SerializationBenchmark
{
[ProtoContract]
[MessagePackObject]
public sealed class ServicePlan
{
[ProtoMember(1)]
[Key(0)]
public string? ServicePlanId { get; set; }
[ProtoMember(2)]
[Key(1)]
public string? ServicePlanName { get; set; }
[ProtoMember(3)]
[Key(2)]
public string? ProvisioningStatus { get; set; }
[ProtoMember(4)]
[Key(3)]
public string? AppliesTo { get; set; }
[ProtoMember(5)]
[Key(6)]
public int Count { get; set; }
}
public enum Color
{
Red,
Green,
Blue,
Yellow,
Orange,
}
[ProtoContract]
[MessagePackObject]
public sealed class UserLicensesResponse
{
[ProtoMember(1)]
[Key(0)]
public IList<UserLicense>? Licenses { get; set; }
}
[ProtoContract]
[MessagePackObject]
public sealed class UserLicense
{
[ProtoMember(1)]
[Key(0)]
public string? ObjectId { get; set; }
[ProtoMember(2)]
[Key(1)]
public string? SkuId { get; set; }
[ProtoMember(3)]
[Key(2)]
public string? SkuPartNumber { get; set; }
[ProtoMember(4)]
[Key(3)]
public IList<ServicePlan> ServicePlans { get; set; }
[ProtoMember(5)]
[Key(4)]
public IDictionary<string, Color>? FruitColors { get; set; }
}
}