4
4
<#@ output extension="\\" #>
5
5
<#=writer.WriteHeader()#>
6
6
<#=CreatePackageDef(host)#>
7
+ import com.microsoft.graph.core.IBaseClient;
8
+ import com.microsoft.graph.models.extensions.IGraphServiceClient;
9
+ import com.microsoft.graph.models.extensions.<#=IBaseClientType(c)#>;
10
+ import com.microsoft.graph.core.BaseClient;
7
11
8
12
<#=CreateClassDef(BaseClientType(c), "BaseClient", IBaseClientType(c))#>
9
13
@@ -43,7 +47,7 @@ foreach (var prop in model.EntityContainer.Properties)
43
47
* @return the request builder for the collection of <#=propertyName#> objects
44
48
*/
45
49
public <#=ITypeCollectionRequestBuilder(prop)#> <#=prop.Name#>() {
46
- return new <#=TypeCollectionRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>", (<#=IClientType(c)#>) this, null);
50
+ return new <#=TypeCollectionRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>", this, null);
47
51
}
48
52
49
53
/**
@@ -53,7 +57,7 @@ foreach (var prop in model.EntityContainer.Properties)
53
57
* @return the request builder for the <#=propertyName#> object
54
58
*/
55
59
public <#=ITypeRequestBuilder(prop)#> <#=prop.Name#>(final String id) {
56
- return new <#=TypeRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>/" + id, (<#=IClientType(c)#>) this, null);
60
+ return new <#=TypeRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>/" + id, this, null);
57
61
}
58
62
<#
59
63
}
@@ -67,7 +71,7 @@ foreach (var prop in model.EntityContainer.Properties)
67
71
* @return the <#=prop.Projection.Type.GetTypeString()#>
68
72
*/
69
73
public <#=ITypeRequestBuilder(prop)#> <#=prop.Name#>() {
70
- return new <#=TypeRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>", (<#=IClientType(c)#>) this, null);
74
+ return new <#=TypeRequestBuilder(prop)#>(getServiceRoot() + "/<#=prop.Name#>", this, null);
71
75
}
72
76
<#
73
77
}
0 commit comments