Skip to content

Commit 4b1a5a2

Browse files
Merge pull request #74 from dianambb/MakeIsFunctionProperty
ObjC: IsFunction is a property in VIPR and not a method.
2 parents 6da3ace + 18ddf07 commit 4b1a5a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Templates/ObjC/Requests/MethodRequestBuilder.h.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<#@ include file="SharedObjC.template.tt"#>
44
<#
55

6-
var func = host.CurrentType.AsOdcmMethod();
6+
OdcmMethod func = host.CurrentType.AsOdcmMethod();
77
var entityName = writer.GetPrefix() + func.Class.Name.ToUpperFirstChar();
8-
var method = (func.IsFunction()) ? "GET" : "POST";
8+
var method = (func.IsFunction) ? "GET" : "POST";
99
var methodName = "request";
1010
var requestType = entityName + func.Name.Substring(func.Name.IndexOf('.') + 1).ToUpperFirstChar() + "Request";
1111
var requestBuilderType = requestType + "Builder";

Templates/ObjC/Requests/MethodRequestBuilder.m.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<#
55
var func = host.CurrentType.AsOdcmMethod();
66
var entityName = writer.GetPrefix() + func.Class.Name.ToUpperFirstChar();
7-
var method = (func.IsFunction()) ? "GET" : "POST";
7+
var method = (func.IsFunction) ? "GET" : "POST";
88
var methodName = "request";
99
var requestType = entityName + func.Name.Substring(func.Name.IndexOf('.') + 1).ToUpperFirstChar() + "Request";
1010
var requestBuilderType = requestType + "Builder";

0 commit comments

Comments
 (0)