public static string GetTypeString(this OdcmType @type) { // If isFlags = true, return an EnumSet instead of an enum. This will be // serialized to and deserialized from a string if (String.Equals(@type.ToString(), "Vipr.Core.CodeModel.OdcmEnum") && @type.AsOdcmEnum().IsFlags) { return("EnumSet<" + @type.Name.ToUpperFirstChar() + ">"); } switch (@type.Name) { case "Int16": case "Int32": return("Integer"); case "Int64": return("Long"); case "Guid": return("java.util.UUID"); case "DateTimeOffset": return("java.util.Calendar"); case "Date": return("com.microsoft.graph.models.extensions.DateOnly"); case "TimeOfDay": return("com.microsoft.graph.models.extensions.TimeOfDay"); case "Duration": return("javax.xml.datatype.Duration"); case "Json": return("com.google.gson.JsonElement"); case "Binary": return("byte[]"); case "Single": return("float"); default: return(@type.Name.ToUpperFirstChar()); } }