public static Admin findAdminByEmail(String email) { AdminCollection admins = Admin.list(); while (admins.hasNext()) { Admin admin = admins.next(); if (admin.getEmail() != null && admin.getEmail().equals(email)) { return admin; } } return null; }
public static AdminCollection getAdmins() { AdminCollection admins = Admin.list(); return admins; }
public static void makeANoteWithAuthor(String body, String intercomID, Admin admin) { makeANoteInConversation(body, intercomID, admin != null ? admin.getId() : null); }