Graphene api import acount
This commit is contained in:
parent
f5ce56611f
commit
eb3beb6e9a
4 changed files with 13 additions and 4 deletions
|
@ -6,7 +6,7 @@ import cy.agorise.crystalwallet.enums.CryptoCoin;
|
|||
* Created by Henry Varona on 1/10/2017.
|
||||
*/
|
||||
|
||||
abstract class CryptoNetInfoRequest {
|
||||
public abstract class CryptoNetInfoRequest {
|
||||
protected CryptoCoin coin;
|
||||
protected CryptoNetInfoRequestListener listener;
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@ package cy.agorise.crystalwallet.cryptonetinforequests;
|
|||
* Created by Henry Varona on 1/10/2017.
|
||||
*/
|
||||
|
||||
interface CryptoNetInfoRequestsListener {
|
||||
public interface CryptoNetInfoRequestsListener {
|
||||
public void onNewRequest(CryptoNetInfoRequest request);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import cy.agorise.crystalwallet.enums.CryptoCoin;
|
|||
* Created by Henry Varona on 1/10/2017.
|
||||
*/
|
||||
|
||||
class ValidateImportBitsharesAccountRequest extends CryptoNetInfoRequest {
|
||||
public class ValidateImportBitsharesAccountRequest extends CryptoNetInfoRequest {
|
||||
|
||||
private String accountName;
|
||||
private String mnemonic;
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
package cy.agorise.crystalwallet.manager;
|
||||
|
||||
import cy.agorise.crystalwallet.cryptonetinforequests.CryptoNetInfoRequest;
|
||||
import cy.agorise.crystalwallet.cryptonetinforequests.CryptoNetInfoRequestsListener;
|
||||
import cy.agorise.crystalwallet.cryptonetinforequests.ValidateImportBitsharesAccountRequest;
|
||||
import cy.agorise.crystalwallet.models.CryptoNetAccount;
|
||||
|
||||
/**
|
||||
* Created by henry on 26/9/2017.
|
||||
*/
|
||||
|
||||
public class BitsharesAccountManager implements CryptoAccountManager {
|
||||
public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetInfoRequestsListener {
|
||||
@Override
|
||||
public CryptoNetAccount createAccountFromSeed(CryptoNetAccount account) {
|
||||
return null;
|
||||
|
@ -21,4 +24,10 @@ public class BitsharesAccountManager implements CryptoAccountManager {
|
|||
public void loadAccountFromDB(CryptoNetAccount account) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNewRequest(CryptoNetInfoRequest request) {
|
||||
if (request instanceof ValidateImportBitsharesAccountRequest){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue