Skip to content

Commit e6bf1f5

Browse files
author
Peter Nied
committed
Merge pull request #15 from iambmelt/recurrence
Updating TypeHelper to use custom DateOnly type
2 parents 96c3192 + 7602e02 commit e6bf1f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GraphODataTemplateWriter/CodeHelpers/Android/TypeHelperAndroid.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public static string GetTypeString(this OdcmType @type)
3232
case "Guid":
3333
return "java.util.UUID";
3434
case "DateTimeOffset":
35-
case "Date":
3635
return "java.util.Calendar";
36+
case "Date":
37+
return "com.microsoft.graph.model.DateOnly";
3738
case "Binary":
3839
return "byte[]";
3940
default:
@@ -56,7 +57,7 @@ public static bool IsComplex(this OdcmParameter property)
5657
string t = property.GetTypeString();
5758
return !(t == "Integer" || t == "java.util.UUID" || t == "java.util.Calendar"
5859
|| t == "byte[]" || t == "String" || "long" == t || "Byte[]" == t
59-
|| t == "Short");
60+
|| t == "Short" || t == "com.microsoft.graph.model.DateOnly");
6061
}
6162

6263
public static string GetToLowerFirstCharName(this OdcmProperty property)

0 commit comments

Comments
 (0)