-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathBoopRequest.cs
More file actions
298 lines (285 loc) · 7.99 KB
/
Copy pathBoopRequest.cs
File metadata and controls
298 lines (285 loc) · 7.99 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
/*
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.20.8
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = VRChat.API.Client.FileParameter;
using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter;
namespace VRChat.API.Model
{
/// <summary>
/// See NotificationDetailBoop; either inventoryItemId (accessed through .id) by itself, or emojiId (accessed through .metadata.fileId or built-in emoji name) with optional emojiVersion
/// </summary>
[DataContract(Name = "BoopRequest")]
public partial class BoopRequest : IEquatable<BoopRequest>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="BoopRequest" /> class.
/// </summary>
/// <param name="emojiId">Either a FileID or a string constant for default emojis.</param>
/// <param name="emojiVersion">emojiVersion.</param>
/// <param name="inventoryItemId">inventoryItemId.</param>
public BoopRequest(string emojiId = default, int emojiVersion = default, string inventoryItemId = default)
{
this.EmojiId = emojiId;
this.EmojiVersion = emojiVersion;
this.InventoryItemId = inventoryItemId;
}
/// <summary>
/// Either a FileID or a string constant for default emojis
/// </summary>
/// <value>Either a FileID or a string constant for default emojis</value>
/*
<example>Angry:
value: default_angry
Arrow Point:
value: default_arrowpoint
Bats:
value: default_bats
Beachball:
value: default_beachball
Beer:
value: default_beer
Blushing:
value: default_blushing
Boo:
value: default_boo
Broken Heart:
value: default_broken_heart
Candy:
value: default_candy
Candy Cane:
value: default_candy_cane
Candy Corn:
value: default_candy_corn
CantSee:
value: default_cantsee
Champagne:
value: default_champagne
Cloud:
value: default_cloud
Coal:
value: default_coal
Confetti:
value: default_confetti
Crying:
value: default_crying
Drink:
value: default_drink
Exclamation:
value: default_exclamation
Fire:
value: default_fire
Frown:
value: default_frown
Gift:
value: default_gift
Gifts:
value: default_gifts
Gingerbread:
value: default_gingerbread
Go:
value: default_go
Hand Wave:
value: default_hand_wave
Hang Ten:
value: default_hang_ten
Heart:
value: default_heart
Hourglass:
value: default_hourglass
Ice Cream:
value: default_ice_cream
In Love:
value: default_in_love
Jack O Lantern:
value: default_jack_o_lantern
Keyboard:
value: default_keyboard
Kiss:
value: default_kiss
Laugh:
value: default_laugh
Life Ring:
value: default_life_ring
Mistletoe:
value: default_mistletoe
Money:
value: default_money
Music Note:
value: default_music_note
Neon Shades:
value: default_neon_shades
NoHeadphones:
value: default_noheadphones
NoMic:
value: default_nomic
Pineapple:
value: default_pineapple
Pizza:
value: default_pizza
Portal:
value: default_portal
Question:
value: default_question
Shush:
value: default_shush
Skull:
value: default_skull
Smile:
value: default_smile
Snow Fall:
value: default_snow_fall
Snowball:
value: default_snowball
Splash:
value: default_splash
Spooky Ghost:
value: default_spooky_ghost
Stoic:
value: default_stoic
Stop:
value: default_stop
Sun Lotion:
value: default_sun_lotion
Sunglasses:
value: default_sunglasses
Thinking:
value: default_thinking
Thumbs Down:
value: default_thumbs_down
Thumbs Up:
value: default_thumbs_up
Tomato:
value: default_tomato
Tongue Out:
value: default_tongue_out
Web:
value: default_web
Wow:
value: default_wow
Zzz:
value: default_zzz
</example>
*/
[DataMember(Name = "emojiId", EmitDefaultValue = false)]
public string EmojiId { get; set; }
/// <summary>
/// Gets or Sets EmojiVersion
/// </summary>
[DataMember(Name = "emojiVersion", EmitDefaultValue = false)]
public int EmojiVersion { get; set; }
/// <summary>
/// Gets or Sets InventoryItemId
/// </summary>
/*
<example>inv_10bce5b0-2d2b-44e0-900d-db6534615162</example>
*/
[DataMember(Name = "inventoryItemId", EmitDefaultValue = false)]
public string InventoryItemId { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class BoopRequest {\n");
sb.Append(" EmojiId: ").Append(EmojiId).Append("\n");
sb.Append(" EmojiVersion: ").Append(EmojiVersion).Append("\n");
sb.Append(" InventoryItemId: ").Append(InventoryItemId).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as BoopRequest);
}
/// <summary>
/// Returns true if BoopRequest instances are equal
/// </summary>
/// <param name="input">Instance of BoopRequest to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(BoopRequest input)
{
if (input == null)
{
return false;
}
return
(
this.EmojiId == input.EmojiId ||
(this.EmojiId != null &&
this.EmojiId.Equals(input.EmojiId))
) &&
(
this.EmojiVersion == input.EmojiVersion ||
this.EmojiVersion.Equals(input.EmojiVersion)
) &&
(
this.InventoryItemId == input.InventoryItemId ||
(this.InventoryItemId != null &&
this.InventoryItemId.Equals(input.InventoryItemId))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.EmojiId != null)
{
hashCode = (hashCode * 59) + this.EmojiId.GetHashCode();
}
hashCode = (hashCode * 59) + this.EmojiVersion.GetHashCode();
if (this.InventoryItemId != null)
{
hashCode = (hashCode * 59) + this.InventoryItemId.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}