Skip to content

Commit 970267a

Browse files
authored
Merge pull request #214 from microsoftgraph/extensions-generated-merging
Merged extensions and generated
2 parents 0fd72e6 + 2340ac5 commit 970267a

File tree

12,553 files changed

+351735
-482683
lines changed

Some content is hidden

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

12,553 files changed

+351735
-482683
lines changed

src/main/java/com/microsoft/graph/models/extensions/ActivityHistoryItem.java

Lines changed: 132 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,142 @@
33
// ------------------------------------------------------------------------------
44

55
package com.microsoft.graph.models.extensions;
6+
import com.microsoft.graph.concurrency.*;
7+
import com.microsoft.graph.core.*;
8+
import com.microsoft.graph.http.*;
9+
import com.microsoft.graph.options.*;
10+
import com.microsoft.graph.serializer.*;
11+
import java.util.Arrays;
12+
import java.util.EnumSet;
13+
import com.microsoft.graph.models.generated.Status;
14+
import com.microsoft.graph.models.extensions.UserActivity;
15+
import com.microsoft.graph.models.extensions.Entity;
616

7-
import com.microsoft.graph.models.generated.BaseActivityHistoryItem;
17+
18+
import com.google.gson.JsonObject;
19+
import com.google.gson.JsonElement;
20+
import com.google.gson.annotations.*;
21+
import java.util.HashMap;
22+
import java.util.Map;
23+
24+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
825

926
/**
1027
* The class for the Activity History Item.
1128
*/
12-
public class ActivityHistoryItem extends BaseActivityHistoryItem {
29+
public class ActivityHistoryItem extends Entity implements IJsonBackedObject {
30+
31+
32+
/**
33+
* The Status.
34+
* Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
35+
*/
36+
@SerializedName("status")
37+
@Expose
38+
public Status status;
39+
40+
/**
41+
* The Active Duration Seconds.
42+
* Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
43+
*/
44+
@SerializedName("activeDurationSeconds")
45+
@Expose
46+
public Integer activeDurationSeconds;
47+
48+
/**
49+
* The Created Date Time.
50+
* Set by the server. DateTime in UTC when the object was created on the server.
51+
*/
52+
@SerializedName("createdDateTime")
53+
@Expose
54+
public java.util.Calendar createdDateTime;
55+
56+
/**
57+
* The Last Active Date Time.
58+
* Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
59+
*/
60+
@SerializedName("lastActiveDateTime")
61+
@Expose
62+
public java.util.Calendar lastActiveDateTime;
63+
64+
/**
65+
* The Last Modified Date Time.
66+
* Set by the server. DateTime in UTC when the object was modified on the server.
67+
*/
68+
@SerializedName("lastModifiedDateTime")
69+
@Expose
70+
public java.util.Calendar lastModifiedDateTime;
71+
72+
/**
73+
* The Expiration Date Time.
74+
* Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
75+
*/
76+
@SerializedName("expirationDateTime")
77+
@Expose
78+
public java.util.Calendar expirationDateTime;
79+
80+
/**
81+
* The Started Date Time.
82+
* Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
83+
*/
84+
@SerializedName("startedDateTime")
85+
@Expose
86+
public java.util.Calendar startedDateTime;
87+
88+
/**
89+
* The User Timezone.
90+
* Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.
91+
*/
92+
@SerializedName("userTimezone")
93+
@Expose
94+
public String userTimezone;
95+
96+
/**
97+
* The Activity.
98+
* Optional. NavigationProperty/Containment; navigation property to the associated activity.
99+
*/
100+
@SerializedName("activity")
101+
@Expose
102+
public UserActivity activity;
103+
104+
105+
/**
106+
* The raw representation of this class
107+
*/
108+
private JsonObject rawObject;
109+
110+
/**
111+
* The serializer
112+
*/
113+
private ISerializer serializer;
114+
115+
/**
116+
* Gets the raw representation of this class
117+
*
118+
* @return the raw representation of this class
119+
*/
120+
public JsonObject getRawObject() {
121+
return rawObject;
122+
}
123+
124+
/**
125+
* Gets serializer
126+
*
127+
* @return the serializer
128+
*/
129+
protected ISerializer getSerializer() {
130+
return serializer;
131+
}
132+
133+
/**
134+
* Sets the raw JSON object
135+
*
136+
* @param serializer the serializer
137+
* @param json the JSON object to set this object to
138+
*/
139+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
140+
this.serializer = serializer;
141+
rawObject = json;
13142

143+
}
14144
}

src/main/java/com/microsoft/graph/models/extensions/AdministrativeUnit.java

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,68 @@
33
// ------------------------------------------------------------------------------
44

55
package com.microsoft.graph.models.extensions;
6+
import com.microsoft.graph.concurrency.*;
7+
import com.microsoft.graph.core.*;
8+
import com.microsoft.graph.http.*;
9+
import com.microsoft.graph.options.*;
10+
import com.microsoft.graph.serializer.*;
11+
import java.util.Arrays;
12+
import java.util.EnumSet;
13+
import com.microsoft.graph.models.extensions.DirectoryObject;
614

7-
import com.microsoft.graph.models.generated.BaseAdministrativeUnit;
15+
16+
import com.google.gson.JsonObject;
17+
import com.google.gson.JsonElement;
18+
import com.google.gson.annotations.*;
19+
import java.util.HashMap;
20+
import java.util.Map;
21+
22+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
823

924
/**
1025
* The class for the Administrative Unit.
1126
*/
12-
public class AdministrativeUnit extends BaseAdministrativeUnit {
27+
public class AdministrativeUnit extends DirectoryObject implements IJsonBackedObject {
28+
29+
30+
31+
/**
32+
* The raw representation of this class
33+
*/
34+
private JsonObject rawObject;
35+
36+
/**
37+
* The serializer
38+
*/
39+
private ISerializer serializer;
40+
41+
/**
42+
* Gets the raw representation of this class
43+
*
44+
* @return the raw representation of this class
45+
*/
46+
public JsonObject getRawObject() {
47+
return rawObject;
48+
}
49+
50+
/**
51+
* Gets serializer
52+
*
53+
* @return the serializer
54+
*/
55+
protected ISerializer getSerializer() {
56+
return serializer;
57+
}
58+
59+
/**
60+
* Sets the raw JSON object
61+
*
62+
* @param serializer the serializer
63+
* @param json the JSON object to set this object to
64+
*/
65+
public void setRawObject(final ISerializer serializer, final JsonObject json) {
66+
this.serializer = serializer;
67+
rawObject = json;
1368

69+
}
1470
}

0 commit comments

Comments
 (0)