Package io.sentry
Class UserFeedback
java.lang.Object
io.sentry.UserFeedback
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
Adds additional information about what happened to an event.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionUserFeedback(SentryId eventId) Initializes SentryUserFeedback and sets the required eventId.UserFeedback(SentryId eventId, @Nullable String name, @Nullable String email, @Nullable String comments) Initializes SentryUserFeedback and sets the required eventId. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets comments of the user about what happened.@Nullable StringgetEmail()Gets the email of the user.Gets the eventId of the event to which the user feedback is associated.@Nullable StringgetName()Gets the name of the user.voidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetComments(@Nullable String comments) Sets comments of the user about what happened.voidSets the email of the user.voidSets the name of the user.voidsetUnknown(@Nullable Map<String, Object> unknown) toString()
-
Constructor Details
-
UserFeedback
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 String name, @Nullable @Nullable String email, @Nullable @Nullable 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 Details
-
getEventId
Gets the eventId of the event to which the user feedback is associated.- Returns:
- the eventId
-
getName
Gets the name of the user.- Returns:
- the name.
-
setName
Sets the name of the user.- Parameters:
name- the name of the user.
-
getEmail
Gets the email of the user.- Returns:
- the email.
-
setEmail
Sets the email of the user.- Parameters:
email- the email of the user.
-
getComments
Gets comments of the user about what happened.- Returns:
- the comments
-
setComments
Sets comments of the user about what happened.- Parameters:
comments- the comments
-
toString
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-