/*
 * Copyright (c) 2017. Team CMPUT301F17T02, CMPUT301, University of Alberta - All Rights Reserved. You may use, distribute, or modify this code under terms and conditions of the Code of Students Behaviour at University of Alberta.
 */

package com.example.baard;

import java.util.ArrayList;

/**
 * Created by biancaangotti on 2017-10-18.
 */

public class User {
    private String name;
    private String email;
    private String password;
    private String username;
    private ArrayList<Habit> habits = new ArrayList<>();
    private ArrayList<User> friends = new ArrayList<>();

    public User(String name, String email, String password, String username) {
        this.name = name;
        this.email = email;
        this.password = password;
        this.username = username;
    }

    public String getName() {
        return name;
    }

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

    public String getEmail() {
        return email;
    }

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

    public String getPassword() {
        return password;
    }

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

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public ArrayList<Habit> getHabits() {
        return habits;
    }

    public void setHabits(ArrayList<Habit> habits) {
        this.habits = habits;
    }

    public void addHabit(Habit habit) {
        // TODO
    }

    public void removeHabit(Habit habit) {
        // TODO
    }

    public ArrayList<User> getFriends() {
        return friends;
    }

    public void setFriends(ArrayList<User> friends) {
        this.friends = friends;
    }

    public void addFriend(Habit habit) {
        // TODO
    }

    public void removeFriend(Habit habit) {
        // TODO
    }
}

/*
 * Copyright (c) 2017. Team CMPUT301F17T02, CMPUT301, University of Alberta - All Rights Reserved. You may use, distribute, or modify this code under terms and conditions of the Code of Students Behaviour at University of Alberta.
 */

package com.example.baard;

import java.util.ArrayList;

/**
 * Created by biancaangotti on 2017-10-18.
 */

public class User {
    private String name;
    private String email;
    private String password;
    private String username;
    private ArrayList<Habit> habits = new ArrayList<>();
    private ArrayList<User> friends = new ArrayList<>();
    private ArrayList<User> receivedRequests = new ArrayList<>();
    // WOW factor TODO --> profile pictures

    public User(String name, String email, String password, String username) {
        this.name = name;
        this.email = email;
        this.password = password;
        this.username = username;
    }

    public String getName() {
        return name;
    }

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

    public String getEmail() {
        return email;
    }

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

    public String getPassword() {
        return password;
    }

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

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public ArrayList<Habit> getHabits() {
        return habits;
    }

    public void setHabits(ArrayList<Habit> habits) {
        this.habits = habits;
    }

    public void addHabit(Habit habit) {
        // TODO
    }

    public void removeHabit(Habit habit) {
        // TODO
    }

    public ArrayList<User> getFriends() {
        return friends;
    }

    public void setFriends(ArrayList<User> friends) {
        this.friends = friends;
    }

    public void addFriend(User user) {
        // TODO
    }

    public void removeFriend(User user) {
        // TODO
    }

    public ArrayList<User> getReceivedRequests() {
        return receivedRequests;
    }

    public void setReceivedRequests(ArrayList<User> receivedRequests) {
        this.receivedRequests = receivedRequests;
    }

    public void addReceivedRequest(User user) {
        // TODO
    }

    public void removeReceivedRequest(User user) {
        // TODO
    }
}

insert requests