-
public class MenigaAccount.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static MenigaAccount.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
setOperator(MenigaAccountOperations operator)
Sets the api operator for doing api calls final Result<MenigaAccount>
fetch(Long id)
Retrieves an account with id final Result<List<MenigaAccount>>
fetch()
Get all accounts the user has final Result<List<MenigaAccount>>
fetch(Boolean includeHidden, Boolean includeDisabled)
final Result<List<MenigaAccountType>>
fetchAccountTypes()
Gets a list of all available account types. final Result<List<AccountCategory>>
fetchCategories()
final Result<List<MenigaAuthorizationType>>
fetchAuthorizationTypes()
Gets a list of all available values as an array of NameId values. -
-
Method Detail
-
setOperator
final Unit setOperator(MenigaAccountOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator
- An object that implements the MenigaAccountOperations interface for carrying out api operations on this class.
-
fetch
final Result<MenigaAccount> fetch(Long id)
Retrieves an account with id
- Parameters:
id
- The id of the account to retrieve
-
fetch
final Result<List<MenigaAccount>> fetch()
Get all accounts the user has
-
fetchAccountTypes
final Result<List<MenigaAccountType>> fetchAccountTypes()
Gets a list of all available account types.
-
fetchCategories
final Result<List<AccountCategory>> fetchCategories()
-
fetchAuthorizationTypes
final Result<List<MenigaAuthorizationType>> fetchAuthorizationTypes()
Gets a list of all available values as an array of NameId values.
-
-
-
-