Newer
Older
RxSprout / app / src / main / java / com / example / sprout / rooms / Accounts.java
KeijuMatsumoto on 28 Nov 2017 781 bytes [add] Project
package com.example.sprout.rooms;

import java.util.ArrayList;


public class Accounts {

    private static Accounts theInstance = null;
    private static ArrayList<Account> accounts = new ArrayList<Account>();
    private static int userID = 0;

    public Accounts() {
        if (theInstance == null) {
            theInstance = this;
        }
    }

    public static Accounts getInstance() {
        return theInstance;
    }


    public Accounts getAccount() {
        Account ac = new Account();
        this.userID = ac.getUserID();
        return new Accounts();
    }


    public static ArrayList<Account> getAccounts() {
        return accounts;
    }


    public static void setAccounts(ArrayList<Account> accounts) {
        Accounts.accounts = accounts;
    }
}