Skip to content

Commit 9dd0b23

Browse files
authored
Merge pull request #7 from microsoftgraph/beta/pipelinebuild/3567012
Update generated beta Java models and requests with build 3567012 [sk…
2 parents a6515b1 + 5f34e45 commit 9dd0b23

File tree

17,918 files changed

+1340960
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

17,918 files changed

+1340960
-8
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.callrecords.models.extensions;
6+
import com.microsoft.graph.serializer.ISerializer;
7+
import com.microsoft.graph.serializer.IJsonBackedObject;
8+
import com.microsoft.graph.serializer.AdditionalDataManager;
9+
import java.util.Arrays;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.callrecords.models.generated.CallType;
12+
import com.microsoft.graph.callrecords.models.generated.Modality;
13+
import com.microsoft.graph.models.extensions.IdentitySet;
14+
import com.microsoft.graph.callrecords.models.extensions.Session;
15+
import com.microsoft.graph.models.extensions.Entity;
16+
import com.microsoft.graph.callrecords.requests.extensions.SessionCollectionResponse;
17+
import com.microsoft.graph.callrecords.requests.extensions.SessionCollectionPage;
18+
19+
20+
import com.google.gson.JsonObject;
21+
import com.google.gson.JsonElement;
22+
import com.google.gson.annotations.SerializedName;
23+
import com.google.gson.annotations.Expose;
24+
import java.util.HashMap;
25+
import java.util.Map;
26+
27+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
28+
29+
/**
30+
* The class for the Call Record.
31+
*/
32+
public class CallRecord extends Entity implements IJsonBackedObject {
33+
34+
35+
/**
36+
* The Version.
37+
* Monotonically increasing version of the call record. Higher version call records with the same id includes additional data compared to the lower version.
38+
*/
39+
@SerializedName("version")
40+
@Expose
41+
public Long version;
42+
43+
/**
44+
* The Type.
45+
* Indicates the type of the call. Possible values are: unknown, groupCall, peerToPeer, unknownFutureValue.
46+
*/
47+
@SerializedName("type")
48+
@Expose
49+
public CallType type;
50+
51+
/**
52+
* The Modalities.
53+
* List of all the modalities used in the call. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.
54+
*/
55+
@SerializedName("modalities")
56+
@Expose
57+
public java.util.List<Modality> modalities;
58+
59+
/**
60+
* The Last Modified Date Time.
61+
* 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 would look like this: '2014-01-01T00:00:00Z'
62+
*/
63+
@SerializedName("lastModifiedDateTime")
64+
@Expose
65+
public java.util.Calendar lastModifiedDateTime;
66+
67+
/**
68+
* The Start Date Time.
69+
* 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 would look like this: '2014-01-01T00:00:00Z'
70+
*/
71+
@SerializedName("startDateTime")
72+
@Expose
73+
public java.util.Calendar startDateTime;
74+
75+
/**
76+
* The End Date Time.
77+
* 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 would look like this: '2014-01-01T00:00:00Z'
78+
*/
79+
@SerializedName("endDateTime")
80+
@Expose
81+
public java.util.Calendar endDateTime;
82+
83+
/**
84+
* The Organizer.
85+
* The organizing party's identity.
86+
*/
87+
@SerializedName("organizer")
88+
@Expose
89+
public IdentitySet organizer;
90+
91+
/**
92+
* The Participants.
93+
* List of distinct identities involved in the call.
94+
*/
95+
@SerializedName("participants")
96+
@Expose
97+
public java.util.List<IdentitySet> participants;
98+
99+
/**
100+
* The Join Web Url.
101+
* Meeting URL associated to the call. May not be available for a peerToPeer call record type.
102+
*/
103+
@SerializedName("joinWebUrl")
104+
@Expose
105+
public String joinWebUrl;
106+
107+
/**
108+
* The Sessions.
109+
* 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.
110+
*/
111+
public SessionCollectionPage sessions;
112+
113+
114+
/**
115+
* The raw representation of this class
116+
*/
117+
private JsonObject rawObject;
118+
119+
/**
120+
* The serializer
121+
*/
122+
private ISerializer serializer;
123+
124+
/**
125+
* Gets the raw representation of this class
126+
*
127+
* @return the raw representation of this class
128+
*/
129+
public JsonObject getRawObject() {
130+
return rawObject;
131+
}
132+
133+
/**
134+
* Gets serializer
135+
*
136+
* @return the serializer
137+
*/
138+
protected ISerializer getSerializer() {
139+
return serializer;
140+
}
141+
142+
/**
143+
* Sets the raw JSON object
144+
*
145+
* @param serializer the serializer
146+
* @param json the JSON object to set this object to
147+
*/
148+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
149+
this.serializer = serializer;
150+
rawObject = json;
151+
152+
153+
if (json.has("sessions")) {
154+
final SessionCollectionResponse response = new SessionCollectionResponse();
155+
if (json.has("[email protected]")) {
156+
response.nextLink = json.get("[email protected]").getAsString();
157+
}
158+
159+
final JsonObject[] sourceArray = serializer.deserializeObject(json.get("sessions").toString(), JsonObject[].class);
160+
final Session[] array = new Session[sourceArray.length];
161+
for (int i = 0; i < sourceArray.length; i++) {
162+
array[i] = serializer.deserializeObject(sourceArray[i].toString(), Session.class);
163+
array[i].setRawObject(serializer, sourceArray[i]);
164+
}
165+
response.value = Arrays.asList(array);
166+
sessions = new SessionCollectionPage(response, null);
167+
}
168+
}
169+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
package com.microsoft.graph.callrecords.models.extensions;
6+
import com.microsoft.graph.serializer.ISerializer;
7+
import com.microsoft.graph.serializer.IJsonBackedObject;
8+
import com.microsoft.graph.serializer.AdditionalDataManager;
9+
import java.util.Arrays;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.callrecords.models.generated.ClientPlatform;
12+
import com.microsoft.graph.callrecords.models.generated.ProductFamily;
13+
import com.microsoft.graph.callrecords.models.extensions.UserAgent;
14+
15+
16+
import com.google.gson.JsonObject;
17+
import com.google.gson.JsonElement;
18+
import com.google.gson.annotations.SerializedName;
19+
import com.google.gson.annotations.Expose;
20+
import java.util.HashMap;
21+
import java.util.Map;
22+
23+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
24+
25+
/**
26+
* The class for the Client User Agent.
27+
*/
28+
public class ClientUserAgent extends UserAgent implements IJsonBackedObject {
29+
30+
31+
/**
32+
* The Platform.
33+
* Identifies the platform used by this endpoint. Possible values are: unknown, windows, macOS, iOS, android, web, ipPhone, roomSystem, surfaceHub, holoLens, unknownFutureValue.
34+
*/
35+
@SerializedName("platform")
36+
@Expose
37+
public ClientPlatform platform;
38+
39+
/**
40+
* The Product Family.
41+
* Identifies the family of application software used by this endpoint. Possible values are: unknown, teams, skypeForBusiness, lync, unknownFutureValue.
42+
*/
43+
@SerializedName("productFamily")
44+
@Expose
45+
public ProductFamily productFamily;
46+
47+
48+
/**
49+
* The raw representation of this class
50+
*/
51+
private JsonObject rawObject;
52+
53+
/**
54+
* The serializer
55+
*/
56+
private ISerializer serializer;
57+
58+
/**
59+
* Gets the raw representation of this class
60+
*
61+
* @return the raw representation of this class
62+
*/
63+
public JsonObject getRawObject() {
64+
return rawObject;
65+
}
66+
67+
/**
68+
* Gets serializer
69+
*
70+
* @return the serializer
71+
*/
72+
protected ISerializer getSerializer() {
73+
return serializer;
74+
}
75+
76+
/**
77+
* Sets the raw JSON object
78+
*
79+
* @param serializer the serializer
80+
* @param json the JSON object to set this object to
81+
*/
82+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
83+
this.serializer = serializer;
84+
rawObject = json;
85+
86+
}
87+
}

0 commit comments

Comments
 (0)