Package io.sentry
Class UserFeedback
- java.lang.Object
-
- io.sentry.UserFeedback
-
public final class UserFeedback extends java.lang.ObjectAdds 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.StringgetComments()Gets comments of the user about what happened.@Nullable java.lang.StringgetEmail()Gets the email of the user.SentryIdgetEventId()Gets the eventId of the event to which the user feedback is associated.@Nullable java.lang.StringgetName()Gets the name of the user.voidsetComments(@Nullable java.lang.String comments)Sets comments of the user about what happened.voidsetEmail(@Nullable java.lang.String email)Sets the email of the user.voidsetName(java.lang.String name)Sets the name of the user.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-