Skip to content

Commit c69de38

Browse files
Event model now deals with a list of Invitables for its invitees.
1 parent fe1bfb8 commit c69de38

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/main/java/com/robinpowered/sdk/model/Event.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static CreationType fromString(String value) {
8282
private DateTime startedAt;
8383
private DateTime endedAt;
8484
private Boolean isAllDay;
85-
private List<Invitee> invitees;
85+
private List<Invitable> invitees;
8686

8787

8888
/**
@@ -210,7 +210,7 @@ public void setIsAllDay(Boolean isAllDay) {
210210
this.isAllDay = isAllDay;
211211
}
212212

213-
public void setInvitees(List<Invitee> invitees) {
213+
public void setInvitees(List<Invitable> invitees) {
214214
this.invitees = invitees;
215215
}
216216

@@ -220,7 +220,7 @@ public void setInvitees(List<Invitee> invitees) {
220220
*
221221
* @return A list of the event's invitees.
222222
*/
223-
public List<Invitee> getInvitees() {
223+
public List<Invitable> getInvitees() {
224224
return invitees;
225225
}
226226

@@ -277,9 +277,8 @@ public static class Booking {
277277
private final boolean isAllDay;
278278
private final List<Invitable> invitees;
279279

280-
public Booking(String ownerRef, String title, String description,
281-
DateTime startedAt, DateTime endedAt, boolean isAllDay,
282-
List<Invitable> invitees) {
280+
public Booking(String ownerRef, String title, String description, DateTime startedAt, DateTime endedAt,
281+
boolean isAllDay, List<Invitable> invitees) {
283282

284283
this.ownerRef = ownerRef;
285284
this.title = title;

src/main/java/com/robinpowered/sdk/model/Invitable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
* Interface for models that may be invited to an {@link Event}.
55
*/
66
public interface Invitable {
7+
8+
String getEmail();
9+
710
}

0 commit comments

Comments
 (0)