File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 615615 return sb.ToString();
616616 }
617617
618+ public string CreatePackageDefForIBaseEntityRequest(CustomT4Host host)
619+ {
620+ var sb = new StringBuilder();
621+ sb.Append(CreatePackageDefinition(host));
622+ var importFormat = @"import {0}.{1}.{2};";
623+ sb.AppendFormat(importFormat,
624+ host.CurrentModel.NamespaceName(),
625+ "models.extensions",
626+ TypeName(host.CurrentType.AsOdcmClass()));
627+ sb.Append("\n");
628+ return sb.ToString();
629+ }
630+
618631 public string CreatePackageDefForBaseMethodRequest(CustomT4Host host)
619632 {
620633 var sb = new StringBuilder();
Original file line number Diff line number Diff line change 44<#@ output extension="\\" #>
55<#host.TemplateName = IBaseTypeRequest(c);#>
66<#=writer.WriteHeader()#>
7- <#=CreatePackageDef(host)#>
7+ <#=CreatePackageDefForIBaseEntityRequest(host)#>
8+ import com.microsoft.graph.concurrency.ICallback;
9+ import com.microsoft.graph.core.ClientException;
10+ import com.microsoft.graph.http.IHttpRequest;
811
912<#=CreateInterfaceDef(IBaseTypeRequest(c), "IHttpRequest")#>
1013
You can’t perform that action at this time.
0 commit comments