File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/com/opentok Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
@ JsonIgnoreProperties (ignoreUnknown = true )
19
19
public class CreatedSession {
20
20
21
+ private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper ();
22
+
21
23
@ JsonProperty ("session_id" )
22
24
private String sessionId ;
23
25
24
26
@ JsonProperty ("project_id" )
25
27
private String projectId ;
26
28
27
29
@ JsonProperty ("partner_id" )
28
- private String partner_id ;
30
+ private String partnerId ;
29
31
30
32
@ JsonProperty ("create_dt" )
31
33
private String createDt ;
@@ -50,7 +52,7 @@ public String getProjectId() {
50
52
}
51
53
52
54
public String getPartnerId () {
53
- return partner_id ;
55
+ return partnerId ;
54
56
}
55
57
56
58
public String getCreateDt () {
@@ -64,7 +66,7 @@ public String getMediaServerURL() {
64
66
@ Override
65
67
public String toString () {
66
68
try {
67
- return new ObjectMapper () .writeValueAsString (this );
69
+ return OBJECT_MAPPER .writeValueAsString (this );
68
70
} catch (Exception e ) {
69
71
return "" ;
70
72
}
You can’t perform that action at this time.
0 commit comments