Advertisement
yanniro2

UserProfile

Oct 13th, 2018
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.78 KB | None | 0 0
  1. package com.modelpaper.mad.it17121002;
  2.  
  3. /**
  4.  * Created by Suraj on 10/6/2018.
  5.  */
  6.  
  7. public final class UserProfile {
  8.  
  9.     private UserProfile(){
  10.  
  11.     }
  12.  
  13.     public static UserProfile getProfile(){
  14.  
  15.         UserProfile userProfile = new UserProfile();
  16.         return userProfile;
  17.     }
  18.     class Users implements BaseColumn{
  19.  
  20.         public static final String TABLE_NAME = "UserInfo";
  21.         public static final String COL_ID = "_ID";
  22.         public static final String COL_USERNAME  = "userName ";
  23.         public static final String COL_DOB = "dateOfBirth";
  24.         public static final String COL_GENDER = "Gender";
  25.         public static final String COL_PASSWORD = "Password";
  26.  
  27.         private int id;
  28.         private String username;
  29.         private String dob;
  30.         private String gender;
  31.         private String password;
  32.  
  33.  
  34.         public int getId() {
  35.             return id;
  36.         }
  37.  
  38.         public void setId(int id) {
  39.             this.id = id;
  40.         }
  41.  
  42.         public String getUsername() {
  43.             return username;
  44.         }
  45.  
  46.         public void setUsername(String username) {
  47.             this.username = username;
  48.         }
  49.  
  50.         public String getDob() {
  51.             return dob;
  52.         }
  53.  
  54.         public void setDob(String dob) {
  55.             this.dob = dob;
  56.         }
  57.  
  58.         public String getGender() {
  59.             return gender;
  60.         }
  61.  
  62.         public void setGender(String gender) {
  63.             this.gender = gender;
  64.         }
  65.  
  66.         public String getPassword() {
  67.             return password;
  68.         }
  69.  
  70.         public void setPassword(String password) {
  71.             this.password = password;
  72.         }
  73.     }
  74.  
  75.     public Users getUser(){
  76.         Users users = new Users();
  77.  
  78.         return users;
  79.     }
  80.  
  81.  
  82.  
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement