-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/OTP-1435-bus-notify-first-leg
- Loading branch information
Showing
22 changed files
with
720 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/org/opentripplanner/middleware/models/RelatedUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.opentripplanner.middleware.models; | ||
|
||
/** A related user is a companion or observer requested by a dependent. */ | ||
public class RelatedUser { | ||
public enum RelatedUserStatus { | ||
PENDING, CONFIRMED, INVALID | ||
} | ||
|
||
public String email; | ||
public RelatedUserStatus status = RelatedUserStatus.PENDING; | ||
public String acceptKey; | ||
public String nickname; | ||
|
||
public RelatedUser() { | ||
// Required for JSON deserialization. | ||
} | ||
|
||
public RelatedUser(String email, RelatedUserStatus status, String nickname) { | ||
this.email = email; | ||
this.status = status; | ||
this.nickname = nickname; | ||
} | ||
|
||
public RelatedUser(String email, RelatedUserStatus status, String nickname, String acceptKey) { | ||
this (email, status, nickname); | ||
this.acceptKey = acceptKey; | ||
} | ||
} | ||
|
Oops, something went wrong.