forked from getsentry/sentry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserFeedback.java
More file actions
118 lines (105 loc) · 2.5 KB
/
UserFeedback.java
File metadata and controls
118 lines (105 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package io.sentry;
import io.sentry.protocol.SentryId;
import org.jetbrains.annotations.Nullable;
/** Adds additional information about what happened to an event. */
public final class UserFeedback {
private final SentryId eventId;
private @Nullable String name;
private @Nullable String email;
private @Nullable String comments;
/**
* Initializes SentryUserFeedback and sets the required eventId.
*
* @param eventId The eventId of the event to which the user feedback is associated.
*/
public UserFeedback(SentryId eventId) {
this(eventId, null, null, null);
}
/**
* Initializes SentryUserFeedback and sets the required eventId.
*
* @param eventId The eventId of the event to which the user feedback is associated.
* @param name the name of the user.
* @param email the email of the user.
* @param comments comments of the user about what happened.
*/
public UserFeedback(
SentryId eventId, @Nullable String name, @Nullable String email, @Nullable String comments) {
this.eventId = eventId;
this.name = name;
this.email = email;
this.comments = comments;
}
/**
* Gets the eventId of the event to which the user feedback is associated.
*
* @return the eventId
*/
public SentryId getEventId() {
return eventId;
}
/**
* Gets the name of the user.
*
* @return the name.
*/
public @Nullable String getName() {
return name;
}
/**
* Sets the name of the user.
*
* @param name the name of the user.
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the email of the user.
*
* @return the email.
*/
public @Nullable String getEmail() {
return email;
}
/**
* Sets the email of the user.
*
* @param email the email of the user.
*/
public void setEmail(@Nullable String email) {
this.email = email;
}
/**
* Gets comments of the user about what happened.
*
* @return the comments
*/
public @Nullable String getComments() {
return comments;
}
/**
* Sets comments of the user about what happened.
*
* @param comments the comments
*/
public void setComments(@Nullable String comments) {
this.comments = comments;
}
@Override
public String toString() {
return "UserFeedback{"
+ "eventId="
+ eventId
+ ", name='"
+ name
+ '\''
+ ", email='"
+ email
+ '\''
+ ", comments='"
+ comments
+ '\''
+ '}';
}
}