From 1c341ce27b7592a9d8de7d4385e0c27fe3da002e Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 27 Sep 2017 20:56:05 -0400 Subject: [PATCH] added fucntions for the grapheneapigenerator --- .../apigenerator/GrapheneApiGenerator.java | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/app/src/main/java/cy/agorise/crystalwallet/apigenerator/GrapheneApiGenerator.java b/app/src/main/java/cy/agorise/crystalwallet/apigenerator/GrapheneApiGenerator.java index aba91da..74349c1 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/apigenerator/GrapheneApiGenerator.java +++ b/app/src/main/java/cy/agorise/crystalwallet/apigenerator/GrapheneApiGenerator.java @@ -1,8 +1,60 @@ package cy.agorise.crystalwallet.apigenerator; +import java.util.List; + +import cy.agorise.crystalwallet.models.GrapheneAccount; +import cy.agorise.graphenej.models.HistoricalTransfer; + /** * Created by henry on 26/9/2017. */ public class GrapheneApiGenerator { + + /** + * Retrieves the data of an account searching by it's id + * + * @param accountId The accountId to retrieve + * @return The Account properties retrieved from the net, or null if fails + */ + public GrapheneAccount getAccountById(String accountId){ + //TODO implement + return null; + } + + /** + * Gets the account ID from an owner or active key + * + * @param address The address to retrieve + * @return The id of the account, of null + */ + public String getAccountByOwnerOrActiveAddress(String address){ + //TODO implement + return null; + } + + /** + * Return the Transaction for an Account + * + * @param accountId The account id to search + * @param start The start index of the transaction list + * @param stop The stop index of the transaction list + * @param limit the maximun transactions to retrieve + * @return The list of trnsaction of the account, or null if the call fail + */ + public List getAccountTransaction(String accountId, int start, int stop, int limit){ + //TODO implement + return null; + } + + /** + * Returns if an Account Name is avaible to be used for a new account + * + * @param accountName The account Name to find + * @return If the account name isn't used in any bitshares account + */ + public boolean isAccountNameAvaible(String accountName){ + //TODO implement + return false; + } }