Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. package pojo;
  2.  
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4.  
  5. public class Credentials {
  6.  
  7.   @JsonProperty("username") //annotation user to update variable name to case required by server
  8.   public String userName; // must be public
  9.   public String password;
  10.  
  11.   public Credentials(String userName, String password) {
  12.     this.userName = userName;
  13.     this.password = password;
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement