Created
October 26, 2020 13:07
-
-
Save jackmalpo/633aad2c11595c44a29fee84296ea9d0 to your computer and use it in GitHub Desktop.
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
enum FitnessDiscipline { | |
CYCLING; | |
} | |
class Instructor { | |
@NotNull public final String id; | |
@NotNull public final String name; | |
@NotNull public final String avatarImageUrl; | |
public Instructor(@NotNull String id, @NotNull String name, @NotNull String avatarImageUrl) { | |
this.id = id; | |
this.name = name; | |
this.avatarImageUrl = avatarImageUrl; | |
} | |
} | |
class PelotonClass { | |
@NotNull public final String id; | |
@NotNull public final ZonedDateTime startDateTime; | |
@NotNull public final Instructor instructor; | |
@NotNull public final FitnessDiscipline fitnessDiscipline; | |
@NotNull public final String title; | |
public PelotonClass( | |
@NotNull String id, | |
@NotNull ZonedDateTime startDateTime, | |
@NotNull Instructor instructor, | |
@NotNull FitnessDiscipline fitnessDiscipline, | |
@NotNull String title) { | |
this.id = id; | |
this.startDateTime = startDateTime; | |
this.instructor = instructor; | |
this.fitnessDiscipline = fitnessDiscipline; | |
this.title = title; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment