/*
 * 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
    }
}

@@ -583,16 +583,126 @@
 ist%3C%3E();
+%0A    private ArrayList%3CUser%3E receivedRequests = new ArrayList%3C%3E();%0A    // WOW factor TODO --%3E profile pictures
 %0A%0A    pu
@@ -1956,35 +1956,33 @@
 d addFriend(
-Habit habit
+User user
 ) %7B%0A        
@@ -2025,27 +2025,390 @@
 eFriend(
-Habit habit
+User user) %7B%0A        // TODO%0A    %7D%0A%0A    public ArrayList%3CUser%3E getReceivedRequests() %7B%0A        return receivedRequests;%0A    %7D%0A%0A    public void setReceivedRequests(ArrayList%3CUser%3E receivedRequests) %7B%0A        this.receivedRequests = receivedRequests;%0A    %7D%0A%0A    public void addReceivedRequest(User user) %7B%0A        // TODO%0A    %7D%0A%0A    public void removeReceivedRequest(User user
 ) %7B%0A    

insert requests