Skip to content
Snippets Groups Projects
Select Git revision
  • e6d0540382f21f80c5592c6f063b3bb67531e4e1
  • master default protected
  • Mobile-app-UI
3 results

User.java

Blame
  • User.java 592 B
    import java.util.ArrayList;
    
    /*
        Represents a single User of the app.
     */
    
    public class User {
    
        private String userName;
        private String password;
        private String screenName;
        private ArrayList<Group> groups;
    
        //Class constructor
        public User(String userName, String password, String screenName) {
            this.userName = userName;
            this.password = password;
            this.screenName = screenName;
        }
    
        //Getters
    
        public String getScreenName() {
            return screenName;
        }
    
        public ArrayList<Group> getGroups() {
            return groups;
        }
    }