Skip to content

Instantly share code, notes, and snippets.

@jackmalpo
Created October 26, 2020 13:07
Show Gist options
  • Save jackmalpo/633aad2c11595c44a29fee84296ea9d0 to your computer and use it in GitHub Desktop.
Save jackmalpo/633aad2c11595c44a29fee84296ea9d0 to your computer and use it in GitHub Desktop.
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