Class InvitationWithCode

  • All Implemented Interfaces:
    NamedObject

    public class InvitationWithCode
    extends Object
    implements NamedObject
    Complete invitation as stored in the system. This class is a common base for backend and REST API variants which store attributes differently.
    Author:
    Krzysztof Benedyczak
    • Constructor Detail

      • InvitationWithCode

        public InvitationWithCode​(InvitationParam base,
                                  String registrationCode,
                                  Instant lastSentTime,
                                  int numberOfSends)
      • InvitationWithCode

        public InvitationWithCode​(com.fasterxml.jackson.databind.node.ObjectNode json)
    • Method Detail

      • setInvitation

        public void setInvitation​(InvitationParam invitation)
      • getRegistrationCode

        public String getRegistrationCode()
      • getLastSentTime

        public Instant getLastSentTime()
      • getNumberOfSends

        public int getNumberOfSends()
      • setLastSentTime

        public void setLastSentTime​(Instant lastSentTime)
      • setNumberOfSends

        public void setNumberOfSends​(int numberOfSends)
      • getCreationTime

        public Instant getCreationTime()
      • setCreationTime

        public void setCreationTime​(Instant creationTime)
      • toJson

        public com.fasterxml.jackson.databind.node.ObjectNode toJson()
      • getName

        public String getName()
        Specified by:
        getName in interface NamedObject
        Returns:
        human readable name of the object. Must be unique for the object class.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object