Skip to content

Commit 0d9c61c

Browse files
author
Brian Melton
committed
Merge branch 'master' into iambmelt/working
2 parents e6cc8a3 + b149f6b commit 0d9c61c

15 files changed

+130
-491
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<# // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. #>
2+
<#@ template debug="true" hostspecific="true" language="C#" #>
3+
<#@ output extension="\\" #>
4+
<#
5+
CustomT4Host host = (CustomT4Host) Host;
6+
CodeWriterGraphEndpointList writer = (CodeWriterGraphEndpointList) host.CodeWriter;
7+
8+
var model = host.CurrentModel;
9+
var entityTypes = model.GetEntityTypes();
10+
var entitySet = model.EntityContainer.Properties;
11+
#>
12+
<# foreach(var entity in entitySet) { #>
13+
<# foreach (var path in entity.GetNavigationPaths("", entityTypes, 0)) { #>
14+
<#= path #>
15+
<# } #>
16+
17+
18+
<# } #>

Templates/JavaScript/src/complex_types.coffee.tt

Lines changed: 0 additions & 31 deletions
This file was deleted.

Templates/JavaScript/src/entity_types.coffee.tt

Lines changed: 0 additions & 173 deletions
This file was deleted.

Templates/JavaScript/src/enum_types.coffee.tt

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"TemplateMapping": {
3+
"GraphEndpointList": [
4+
{ "Template": "graph_endpoint_list", "SubProcessor": "Other", "Name": "graph_endpoint_list" }
5+
]
6+
}
7+
}

src/GraphODataTemplateWriter/.config/JavaScriptSettings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/GraphODataTemplateWriter/.config/TemplateWriterSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"AvailableLanguages": [ "Android", "ObjC", "CSharp", "Python", "JavaScript" ],
3-
"TargetLanguage": "Android",
2+
"AvailableLanguages": [ "Android", "ObjC", "CSharp", "Python", "GraphEndpointList" ],
3+
"TargetLanguage": "GraphEndpointList",
44
"Plugins": [ ],
55
"PrimaryNamespaceName": "com",
66
"NamespacePrefix": "com",

src/GraphODataTemplateWriter/CodeHelpers/CodeWriterJavaScript.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
namespace Microsoft.Graph.ODataTemplateWriter.CodeHelpers.GraphEndpointList
4+
{
5+
using System;
6+
using Vipr.Core.CodeModel;
7+
8+
public class CodeWriterGraphEndpointList : CodeWriterBase
9+
{
10+
public CodeWriterGraphEndpointList() : base() { }
11+
12+
public CodeWriterGraphEndpointList(OdcmModel model) : base(model) { }
13+
14+
public override string WriteClosingCommentLine()
15+
{
16+
throw new NotImplementedException();
17+
}
18+
19+
public override string WriteInlineCommentChar()
20+
{
21+
throw new NotImplementedException();
22+
}
23+
24+
public override string WriteOpeningCommentLine()
25+
{
26+
throw new NotImplementedException();
27+
}
28+
}
29+
30+
}

0 commit comments

Comments
 (0)