Package io.sentry

Class UserFeedback


  • public final class UserFeedback
    extends java.lang.Object
    Adds additional information about what happened to an event.
    • Constructor Summary

      Constructors 
      Constructor Description
      UserFeedback​(SentryId eventId)
      Initializes SentryUserFeedback and sets the required eventId.
      UserFeedback​(SentryId eventId, @Nullable java.lang.String name, @Nullable java.lang.String email, @Nullable java.lang.String comments)
      Initializes SentryUserFeedback and sets the required eventId.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String getComments()
      Gets comments of the user about what happened.
      @Nullable java.lang.String getEmail()
      Gets the email of the user.
      SentryId getEventId()
      Gets the eventId of the event to which the user feedback is associated.
      @Nullable java.lang.String getName()
      Gets the name of the user.
      void setComments​(@Nullable java.lang.String comments)
      Sets comments of the user about what happened.
      void setEmail​(@Nullable java.lang.String email)
      Sets the email of the user.
      void setName​(java.lang.String name)
      Sets the name of the user.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UserFeedback

        public UserFeedback​(SentryId eventId)
        Initializes SentryUserFeedback and sets the required eventId.
        Parameters:
        eventId - The eventId of the event to which the user feedback is associated.
      • UserFeedback

        public UserFeedback​(SentryId eventId,
                            @Nullable
                            @Nullable java.lang.String name,
                            @Nullable
                            @Nullable java.lang.String email,
                            @Nullable
                            @Nullable java.lang.String comments)
        Initializes SentryUserFeedback and sets the required eventId.
        Parameters:
        eventId - The eventId of the event to which the user feedback is associated.
        name - the name of the user.
        email - the email of the user.
        comments - comments of the user about what happened.
    • Method Detail

      • getEventId

        public SentryId getEventId()
        Gets the eventId of the event to which the user feedback is associated.
        Returns:
        the eventId
      • getName

        @Nullable
        public @Nullable java.lang.String getName()
        Gets the name of the user.
        Returns:
        the name.
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the user.
        Parameters:
        name - the name of the user.
      • getEmail

        @Nullable
        public @Nullable java.lang.String getEmail()
        Gets the email of the user.
        Returns:
        the email.
      • setEmail

        public void setEmail​(@Nullable
                             @Nullable java.lang.String email)
        Sets the email of the user.
        Parameters:
        email - the email of the user.
      • getComments

        @Nullable
        public @Nullable java.lang.String getComments()
        Gets comments of the user about what happened.
        Returns:
        the comments
      • setComments

        public void setComments​(@Nullable
                                @Nullable java.lang.String comments)
        Sets comments of the user about what happened.
        Parameters:
        comments - the comments
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object