forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTWFIOAccount.h
37 lines (29 loc) · 940 Bytes
/
TWFIOAccount.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2017 Trust Wallet.
#pragma once
#include "TWBase.h"
#include "TWString.h"
TW_EXTERN_C_BEGIN
/// Represents a FIO Account name
TW_EXPORT_CLASS
struct TWFIOAccount;
/// Create a FIO Account
///
/// \param string Account name
/// \note Must be deleted with \TWFIOAccountDelete
/// \return Pointer to a nullable FIO Account
TW_EXPORT_STATIC_METHOD
struct TWFIOAccount *_Nullable TWFIOAccountCreateWithString(TWString *_Nonnull string);
/// Delete a FIO Account
///
/// \param account Pointer to a non-null FIO Account
TW_EXPORT_METHOD
void TWFIOAccountDelete(struct TWFIOAccount *_Nonnull account);
/// Returns the short account string representation.
///
/// \param account Pointer to a non-null FIO Account
/// \return Account non-null string representation
TW_EXPORT_PROPERTY
TWString *_Nonnull TWFIOAccountDescription(struct TWFIOAccount *_Nonnull account);
TW_EXTERN_C_END