Когда Microsoft Graph версии 1.8. + Будет готов к использованию? Я столкнулся с проблемой при создании онлайн-встречи - PullRequest
0 голосов
/ 14 июля 2020

В последней версии Microsoft Graph Java SDK 1.7.1 я также не могу найти поля isOnlineMeeting и onlineMeetingProvider в Event. java class или перечисление OnlineMeetingTypeProvider Это мой код:

IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider(authProvider ).buildClient();

    Event event = new Event();
    event.subject = "Let's go for lunch";
    ItemBody body = new ItemBody();
    body.contentType = BodyType.HTML;
    body.content = "Does next month work for you?";
    event.body = body;
    DateTimeTimeZone start = new DateTimeTimeZone();
    start.dateTime = "2020-07-15T12:00:00";
    start.timeZone = "Pacific Standard Time";
    event.start = start;
    DateTimeTimeZone end = new DateTimeTimeZone();
    end.dateTime = "2019-03-10T14:00:00";
    end.timeZone = "Pacific Standard Time";
    event.end = end;
    Location location = new Location();
    location.displayName = "Harry's Bar";
    event.location = location;
    LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();
    Attendee attendees = new Attendee();
    EmailAddress emailAddress = new EmailAddress();
    emailAddress.address = "Jagriti.Pandey@mind-infotech.com";
    emailAddress.name = "Jagriti Pandey";
    attendees.emailAddress = emailAddress;
    attendees.type = AttendeeType.REQUIRED;
    attendeesList.add(attendees);
    event.attendees = attendeesList;
//---------------This is the line of code I am facing challenge.----
    event.isOnlineMeeting = true;
    event.onlineMeetingProvider = OnlineMeetingProviderType.TEAMS_FOR_BUSINESS;
  //--------------------***-----------------------------


    graphClient.me().calendars("AAMkAGViNDU9zAAAAAGtlAAA=").events()
//graphClient.me().drive();
    .buildRequest()
    .post(event);

}
...