This repository has been archived by the owner on Sep 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
384 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package com.nijikokun.register.payment; | ||
|
||
import org.bukkit.plugin.Plugin; | ||
|
||
/** | ||
* Method.java | ||
* Interface for all sub-methods for payment. | ||
* | ||
* @author: Nijikokun<[email protected]> (@nijikokun) | ||
* @copyright: Copyright (C) 2011 | ||
* @license: GNUv3 Affero License <http://www.gnu.org/licenses/agpl-3.0.html> | ||
*/ | ||
public interface Method { | ||
public Object getPlugin(); | ||
public String getName(); | ||
|
@@ -11,9 +21,12 @@ public interface Method { | |
public boolean hasBankAccount(String bank, String name); | ||
public MethodAccount getAccount(String name); | ||
public MethodBankAccount getBankAccount(String bank, String name); | ||
public boolean isCompatible(Plugin plugin); | ||
public void setPlugin(Plugin plugin); | ||
|
||
public interface MethodAccount { | ||
public double balance(); | ||
public boolean set(double amount); | ||
public boolean add(double amount); | ||
public boolean subtract(double amount); | ||
public boolean multiply(double amount); | ||
|
@@ -32,6 +45,7 @@ public interface MethodBankAccount { | |
public double balance(); | ||
public String getBankName(); | ||
public int getBankId(); | ||
public boolean set(double amount); | ||
public boolean add(double amount); | ||
public boolean subtract(double amount); | ||
public boolean multiply(double amount); | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.