Skip to content

Commit 26536ff

Browse files
author
Brian Melton
committed
Bugfix for using ClassTypeName instead ReturnType
1 parent 83d428f commit 26536ff

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

Templates/Android/generated/BaseMethodRequest.java.tt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
<# if (c.AsOdcmMethod().IsAction()) { #>
2323
<# if (c.AsOdcmMethod().ReturnType != null) { #>
2424
/**
25-
* Creates the <#=ClassTypeName(c)#>
25+
* Creates the <#=ReturnType(c)#>
2626
*
2727
* @param callback The callback to be called after success or failure.
2828
*/
29-
public void post(final ICallback<<#=ClassTypeName(c)#>> callback) {
29+
public void post(final ICallback<<#=ReturnType(c)#>> callback) {
3030
send(HttpMethod.POST, callback, null);
3131
}
3232

3333
/**
34-
* Creates the <#=ClassTypeName(c)#>
34+
* Creates the <#=ReturnType(c)#>
3535
*
36-
* @return The <#=ClassTypeName(c)#>
36+
* @return The <#=ReturnType(c)#>
3737
* @throws ClientException An exception occurs if there was an error while the request was sent.
3838
*/
39-
public <#=ClassTypeName(c)#> post() throws ClientException {
39+
public <#=ReturnType(c)#> post() throws ClientException {
4040
return send(HttpMethod.POST, null);
4141
}
4242

@@ -81,7 +81,7 @@
8181
<# } #>
8282
<# } else { #>
8383
/**
84-
* Creates the <#=ClassTypeName(c)#>
84+
* Creates the <#=ReturnType(c)#>
8585
*
8686
* @param callback The callback to be called after success or failure.
8787
*/
@@ -101,9 +101,9 @@
101101
}
102102

103103
/**
104-
* Creates the <#=ClassTypeName(c)#>
104+
* Creates the <#=ReturnType(c)#>
105105
*
106-
* @return The <#=ClassTypeName(c)#>
106+
* @return The <#=ReturnType(c)#>
107107
* @throws ClientException An exception occurs if there was an error while the request was sent.
108108
*/
109109
public void post() throws ClientException {
@@ -113,21 +113,21 @@
113113
<# } else { #>
114114
<# if (c.AsOdcmMethod().ReturnType != null) { #>
115115
/**
116-
* Gets the <#=ClassTypeName(c)#>
116+
* Gets the <#=ReturnType(c)#>
117117
*
118118
* @param callback The callback to be called after success or failure.
119119
*/
120-
public void get(final ICallback<<#=ClassTypeName(c)#>> callback) {
120+
public void get(final ICallback<<#=ReturnType(c)#>> callback) {
121121
send(HttpMethod.GET, callback, null);
122122
}
123123

124124
/**
125-
* Gets the <#=ClassTypeName(c)#>
125+
* Gets the <#=ReturnType(c)#>
126126
*
127-
* @return The <#=ClassTypeName(c)#>
127+
* @return The <#=ReturnType(c)#>
128128
* @throws ClientException An exception occurs if there was an error while the request was sent.
129129
*/
130-
public <#=ClassTypeName(c)#> get() throws ClientException {
130+
public <#=ReturnType(c)#> get() throws ClientException {
131131
return send(HttpMethod.GET, null);
132132
}
133133

Templates/Android/generated/IBaseMethodRequest.java.tt

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ import com.google.gson.annotations.*;
1414
<# if (c.AsOdcmMethod().IsAction()) { #>
1515
<# if (c.AsOdcmMethod().ReturnType != null) { #>
1616
/**
17-
* Creates the <#=ClassTypeName(c)#>
17+
* Creates the <#=ReturnType(c)#>
1818
*
1919
* @param callback The callback to be called after success or failure.
2020
*/
21-
void post(final ICallback<<#=ClassTypeName(c)#>> callback);
21+
void post(final ICallback<<#=ReturnType(c)#>> callback);
2222

2323
/**
24-
* Creates the <#=ClassTypeName(c)#>
24+
* Creates the <#=ReturnType(c)#>
2525
*
26-
* @return The <#=ClassTypeName(c)#>
26+
* @return The <#=ReturnType(c)#>
2727
* @throws ClientException An exception occurs if there was an error while the request was sent.
2828
*/
29-
<#=ClassTypeName(c)#> post() throws ClientException;
29+
<#=ReturnType(c)#> post() throws ClientException;
3030

3131
<# if (c.GetFeatures().CanSelect) { #>
3232
/**
@@ -59,16 +59,16 @@ import com.google.gson.annotations.*;
5959
<# } #>
6060
<# } else { #>
6161
/**
62-
* Creates the <#=ClassTypeName(c)#>
62+
* Creates the <#=ReturnType(c)#>
6363
*
6464
* @param callback The callback to be called after success or failure.
6565
*/
6666
void post(final ICallback<Void> callback);
6767

6868
/**
69-
* Creates the <#=ClassTypeName(c)#>
69+
* Creates the <#=ReturnType(c)#>
7070
*
71-
* @return The <#=ClassTypeName(c)#>
71+
* @return The <#=ReturnType(c)#>
7272
* @throws ClientException An exception occurs if there was an error while the request was sent.
7373
*/
7474
void post() throws ClientException;
@@ -77,19 +77,18 @@ import com.google.gson.annotations.*;
7777
<# } else { #>
7878
<# if (c.AsOdcmMethod().ReturnType != null) { #>
7979
/**
80-
* Gets the <#=ClassTypeName(c)#>
81-
*
80+
* Gets the <#=ReturnType(c)#>
8281
* @param callback The callback to be called after success or failure.
8382
*/
84-
void get(final ICallback<<#=ClassTypeName(c)#>> callback);
83+
void get(final ICallback<<#=ReturnType(c)#>> callback);
8584

8685
/**
87-
* Gets the <#=ClassTypeName(c)#>
86+
* Gets the <#=ReturnType(c)#>
8887
*
89-
* @return The <#=ClassTypeName(c)#>
88+
* @return The <#=ReturnType(c)#>
9089
* @throws ClientException An exception occurs if there was an error while the request was sent.
9190
*/
92-
<#=ClassTypeName(c)#> get() throws ClientException;
91+
<#=ReturnType(c)#> get() throws ClientException;
9392

9493
<# if (c.GetFeatures().CanSelect) { #>
9594
/**

0 commit comments

Comments
 (0)