daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    private List<EventAttendee> getAttendees(List<EventAttendee> originalAttendees, CalendarResource resource) {
  2.         List<EventAttendee> attendees = new ArrayList<>();
  3.  
  4.         for (EventAttendee attendee : originalAttendees) {
  5.             if (!attendee.isResource()) {
  6.                 attendees.add(attendee);
  7.             }
  8.         }
  9.  
  10.         EventAttendee resourceAttendee = new EventAttendee();
  11.         resourceAttendee.setEmail(resource.getResourceEmail());
  12.         resourceAttendee.setId(resource.getResourceId());
  13.         resourceAttendee.setResource(true);
  14.         attendees.add(resourceAttendee);
  15.  
  16.         return attendees;
  17.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top