StreamPhoto

final class StreamPhoto : Model
extension StreamPhoto: Reportable

A photo to be shown in the photo stream. Currently, photo stream photos:

  • are non-editable and non-deletable by the author
  • may be deleted by moderators. The ‘locked’ state may be applied as well, but does nothing.

Properties

  • id

    Declaration

    Swift

    @ID
    var id: Int?
  • The filename for the image. Use with the ImageController methods in /api/v3/images/**

    Declaration

    Swift

    @Field
    var image: String
  • Where on the boat the photo was taken. Optional. One of boatLocation or atEvent should be non-nil.

    Declaration

    Swift

    @OptionalField
    var boatLocation: PhotoStreamBoatLocation?
  • The time the image was taken, as reported by the client upon upload. Should be within a minute of createdAt, but maybe not if we allow photo capture while ashore?

    Declaration

    Swift

    @Field
    var captureTime: Date
  • Moderators can set several statuses on streamPhotos that modify visibility.

    Declaration

    Swift

    @Enum
    var moderationStatus: ContentModerationStatus
  • Timestamp of the model’s creation, set automatically.

    Declaration

    Swift

    @Timestamp
    var createdAt: Date?
  • Timestamp of the model’s soft-deletion, set automatically.

    Declaration

    Swift

    @Timestamp
    var deletedAt: Date?

Relations