Class AttentionSetUpdate


  • public abstract class AttentionSetUpdate
    extends Object
    A single update to the attention set. To reconstruct the attention set these instances are parsed in reverse chronological order. Since each update contains all required information and invalidates all previous state, only the most recent record is relevant for each user.

    See AttentionSetInput for the representation in the API.

    • Constructor Detail

      • AttentionSetUpdate

        public AttentionSetUpdate()
    • Method Detail

      • timestamp

        public abstract Instant timestamp()
        The time at which this status was set. This is null for instances to be written because the timestamp in the commit message will be used.
      • account

        public abstract Account.Id account()
        The user included in or excluded from the attention set.
      • operation

        public abstract AttentionSetUpdate.Operation operation()
        Indicates whether the user is added to or removed from the attention set.
      • reason

        public abstract String reason()
        A short human readable reason that explains this status (e.g. "manual").