Skip to content

Enum: Always Sets to Default If Not Present #33

Description

@tbrickey022

When deserializing the timeline data, event objects make use of multiple Enums. When an event isn't using an attribute, if that attribute is populated using an enum, the deserialized object uses the default enum value instead of being null.

For example:

If an eventType of "ITEM_PURCHASED" occurs, it would normally have no value for "wardType". However, when deserialized currently, it will have a wardType of "BLUE_TRINKET", since that is the default enum value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions