| |
---|
| | public int createBook(String accountId, String title, String color, Boolean publicity) |
---|
| | { |
---|
| | Account account = new Account(); //仮(Account作成時に相談) |
---|
| | Book book = new Book(title, publicity, color); |
---|
| | int newBookId = account.getNewBookId(accountId); //仮(本の数を更新し、AccountIDを返してもらう) |
---|
| | int newBookId = account.getNewBookId(); //仮(本の数を更新し、AccountIDを返してもらう) |
---|
| | booksMap.get(accountId).put(newBookId, book); //ブックに追加 |
---|
| | return newBookId; |
---|
| | } |
---|
| | |
---|
| |
---|
| | |
|