Graphene api import acount

This commit is contained in:
henry 2017-10-01 22:18:56 -04:00
parent f5ce56611f
commit eb3beb6e9a
4 changed files with 13 additions and 4 deletions

View file

@ -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;

View file

@ -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);
}

View file

@ -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;

View file

@ -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){
}
}
}