Hello,
I’m trying to return a response object that contains a System.DayOfWeek
type however the generated Java code does not generate the enumeration. I’m guessing that you don’t create enums that are inside the System namespace.
I tried importing the java.time.* namespace in the generated code to have the response object use Java’s built-in type but the deserialized value is NULL (looks like the deserialization case sensitive).
Here’s my response object:
public class HelloResponse : BaseResponse
{
public string Result { get; set; }
public DayOfWeek Day { get; set; }
}
I’m currently treating this type as a string in my code but it would be nice to have an enum. Is it possible to create a custom serializer/deserializer to handle this type?
Thanks