Package software.nectar.java.factory
Class CreditsFactory
java.lang.Object
public class CreditsFactory extends BaseFactory<Credits>
-
Nested Class Summary
Nested classes/interfaces inherited from class software.nectar.java.factory.base.BaseFactory
BaseFactory.Http -
Field Summary
Fields inherited from class software.nectar.java.factory.base.BaseFactory
BASE_PATH, JSON_CONTENT_TYPE, key, secret -
Constructor Summary
Constructors Constructor Description CreditsFactory(java.lang.String key, java.lang.String secret) -
Method Summary
Modifier and Type Method Description CreditsextractFrom(org.json.JSONObject responseObj)java.util.List<Credits>extractMultipleFrom(org.json.JSONObject responseObj)CreditsgetCredits()CreditsgetTransactions()Methods inherited from class software.nectar.java.factory.base.BaseFactory
createPayload, delete, generateHMACAuth, generateNonce, get, getKey, gets, getSecret, initiateMultipleResponseRequest, initiateRequest, md5, post, put, setKey, setSecret
-
Constructor Details
-
CreditsFactory
public CreditsFactory(java.lang.String key, java.lang.String secret)
-
-
Method Details
-
getCredits
public Credits getCredits() throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionjava.io.IOExceptionApiResponseException
-
getTransactions
public Credits getTransactions() throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionjava.io.IOExceptionApiResponseException
-
extractMultipleFrom
public java.util.List<Credits> extractMultipleFrom(org.json.JSONObject responseObj) throws ApiResponseException- Specified by:
extractMultipleFromin classBaseFactory<Credits>- Throws:
ApiResponseException
-
extractFrom
- Specified by:
extractFromin classBaseFactory<Credits>- Throws:
ApiResponseException
-