Skip to content

Commit afc20da

Browse files
author
Brian Melton
committed
Commenting type-hack
1 parent bbf0f26 commit afc20da

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Templates/Android/BaseModel.template.tt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@
380380
if (c.IsCollection){
381381
typeString = String.Format("List<{0}>", c.Type.GetTypeString());
382382
} else if (typeString.Equals("Stream")) {
383+
384+
// Excel introduced the use of "Edm.Stream" types
385+
// normally this would be addressed at the TypeHelper level
386+
// but because streams will use different data containers
387+
// for outgoing vs. incoming streams I'm going to apply the type
388+
// here. Outbound Streams will use byte[]
389+
383390
typeString = "byte[]";
384391
}
385392
return typeString;
@@ -389,6 +396,13 @@
389396
var returnType = c.AsOdcmMethod().ReturnType;
390397
if (returnType != null) {
391398
var returnTypeString = returnType.GetTypeString();
399+
400+
// Excel introduced the use of "Edm.Stream" types
401+
// normally this would be addressed at the TypeHelper level
402+
// but because streams will use different data containers
403+
// for outgoing vs. incoming streams I'm going to apply the type
404+
// here. Inbound Streams will use java.io.InputStream
405+
392406
if (returnTypeString.Equals("Stream")) {
393407
returnTypeString = "java.io.InputStream";
394408
}

0 commit comments

Comments
 (0)