package com.sims.topaz.network.modele;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class User implements Serializable{
	
	private static final long serialVersionUID = 7526472295622776147L;
	
	@JsonProperty("picture_url")
	private String pictureUrl;
	
	@JsonProperty("id")
	private Long id;

	@JsonProperty("name")
	private String user_name;

	@JsonProperty("user_password")
	private String password;

	@JsonProperty("email")
	private String email;

	@JsonProperty("verified")
	private Boolean verified;

	@JsonProperty("messages")
	private List<Message> messages;	
	
	@JsonProperty("status")
	private String status;		

	
	
	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}

	public User() {
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getId() {
		return id;
	}

	public String getUserName() {
		return user_name;
	}

	public String getPassword() {
		return password;
	}

	public String getEmail() {
		return email;
	}

	public Boolean getVerified() {
		return verified;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setUserName(String name) {
		this.user_name = name;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setVerified(Boolean verified) {
		this.verified = verified;
	}

	public String getStatus() {
		return status;
	}

	public List<Message> getMessages() {
		return messages;
	}

	public String getPictureUrl() {
		return pictureUrl;
	}

	@Override
	public String toString(){
		return String.valueOf(id)+", "
				+this.user_name + ", " + this.password + ", "+ this.email;
	}

}

@@ -438,16 +438,21 @@
 operty(%22
+user_
 id%22)%0A%09pr
@@ -483,16 +483,21 @@
 operty(%22
+user_
 name%22)%0A%09
@@ -598,16 +598,21 @@
 operty(%22
+user_
 email%22)%0A
@@ -651,16 +651,21 @@
 operty(%22
+user_
 verified
@@ -711,16 +711,21 @@
 operty(%22
+user_
 messages
@@ -779,16 +779,83 @@
 operty(%22
+user_likes%22)%0A%09private List%3CComment%3E likes;%09%0A%09%0A%09@JsonProperty(%22user_
 status%22)

put back the user as before (is needed also in signin/signup)