diff options
author | Vitaly Takmazov | 2017-06-30 13:17:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-06-30 13:26:33 +0300 |
commit | 30fc032b520cc28c61e3e6ec776bfe2a5124eaa5 (patch) | |
tree | eac7afcc819ddb88588ff6d27f1d151aeec7aa1a /juick-core | |
parent | cb2c2b2979663e4cdec50701d3bd0cfce240c7a6 (diff) |
core: fix DeviceRegistration deserealization
Diffstat (limited to 'juick-core')
-rw-r--r-- | juick-core/src/main/java/com/juick/DeviceRegistration.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-core/src/main/java/com/juick/DeviceRegistration.java b/juick-core/src/main/java/com/juick/DeviceRegistration.java index 9b6f1d4b..b6d57d35 100644 --- a/juick-core/src/main/java/com/juick/DeviceRegistration.java +++ b/juick-core/src/main/java/com/juick/DeviceRegistration.java @@ -1,5 +1,8 @@ package com.juick; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + /** * Created by vitalyster on 22.11.2016. */ @@ -7,7 +10,8 @@ public class DeviceRegistration { private String type; private String token; - public DeviceRegistration(String type, String token) { + @JsonCreator + public DeviceRegistration(@JsonProperty("type") String type, @JsonProperty("token") String token) { this.type = type; this.token = token; } |