-
-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathSocialMediaAccountAttributesInResponse.cs
More file actions
224 lines (202 loc) · 9.47 KB
/
SocialMediaAccountAttributesInResponse.cs
File metadata and controls
224 lines (202 loc) · 9.47 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
// <auto-generated/>
#nullable enable
#pragma warning disable CS8625
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
using System.IO;
using System;
namespace OpenApiKiotaEndToEndTests.ModelStateValidation.GeneratedCode.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class SocialMediaAccountAttributesInResponse : IBackedModel, IParsable
#pragma warning restore CS1591
{
/// <summary>The age property</summary>
public double? Age
{
get { return BackingStore?.Get<double?>("age"); }
set { BackingStore?.Set("age", value); }
}
/// <summary>The alternativeId property</summary>
public Guid? AlternativeId
{
get { return BackingStore?.Get<Guid?>("alternativeId"); }
set { BackingStore?.Set("alternativeId", value); }
}
/// <summary>The backgroundPicture property</summary>
public string? BackgroundPicture
{
get { return BackingStore?.Get<string?>("backgroundPicture"); }
set { BackingStore?.Set("backgroundPicture", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The countryCode property</summary>
public string? CountryCode
{
get { return BackingStore?.Get<string?>("countryCode"); }
set { BackingStore?.Set("countryCode", value); }
}
/// <summary>The creditCard property</summary>
public string? CreditCard
{
get { return BackingStore?.Get<string?>("creditCard"); }
set { BackingStore?.Set("creditCard", value); }
}
/// <summary>The email property</summary>
public string? Email
{
get { return BackingStore?.Get<string?>("email"); }
set { BackingStore?.Set("email", value); }
}
/// <summary>The firstName property</summary>
public string? FirstName
{
get { return BackingStore?.Get<string?>("firstName"); }
set { BackingStore?.Set("firstName", value); }
}
/// <summary>The lastName property</summary>
public string? LastName
{
get { return BackingStore?.Get<string?>("lastName"); }
set { BackingStore?.Set("lastName", value); }
}
/// <summary>The nextRevalidation property</summary>
public string? NextRevalidation
{
get { return BackingStore?.Get<string?>("nextRevalidation"); }
set { BackingStore?.Set("nextRevalidation", value); }
}
/// <summary>The password property</summary>
public byte[]? Password
{
get { return BackingStore?.Get<byte[]?>("password"); }
set { BackingStore?.Set("password", value); }
}
/// <summary>The phone property</summary>
public string? Phone
{
get { return BackingStore?.Get<string?>("phone"); }
set { BackingStore?.Set("phone", value); }
}
/// <summary>The planet property</summary>
public string? Planet
{
get { return BackingStore?.Get<string?>("planet"); }
set { BackingStore?.Set("planet", value); }
}
/// <summary>The profilePicture property</summary>
public string? ProfilePicture
{
get { return BackingStore?.Get<string?>("profilePicture"); }
set { BackingStore?.Set("profilePicture", value); }
}
/// <summary>The tags property</summary>
public List<string>? Tags
{
get { return BackingStore?.Get<List<string>?>("tags"); }
set { BackingStore?.Set("tags", value); }
}
/// <summary>The userName property</summary>
public string? UserName
{
get { return BackingStore?.Get<string?>("userName"); }
set { BackingStore?.Set("userName", value); }
}
/// <summary>The validatedAt property</summary>
public DateTimeOffset? ValidatedAt
{
get { return BackingStore?.Get<DateTimeOffset?>("validatedAt"); }
set { BackingStore?.Set("validatedAt", value); }
}
/// <summary>The validatedAtDate property</summary>
public Date? ValidatedAtDate
{
get { return BackingStore?.Get<Date?>("validatedAtDate"); }
set { BackingStore?.Set("validatedAtDate", value); }
}
/// <summary>The validatedAtTime property</summary>
public Time? ValidatedAtTime
{
get { return BackingStore?.Get<Time?>("validatedAtTime"); }
set { BackingStore?.Set("validatedAtTime", value); }
}
/// <summary>
/// Instantiates a new <see cref="global::OpenApiKiotaEndToEndTests.ModelStateValidation.GeneratedCode.Models.SocialMediaAccountAttributesInResponse"/> and sets the default values.
/// </summary>
public SocialMediaAccountAttributesInResponse()
{
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::OpenApiKiotaEndToEndTests.ModelStateValidation.GeneratedCode.Models.SocialMediaAccountAttributesInResponse"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::OpenApiKiotaEndToEndTests.ModelStateValidation.GeneratedCode.Models.SocialMediaAccountAttributesInResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::OpenApiKiotaEndToEndTests.ModelStateValidation.GeneratedCode.Models.SocialMediaAccountAttributesInResponse();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "age", n => { Age = n.GetDoubleValue(); } },
{ "alternativeId", n => { AlternativeId = n.GetGuidValue(); } },
{ "backgroundPicture", n => { BackgroundPicture = n.GetStringValue(); } },
{ "countryCode", n => { CountryCode = n.GetStringValue(); } },
{ "creditCard", n => { CreditCard = n.GetStringValue(); } },
{ "email", n => { Email = n.GetStringValue(); } },
{ "firstName", n => { FirstName = n.GetStringValue(); } },
{ "lastName", n => { LastName = n.GetStringValue(); } },
{ "nextRevalidation", n => { NextRevalidation = n.GetStringValue(); } },
{ "password", n => { Password = n.GetByteArrayValue(); } },
{ "phone", n => { Phone = n.GetStringValue(); } },
{ "planet", n => { Planet = n.GetStringValue(); } },
{ "profilePicture", n => { ProfilePicture = n.GetStringValue(); } },
{ "tags", n => { Tags = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "userName", n => { UserName = n.GetStringValue(); } },
{ "validatedAt", n => { ValidatedAt = n.GetDateTimeOffsetValue(); } },
{ "validatedAtDate", n => { ValidatedAtDate = n.GetDateValue(); } },
{ "validatedAtTime", n => { ValidatedAtTime = n.GetTimeValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteDoubleValue("age", Age);
writer.WriteGuidValue("alternativeId", AlternativeId);
writer.WriteStringValue("backgroundPicture", BackgroundPicture);
writer.WriteStringValue("countryCode", CountryCode);
writer.WriteStringValue("creditCard", CreditCard);
writer.WriteStringValue("email", Email);
writer.WriteStringValue("firstName", FirstName);
writer.WriteStringValue("lastName", LastName);
writer.WriteStringValue("nextRevalidation", NextRevalidation);
writer.WriteByteArrayValue("password", Password);
writer.WriteStringValue("phone", Phone);
writer.WriteStringValue("planet", Planet);
writer.WriteStringValue("profilePicture", ProfilePicture);
writer.WriteCollectionOfPrimitiveValues<string>("tags", Tags);
writer.WriteStringValue("userName", UserName);
writer.WriteDateTimeOffsetValue("validatedAt", ValidatedAt);
writer.WriteDateValue("validatedAtDate", ValidatedAtDate);
writer.WriteTimeValue("validatedAtTime", ValidatedAtTime);
}
}
}
#pragma warning restore CS0618