|
1 | | -// Template Source: BaseEntity.java.tt |
2 | | -// ------------------------------------------------------------------------------ |
3 | | -// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
4 | | -// ------------------------------------------------------------------------------ |
5 | | - |
| 1 | +// Template Source: BaseEntity.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
6 | 6 | package com.microsoft.graph.callrecords.models; |
7 | | -import com.microsoft.graph.serializer.ISerializer; |
8 | | -import com.microsoft.graph.serializer.IJsonBackedObject; |
9 | | -import com.microsoft.graph.serializer.AdditionalDataManager; |
| 7 | +import com.microsoft.graph.serializer.ISerializer; |
| 8 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 9 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
10 | 10 | import java.util.EnumSet; |
11 | 11 | import com.microsoft.graph.http.BaseCollectionPage; |
12 | 12 | import com.microsoft.graph.callrecords.models.Modality; |
13 | 13 | import com.microsoft.graph.models.IdentitySet; |
14 | 14 | import com.microsoft.graph.callrecords.models.CallType; |
15 | 15 | import com.microsoft.graph.models.Entity; |
16 | 16 | import com.microsoft.graph.callrecords.requests.SessionCollectionPage; |
17 | | - |
18 | | - |
19 | | -import com.google.gson.JsonObject; |
20 | | -import com.google.gson.annotations.SerializedName; |
21 | | -import com.google.gson.annotations.Expose; |
22 | | -import javax.annotation.Nullable; |
23 | | -import javax.annotation.Nonnull; |
24 | | - |
25 | | -// **NOTE** This file was generated by a tool and any changes will be overwritten. |
26 | | - |
27 | | -/** |
28 | | - * The class for the Call Record. |
29 | | - */ |
30 | | -public class CallRecord extends Entity implements IJsonBackedObject { |
31 | | - |
32 | | - |
33 | | - /** |
34 | | - * The End Date Time. |
35 | | - * UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
36 | | - */ |
37 | | - @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) |
| 17 | + |
| 18 | + |
| 19 | +import com.google.gson.JsonObject; |
| 20 | +import com.google.gson.annotations.SerializedName; |
| 21 | +import com.google.gson.annotations.Expose; |
| 22 | +import javax.annotation.Nullable; |
| 23 | +import javax.annotation.Nonnull; |
| 24 | + |
| 25 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 26 | + |
| 27 | +/** |
| 28 | + * The class for the Call Record. |
| 29 | + */ |
| 30 | +public class CallRecord extends Entity implements IJsonBackedObject { |
| 31 | + |
| 32 | + |
| 33 | + /** |
| 34 | + * The End Date Time. |
| 35 | + * UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 36 | + */ |
| 37 | + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) |
38 | 38 | @Expose |
39 | | - @Nullable |
40 | | - public java.time.OffsetDateTime endDateTime; |
41 | | - |
42 | | - /** |
43 | | - * The Join Web Url. |
44 | | - * Meeting URL associated to the call. May not be available for a peerToPeer call record type. |
45 | | - */ |
46 | | - @SerializedName(value = "joinWebUrl", alternate = {"JoinWebUrl"}) |
| 39 | + @Nullable |
| 40 | + public java.time.OffsetDateTime endDateTime; |
| 41 | + |
| 42 | + /** |
| 43 | + * The Join Web Url. |
| 44 | + * Meeting URL associated to the call. May not be available for a peerToPeer call record type. |
| 45 | + */ |
| 46 | + @SerializedName(value = "joinWebUrl", alternate = {"JoinWebUrl"}) |
47 | 47 | @Expose |
48 | | - @Nullable |
49 | | - public String joinWebUrl; |
50 | | - |
51 | | - /** |
52 | | - * The Last Modified Date Time. |
53 | | - * UTC time when the call record was created. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
54 | | - */ |
55 | | - @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) |
| 48 | + @Nullable |
| 49 | + public String joinWebUrl; |
| 50 | + |
| 51 | + /** |
| 52 | + * The Last Modified Date Time. |
| 53 | + * UTC time when the call record was created. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 54 | + */ |
| 55 | + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) |
56 | 56 | @Expose |
57 | | - @Nullable |
58 | | - public java.time.OffsetDateTime lastModifiedDateTime; |
59 | | - |
60 | | - /** |
61 | | - * The Modalities. |
62 | | - * List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue. |
63 | | - */ |
64 | | - @SerializedName(value = "modalities", alternate = {"Modalities"}) |
| 57 | + @Nullable |
| 58 | + public java.time.OffsetDateTime lastModifiedDateTime; |
| 59 | + |
| 60 | + /** |
| 61 | + * The Modalities. |
| 62 | + * List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue. |
| 63 | + */ |
| 64 | + @SerializedName(value = "modalities", alternate = {"Modalities"}) |
65 | 65 | @Expose |
66 | | - @Nullable |
67 | | - public java.util.List<Modality> modalities; |
68 | | - |
69 | | - /** |
70 | | - * The Organizer. |
71 | | - * The organizing party's identity. |
72 | | - */ |
73 | | - @SerializedName(value = "organizer", alternate = {"Organizer"}) |
| 66 | + @Nullable |
| 67 | + public java.util.List<Modality> modalities; |
| 68 | + |
| 69 | + /** |
| 70 | + * The Organizer. |
| 71 | + * The organizing party's identity. |
| 72 | + */ |
| 73 | + @SerializedName(value = "organizer", alternate = {"Organizer"}) |
74 | 74 | @Expose |
75 | | - @Nullable |
76 | | - public IdentitySet organizer; |
77 | | - |
78 | | - /** |
79 | | - * The Participants. |
80 | | - * List of distinct identities involved in the call. |
81 | | - */ |
82 | | - @SerializedName(value = "participants", alternate = {"Participants"}) |
| 75 | + @Nullable |
| 76 | + public IdentitySet organizer; |
| 77 | + |
| 78 | + /** |
| 79 | + * The Participants. |
| 80 | + * List of distinct identities involved in the call. |
| 81 | + */ |
| 82 | + @SerializedName(value = "participants", alternate = {"Participants"}) |
83 | 83 | @Expose |
84 | | - @Nullable |
85 | | - public java.util.List<IdentitySet> participants; |
86 | | - |
87 | | - /** |
88 | | - * The Start Date Time. |
89 | | - * UTC time when the first user joined the call. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
90 | | - */ |
91 | | - @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) |
| 84 | + @Nullable |
| 85 | + public java.util.List<IdentitySet> participants; |
| 86 | + |
| 87 | + /** |
| 88 | + * The Start Date Time. |
| 89 | + * UTC time when the first user joined the call. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 90 | + */ |
| 91 | + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) |
92 | 92 | @Expose |
93 | | - @Nullable |
94 | | - public java.time.OffsetDateTime startDateTime; |
95 | | - |
96 | | - /** |
97 | | - * The Type. |
98 | | - * Indicates the type of the call. Possible values are: unknown, groupCall, peerToPeer, unknownFutureValue. |
99 | | - */ |
100 | | - @SerializedName(value = "type", alternate = {"Type"}) |
| 93 | + @Nullable |
| 94 | + public java.time.OffsetDateTime startDateTime; |
| 95 | + |
| 96 | + /** |
| 97 | + * The Type. |
| 98 | + * Indicates the type of the call. Possible values are: unknown, groupCall, peerToPeer, unknownFutureValue. |
| 99 | + */ |
| 100 | + @SerializedName(value = "type", alternate = {"Type"}) |
101 | 101 | @Expose |
102 | | - @Nullable |
103 | | - public CallType type; |
104 | | - |
105 | | - /** |
106 | | - * The Version. |
107 | | - * Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version. |
108 | | - */ |
109 | | - @SerializedName(value = "version", alternate = {"Version"}) |
| 102 | + @Nullable |
| 103 | + public CallType type; |
| 104 | + |
| 105 | + /** |
| 106 | + * The Version. |
| 107 | + * Monotonically increasing version of the call record. Higher version call records with the same ID includes additional data compared to the lower version. |
| 108 | + */ |
| 109 | + @SerializedName(value = "version", alternate = {"Version"}) |
110 | 110 | @Expose |
111 | | - @Nullable |
112 | | - public Long version; |
113 | | - |
114 | | - /** |
115 | | - * The Sessions. |
116 | | - * List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable. |
117 | | - */ |
118 | | - @SerializedName(value = "sessions", alternate = {"Sessions"}) |
| 111 | + @Nullable |
| 112 | + public Long version; |
| 113 | + |
| 114 | + /** |
| 115 | + * The Sessions. |
| 116 | + * List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable. |
| 117 | + */ |
| 118 | + @SerializedName(value = "sessions", alternate = {"Sessions"}) |
119 | 119 | @Expose |
120 | | - @Nullable |
121 | | - public com.microsoft.graph.callrecords.requests.SessionCollectionPage sessions; |
122 | | - |
123 | | - |
124 | | - /** |
125 | | - * Sets the raw JSON object |
126 | | - * |
127 | | - * @param serializer the serializer |
128 | | - * @param json the JSON object to set this object to |
129 | | - */ |
130 | | - public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
131 | | - |
132 | | - |
133 | | - if (json.has("sessions")) { |
134 | | - sessions = serializer.deserializeObject(json.get("sessions"), com.microsoft.graph.callrecords.requests.SessionCollectionPage.class); |
135 | | - } |
136 | | - } |
137 | | -} |
| 120 | + @Nullable |
| 121 | + public com.microsoft.graph.callrecords.requests.SessionCollectionPage sessions; |
| 122 | + |
| 123 | + |
| 124 | + /** |
| 125 | + * Sets the raw JSON object |
| 126 | + * |
| 127 | + * @param serializer the serializer |
| 128 | + * @param json the JSON object to set this object to |
| 129 | + */ |
| 130 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 131 | + |
| 132 | + |
| 133 | + if (json.has("sessions")) { |
| 134 | + sessions = serializer.deserializeObject(json.get("sessions"), com.microsoft.graph.callrecords.requests.SessionCollectionPage.class); |
| 135 | + } |
| 136 | + } |
| 137 | +} |
0 commit comments