Skip to content

Commit 6e878d3

Browse files
author
Caitlin Bales (MSFT)
authored
Merge pull request #114 from microsoftgraph/planner-overwrites
Overwrites for Planner
2 parents 8911802 + ce6a0d7 commit 6e878d3

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

Templates/Java/models_generated/BaseEntity.java.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ import java.util.Map;
3333
<#=CreatePropertyDef(((OdcmClass)c).Properties, c is OdcmComplexClass)#>
3434
<#=CreateRawJsonObject()#>
3535
<#=UpdatePropertiesWithinSetRawObject(((OdcmClass)c).Properties, c is OdcmComplexClass)#>
36-
}
36+
<#=PostProcess(BaseTypeName(c))#>}

src/GraphODataTemplateWriter/CodeHelpers/Java/CustomOverwrites.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,37 @@ public class CustomOverwrites
6060
"OnenotePage post(final byte[] newOnenotePage) throws ClientException;"
6161
}
6262
};
63+
64+
public static Dictionary<string, string> BasePlannerAssignments = new Dictionary<string, string>()
65+
{
66+
{
67+
"public class BasePlannerAssignments implements IJsonBackedObject {",
68+
"public class BasePlannerAssignments extends HashMap<String, PlannerAssignment> implements IJsonBackedObject {"
69+
}
70+
};
71+
72+
public static Dictionary<string, string> BasePlannerChecklistItems = new Dictionary<string, string>()
73+
{
74+
{
75+
"public class BasePlannerChecklistItems implements IJsonBackedObject {",
76+
"public class BasePlannerChecklistItems extends HashMap<String, PlannerChecklistItem> implements IJsonBackedObject {"
77+
}
78+
};
79+
80+
public static Dictionary<string, string> BasePlannerExternalReferences = new Dictionary<string, string>()
81+
{
82+
{
83+
"public class BasePlannerExternalReferences implements IJsonBackedObject {",
84+
"public class BasePlannerExternalReferences extends HashMap<String, Object> implements IJsonBackedObject {"
85+
}
86+
};
87+
88+
public static Dictionary<string, string> BasePlannerOrderHintsByAssignee = new Dictionary<string, string>()
89+
{
90+
{
91+
"public class BasePlannerOrderHintsByAssignee implements IJsonBackedObject {",
92+
"public class BasePlannerOrderHintsByAssignee extends HashMap<String, String> implements IJsonBackedObject {"
93+
}
94+
};
6395
}
6496
}

0 commit comments

Comments
 (0)