Package io.sentry
Class UserFeedback
- java.lang.Object
-
- io.sentry.UserFeedback
-
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
public final class UserFeedback extends java.lang.Object implements JsonUnknown, JsonSerializable
Adds additional information about what happened to an event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserFeedback.Deserializer
static class
UserFeedback.JsonKeys
-
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.@Nullable java.util.Map<java.lang.String,java.lang.Object>
getUnknown()
void
serialize(@NotNull JsonObjectWriter writer, @NotNull ILogger logger)
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.void
setUnknown(@Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
getUnknown
@Nullable public @Nullable java.util.Map<java.lang.String,java.lang.Object> getUnknown()
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
public void setUnknown(@Nullable @Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws java.io.IOException
- Specified by:
serialize
in interfaceJsonSerializable
- Throws:
java.io.IOException
-
-