package com.juick; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * Created by vitalyster on 22.11.2016. */ public class DeviceRegistration { private String type; private String token; @JsonCreator public DeviceRegistration(@JsonProperty("type") String type, @JsonProperty("token") String token) { this.type = type; this.token = token; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getToken() { return token; } public void setToken(String token) { this.token = token; } }