| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.EventGrid.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Schema of the Data property of an EventGridEvent for a |
| | 18 | | /// Microsoft.SignalRService.ClientConnectionDisconnected event. |
| | 19 | | /// </summary> |
| | 20 | | public partial class SignalRServiceClientConnectionDisconnectedEventData |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the |
| | 24 | | /// SignalRServiceClientConnectionDisconnectedEventData class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public SignalRServiceClientConnectionDisconnectedEventData() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the |
| | 33 | | /// SignalRServiceClientConnectionDisconnectedEventData class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="timestamp">The time at which the event |
| | 36 | | /// occurred.</param> |
| | 37 | | /// <param name="hubName">The hub of connected client |
| | 38 | | /// connection.</param> |
| | 39 | | /// <param name="connectionId">The connection Id of connected client |
| | 40 | | /// connection.</param> |
| | 41 | | /// <param name="userId">The user Id of connected client |
| | 42 | | /// connection.</param> |
| | 43 | | /// <param name="errorMessage">The message of error that cause the |
| | 44 | | /// client connection disconnected.</param> |
| 0 | 45 | | public SignalRServiceClientConnectionDisconnectedEventData(System.DateTime? timestamp = default(System.DateTime? |
| | 46 | | { |
| 0 | 47 | | Timestamp = timestamp; |
| 0 | 48 | | HubName = hubName; |
| 0 | 49 | | ConnectionId = connectionId; |
| 0 | 50 | | UserId = userId; |
| 0 | 51 | | ErrorMessage = errorMessage; |
| | 52 | | CustomInit(); |
| 0 | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// An initialization method that performs custom operations like setting defaults |
| | 57 | | /// </summary> |
| | 58 | | partial void CustomInit(); |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets the time at which the event occurred. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "timestamp")] |
| 0 | 64 | | public System.DateTime? Timestamp { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the hub of connected client connection. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "hubName")] |
| 0 | 70 | | public string HubName { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the connection Id of connected client connection. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "connectionId")] |
| 0 | 76 | | public string ConnectionId { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the user Id of connected client connection. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "userId")] |
| 0 | 82 | | public string UserId { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets the message of error that cause the client connection |
| | 86 | | /// disconnected. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "errorMessage")] |
| 0 | 89 | | public string ErrorMessage { get; set; } |
| | 90 | |
|
| | 91 | | } |
| | 92 | | } |