Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

EventMessage object properties are null with the exception of the subject property after casting from Message #84

@JohnMAustin78

Description

@JohnMAustin78

When I get a Message object from my inbox that is an instance of EventMessage (and represents a meeting invitation), the EventMessage object I get when casting from Message has all null properties with the exception of the Subject property. In consequence, I cannot get the Event object after calling EventMessage.getEvent().


 public boolean respondToEmailInvite(Message emailInvite) throws ExecutionException, InterruptedException, RuntimeException {
        if ((emailInvite instanceof EventMessage) == false)
            return false;
        CalendarSnippets calendarSnippets = new CalendarSnippets(mOutlookClient);

        EventMessage eventMessage = (EventMessage)emailInvite;

        String eventId = eventMessage.getEvent().getId();
        calendarSnippets.respondToCalendarEventInvite(
                eventId
                , GlobalValues.USER_EMAIL
                , ResponseType.Accepted);


        return true;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions