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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionUserFeedback
(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 String
Gets comments of the user about what happened.@Nullable String
getEmail()
Gets the email of the user.Gets the eventId of the event to which the user feedback is associated.@Nullable String
getName()
Gets the name of the user.void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setComments
(@Nullable String comments) Sets comments of the user about what happened.void
Sets the email of the user.void
Sets the name of the user.void
setUnknown
(@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:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-