react-native-candle 19.0.11-beta → 40.0.6-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -25
- package/android/gradle.properties +5 -0
- package/android/src/main/java/com/margelo/nitro/rncandle/BridgeTypes.kt +189 -2
- package/android/src/main/java/com/margelo/nitro/rncandle/HybridRNCandle.kt +63 -10
- package/ios/Sources/CandleLinkSheetWrapperView.swift +3 -2
- package/ios/Sources/CandleLinkViewModel.swift +2 -1
- package/ios/Sources/RNCandle.swift +86 -9
- package/ios/Sources/Types.swift +199 -5
- package/lib/typescript/commonjs/src/context.d.ts +16 -6
- package/lib/typescript/commonjs/src/provider.d.ts +1 -2
- package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts +76 -6
- package/lib/typescript/commonjs/src/types.d.ts +15 -3
- package/lib/typescript/module/src/context.d.ts +16 -6
- package/lib/typescript/module/src/provider.d.ts +1 -2
- package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts +76 -6
- package/lib/typescript/module/src/types.d.ts +15 -3
- package/nitrogen/generated/android/c++/JAssetAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JAssetAccountsResponse.hpp +2 -0
- package/nitrogen/generated/android/c++/JCounterparty.hpp +2 -0
- package/nitrogen/generated/android/c++/JCryptoAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JCryptoAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JEventAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JFiatAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JFiatAsset.hpp +2 -0
- package/nitrogen/generated/android/c++/JFriendRequestAsset.hpp +86 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetDirection.hpp +58 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetQuoteRequest.hpp +63 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetQuoteRequestAction.hpp +64 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetRef.hpp +66 -0
- package/nitrogen/generated/android/c++/JFunc_void_LinkedAccount.hpp +13 -11
- package/nitrogen/generated/android/c++/JFunc_void_TradeExecutionResult.hpp +11 -0
- package/nitrogen/generated/android/c++/JHostedAuthorizationCallback.hpp +66 -0
- package/nitrogen/generated/android/c++/JHostedAuthorizationRequest.hpp +69 -0
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.cpp +78 -15
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.hpp +7 -4
- package/nitrogen/generated/android/c++/JLinkedAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JLinkedAccountStatusRef.hpp +3 -0
- package/nitrogen/generated/android/c++/JMessageThreadAsset.hpp +99 -0
- package/nitrogen/generated/android/c++/JMessageThreadAssetQuoteRequest.hpp +61 -0
- package/nitrogen/generated/android/c++/JMessageThreadAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JMessageThreadMessage.hpp +78 -0
- package/nitrogen/generated/android/c++/JService.hpp +36 -252
- package/nitrogen/generated/android/c++/JServiceCounterparty.hpp +3 -0
- package/nitrogen/generated/android/c++/JServiceID.hpp +316 -0
- package/nitrogen/generated/android/c++/JStockAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JStockAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JTrade.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeAsset.hpp +22 -1
- package/nitrogen/generated/android/c++/JTradeAssetKind.hpp +6 -0
- package/nitrogen/generated/android/c++/JTradeAssetQuoteRequest.hpp +15 -1
- package/nitrogen/generated/android/c++/JTradeAssetRef.hpp +13 -1
- package/nitrogen/generated/android/c++/JTradeExecutionResult.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeQuote.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeQuotesRequest.hpp +6 -0
- package/nitrogen/generated/android/c++/JTradeQuotesResponse.hpp +10 -0
- package/nitrogen/generated/android/c++/JTradeRef.hpp +4 -0
- package/nitrogen/generated/android/c++/JTradesResponse.hpp +10 -0
- package/nitrogen/generated/android/c++/JTransportAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JTransportAsset.hpp +3 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAsset.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetDirection.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetQuoteRequest.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetQuoteRequestAction.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Func_void_LinkedAccount.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationCallback.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationRequest.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HybridRNCandleSpec.kt +18 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAsset.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAssetQuoteRequest.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadMessage.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Service.kt +32 -83
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ServiceID.kt +109 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAsset.kt +8 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetKind.kt +4 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetQuoteRequest.kt +8 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetRef.kt +8 -2
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.cpp +3 -3
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.hpp +184 -20
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Umbrella.hpp +37 -1
- package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.hpp +74 -14
- package/nitrogen/generated/ios/swift/FriendRequestAsset.swift +67 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetDirection.swift +40 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetQuoteRequest.swift +34 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetQuoteRequestAction.swift +48 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetRef.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_LinkedAccount.swift +5 -5
- package/nitrogen/generated/ios/swift/HostedAuthorizationCallback.swift +52 -0
- package/nitrogen/generated/ios/swift/HostedAuthorizationRequest.swift +44 -0
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec.swift +7 -4
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec_cxx.swift +56 -13
- package/nitrogen/generated/ios/swift/MessageThreadAsset.swift +68 -0
- package/nitrogen/generated/ios/swift/MessageThreadAssetQuoteRequest.swift +34 -0
- package/nitrogen/generated/ios/swift/MessageThreadAssetRef.swift +39 -0
- package/nitrogen/generated/ios/swift/MessageThreadMessage.swift +119 -0
- package/nitrogen/generated/ios/swift/Service.swift +44 -334
- package/nitrogen/generated/ios/swift/ServiceID.swift +384 -0
- package/nitrogen/generated/ios/swift/TradeAsset.swift +23 -1
- package/nitrogen/generated/ios/swift/TradeAssetKind.swift +8 -0
- package/nitrogen/generated/ios/swift/TradeAssetQuoteRequest.swift +23 -1
- package/nitrogen/generated/ios/swift/TradeAssetRef.swift +23 -1
- package/nitrogen/generated/shared/c++/CryptoAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/CryptoAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/EventAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/FiatAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/FiatAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/FriendRequestAsset.hpp +112 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetDirection.hpp +76 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetQuoteRequest.hpp +89 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetQuoteRequestAction.hpp +84 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetRef.hpp +92 -0
- package/nitrogen/generated/shared/c++/HostedAuthorizationCallback.hpp +92 -0
- package/nitrogen/generated/shared/c++/HostedAuthorizationRequest.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.cpp +5 -2
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.hpp +16 -7
- package/nitrogen/generated/shared/c++/LinkedAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/LinkedAccountStatusRef.hpp +1 -1
- package/nitrogen/generated/shared/c++/MessageThreadAsset.hpp +106 -0
- package/nitrogen/generated/shared/c++/MessageThreadAssetQuoteRequest.hpp +87 -0
- package/nitrogen/generated/shared/c++/MessageThreadAssetRef.hpp +91 -0
- package/nitrogen/generated/shared/c++/MessageThreadMessage.hpp +104 -0
- package/nitrogen/generated/shared/c++/Service.hpp +60 -346
- package/nitrogen/generated/shared/c++/ServiceCounterparty.hpp +1 -1
- package/nitrogen/generated/shared/c++/ServiceID.hpp +420 -0
- package/nitrogen/generated/shared/c++/StockAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/StockAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/TradeAsset.hpp +15 -1
- package/nitrogen/generated/shared/c++/TradeAssetKind.hpp +10 -2
- package/nitrogen/generated/shared/c++/TradeAssetQuoteRequest.hpp +15 -1
- package/nitrogen/generated/shared/c++/TradeAssetRef.hpp +15 -1
- package/nitrogen/generated/shared/c++/TransportAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/TransportAsset.hpp +1 -1
- package/package.json +1 -1
- package/src/context.ts +21 -5
- package/src/provider.tsx +62 -34
- package/src/specs/RNCandle.nitro.ts +109 -7
- package/src/types.ts +50 -1
|
@@ -16,34 +16,45 @@
|
|
|
16
16
|
#include "CryptoAsset.hpp"
|
|
17
17
|
#include "EventAsset.hpp"
|
|
18
18
|
#include "FiatAsset.hpp"
|
|
19
|
+
#include "FriendRequestAsset.hpp"
|
|
20
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
19
21
|
#include "JAddress.hpp"
|
|
20
22
|
#include "JCoordinates.hpp"
|
|
21
23
|
#include "JCounterparty.hpp"
|
|
22
24
|
#include "JCryptoAsset.hpp"
|
|
23
25
|
#include "JEventAsset.hpp"
|
|
24
26
|
#include "JFiatAsset.hpp"
|
|
27
|
+
#include "JFriendRequestAsset.hpp"
|
|
28
|
+
#include "JFriendRequestAssetDirection.hpp"
|
|
25
29
|
#include "JMerchantCounterparty.hpp"
|
|
26
30
|
#include "JMerchantLocation.hpp"
|
|
31
|
+
#include "JMessageThreadAsset.hpp"
|
|
32
|
+
#include "JMessageThreadMessage.hpp"
|
|
27
33
|
#include "JNothingAsset.hpp"
|
|
28
34
|
#include "JOtherAsset.hpp"
|
|
29
35
|
#include "JService.hpp"
|
|
30
36
|
#include "JServiceCounterparty.hpp"
|
|
37
|
+
#include "JServiceID.hpp"
|
|
31
38
|
#include "JStockAsset.hpp"
|
|
32
39
|
#include "JTradeAsset.hpp"
|
|
33
40
|
#include "JTransportAsset.hpp"
|
|
34
41
|
#include "JUserCounterparty.hpp"
|
|
35
42
|
#include "MerchantCounterparty.hpp"
|
|
36
43
|
#include "MerchantLocation.hpp"
|
|
44
|
+
#include "MessageThreadAsset.hpp"
|
|
45
|
+
#include "MessageThreadMessage.hpp"
|
|
37
46
|
#include "NothingAsset.hpp"
|
|
38
47
|
#include "OtherAsset.hpp"
|
|
39
48
|
#include "Service.hpp"
|
|
40
49
|
#include "ServiceCounterparty.hpp"
|
|
50
|
+
#include "ServiceID.hpp"
|
|
41
51
|
#include "StockAsset.hpp"
|
|
42
52
|
#include "TradeAsset.hpp"
|
|
43
53
|
#include "TransportAsset.hpp"
|
|
44
54
|
#include "UserCounterparty.hpp"
|
|
45
55
|
#include <optional>
|
|
46
56
|
#include <string>
|
|
57
|
+
#include <vector>
|
|
47
58
|
|
|
48
59
|
namespace margelo::nitro::rncandle {
|
|
49
60
|
|
|
@@ -16,14 +16,19 @@
|
|
|
16
16
|
#include "CryptoAssetQuoteRequest.hpp"
|
|
17
17
|
#include "EventAssetQuoteRequest.hpp"
|
|
18
18
|
#include "FiatAssetQuoteRequest.hpp"
|
|
19
|
+
#include "FriendRequestAssetQuoteRequest.hpp"
|
|
20
|
+
#include "FriendRequestAssetQuoteRequestAction.hpp"
|
|
19
21
|
#include "JAddress.hpp"
|
|
20
22
|
#include "JCoordinates.hpp"
|
|
21
23
|
#include "JCounterpartyQuoteRequest.hpp"
|
|
22
24
|
#include "JCryptoAssetQuoteRequest.hpp"
|
|
23
25
|
#include "JEventAssetQuoteRequest.hpp"
|
|
24
26
|
#include "JFiatAssetQuoteRequest.hpp"
|
|
27
|
+
#include "JFriendRequestAssetQuoteRequest.hpp"
|
|
28
|
+
#include "JFriendRequestAssetQuoteRequestAction.hpp"
|
|
25
29
|
#include "JMerchantCounterpartyQuoteRequest.hpp"
|
|
26
30
|
#include "JMerchantLocation.hpp"
|
|
31
|
+
#include "JMessageThreadAssetQuoteRequest.hpp"
|
|
27
32
|
#include "JNothingAssetQuoteRequest.hpp"
|
|
28
33
|
#include "JOtherAssetQuoteRequest.hpp"
|
|
29
34
|
#include "JServiceCounterpartyQuoteRequest.hpp"
|
|
@@ -33,6 +38,7 @@
|
|
|
33
38
|
#include "JUserCounterpartyQuoteRequest.hpp"
|
|
34
39
|
#include "MerchantCounterpartyQuoteRequest.hpp"
|
|
35
40
|
#include "MerchantLocation.hpp"
|
|
41
|
+
#include "MessageThreadAssetQuoteRequest.hpp"
|
|
36
42
|
#include "NothingAssetQuoteRequest.hpp"
|
|
37
43
|
#include "OtherAssetQuoteRequest.hpp"
|
|
38
44
|
#include "ServiceCounterpartyQuoteRequest.hpp"
|
|
@@ -16,20 +16,27 @@
|
|
|
16
16
|
#include "CryptoAsset.hpp"
|
|
17
17
|
#include "EventAsset.hpp"
|
|
18
18
|
#include "FiatAsset.hpp"
|
|
19
|
+
#include "FriendRequestAsset.hpp"
|
|
20
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
19
21
|
#include "JAddress.hpp"
|
|
20
22
|
#include "JCoordinates.hpp"
|
|
21
23
|
#include "JCounterparty.hpp"
|
|
22
24
|
#include "JCryptoAsset.hpp"
|
|
23
25
|
#include "JEventAsset.hpp"
|
|
24
26
|
#include "JFiatAsset.hpp"
|
|
27
|
+
#include "JFriendRequestAsset.hpp"
|
|
28
|
+
#include "JFriendRequestAssetDirection.hpp"
|
|
25
29
|
#include "JLinkedAccountState.hpp"
|
|
26
30
|
#include "JLinkedAccountStatusRef.hpp"
|
|
27
31
|
#include "JMerchantCounterparty.hpp"
|
|
28
32
|
#include "JMerchantLocation.hpp"
|
|
33
|
+
#include "JMessageThreadAsset.hpp"
|
|
34
|
+
#include "JMessageThreadMessage.hpp"
|
|
29
35
|
#include "JNothingAsset.hpp"
|
|
30
36
|
#include "JOtherAsset.hpp"
|
|
31
37
|
#include "JService.hpp"
|
|
32
38
|
#include "JServiceCounterparty.hpp"
|
|
39
|
+
#include "JServiceID.hpp"
|
|
33
40
|
#include "JStockAsset.hpp"
|
|
34
41
|
#include "JTradeAsset.hpp"
|
|
35
42
|
#include "JTradeQuote.hpp"
|
|
@@ -39,10 +46,13 @@
|
|
|
39
46
|
#include "LinkedAccountStatusRef.hpp"
|
|
40
47
|
#include "MerchantCounterparty.hpp"
|
|
41
48
|
#include "MerchantLocation.hpp"
|
|
49
|
+
#include "MessageThreadAsset.hpp"
|
|
50
|
+
#include "MessageThreadMessage.hpp"
|
|
42
51
|
#include "NothingAsset.hpp"
|
|
43
52
|
#include "OtherAsset.hpp"
|
|
44
53
|
#include "Service.hpp"
|
|
45
54
|
#include "ServiceCounterparty.hpp"
|
|
55
|
+
#include "ServiceID.hpp"
|
|
46
56
|
#include "StockAsset.hpp"
|
|
47
57
|
#include "TradeAsset.hpp"
|
|
48
58
|
#include "TradeQuote.hpp"
|
|
@@ -13,14 +13,18 @@
|
|
|
13
13
|
#include "CryptoAssetRef.hpp"
|
|
14
14
|
#include "EventAssetRef.hpp"
|
|
15
15
|
#include "FiatAssetRef.hpp"
|
|
16
|
+
#include "FriendRequestAssetRef.hpp"
|
|
16
17
|
#include "JCryptoAssetRef.hpp"
|
|
17
18
|
#include "JEventAssetRef.hpp"
|
|
18
19
|
#include "JFiatAssetRef.hpp"
|
|
20
|
+
#include "JFriendRequestAssetRef.hpp"
|
|
21
|
+
#include "JMessageThreadAssetRef.hpp"
|
|
19
22
|
#include "JNothingAssetRef.hpp"
|
|
20
23
|
#include "JOtherAssetRef.hpp"
|
|
21
24
|
#include "JStockAssetRef.hpp"
|
|
22
25
|
#include "JTradeAssetRef.hpp"
|
|
23
26
|
#include "JTransportAssetRef.hpp"
|
|
27
|
+
#include "MessageThreadAssetRef.hpp"
|
|
24
28
|
#include "NothingAssetRef.hpp"
|
|
25
29
|
#include "OtherAssetRef.hpp"
|
|
26
30
|
#include "StockAssetRef.hpp"
|
|
@@ -16,20 +16,27 @@
|
|
|
16
16
|
#include "CryptoAsset.hpp"
|
|
17
17
|
#include "EventAsset.hpp"
|
|
18
18
|
#include "FiatAsset.hpp"
|
|
19
|
+
#include "FriendRequestAsset.hpp"
|
|
20
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
19
21
|
#include "JAddress.hpp"
|
|
20
22
|
#include "JCoordinates.hpp"
|
|
21
23
|
#include "JCounterparty.hpp"
|
|
22
24
|
#include "JCryptoAsset.hpp"
|
|
23
25
|
#include "JEventAsset.hpp"
|
|
24
26
|
#include "JFiatAsset.hpp"
|
|
27
|
+
#include "JFriendRequestAsset.hpp"
|
|
28
|
+
#include "JFriendRequestAssetDirection.hpp"
|
|
25
29
|
#include "JLinkedAccountState.hpp"
|
|
26
30
|
#include "JLinkedAccountStatusRef.hpp"
|
|
27
31
|
#include "JMerchantCounterparty.hpp"
|
|
28
32
|
#include "JMerchantLocation.hpp"
|
|
33
|
+
#include "JMessageThreadAsset.hpp"
|
|
34
|
+
#include "JMessageThreadMessage.hpp"
|
|
29
35
|
#include "JNothingAsset.hpp"
|
|
30
36
|
#include "JOtherAsset.hpp"
|
|
31
37
|
#include "JService.hpp"
|
|
32
38
|
#include "JServiceCounterparty.hpp"
|
|
39
|
+
#include "JServiceID.hpp"
|
|
33
40
|
#include "JStockAsset.hpp"
|
|
34
41
|
#include "JTrade.hpp"
|
|
35
42
|
#include "JTradeAsset.hpp"
|
|
@@ -40,10 +47,13 @@
|
|
|
40
47
|
#include "LinkedAccountStatusRef.hpp"
|
|
41
48
|
#include "MerchantCounterparty.hpp"
|
|
42
49
|
#include "MerchantLocation.hpp"
|
|
50
|
+
#include "MessageThreadAsset.hpp"
|
|
51
|
+
#include "MessageThreadMessage.hpp"
|
|
43
52
|
#include "NothingAsset.hpp"
|
|
44
53
|
#include "OtherAsset.hpp"
|
|
45
54
|
#include "Service.hpp"
|
|
46
55
|
#include "ServiceCounterparty.hpp"
|
|
56
|
+
#include "ServiceID.hpp"
|
|
47
57
|
#include "StockAsset.hpp"
|
|
48
58
|
#include "Trade.hpp"
|
|
49
59
|
#include "TradeAsset.hpp"
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
#include "TransportAccount.hpp"
|
|
12
12
|
|
|
13
13
|
#include "JService.hpp"
|
|
14
|
+
#include "JServiceID.hpp"
|
|
14
15
|
#include "JTransportAccountKind.hpp"
|
|
15
16
|
#include "Service.hpp"
|
|
17
|
+
#include "ServiceID.hpp"
|
|
16
18
|
#include "TransportAccountKind.hpp"
|
|
19
|
+
#include <optional>
|
|
17
20
|
#include <string>
|
|
18
21
|
|
|
19
22
|
namespace margelo::nitro::rncandle {
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
#include "JAddress.hpp"
|
|
16
16
|
#include "JCoordinates.hpp"
|
|
17
17
|
#include "JService.hpp"
|
|
18
|
+
#include "JServiceID.hpp"
|
|
18
19
|
#include "Service.hpp"
|
|
20
|
+
#include "ServiceID.hpp"
|
|
21
|
+
#include <optional>
|
|
19
22
|
#include <string>
|
|
20
23
|
|
|
21
24
|
namespace margelo::nitro::rncandle {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAsset.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "FriendRequestAsset".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class FriendRequestAsset(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val assetKind: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val serviceTradeID: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val direction: FriendRequestAssetDirection,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val user: UserCounterparty,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val linkedAccountID: String,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val service: Service
|
|
38
|
+
) {
|
|
39
|
+
/* primary constructor */
|
|
40
|
+
|
|
41
|
+
companion object {
|
|
42
|
+
/**
|
|
43
|
+
* Constructor called from C++
|
|
44
|
+
*/
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
47
|
+
@Suppress("unused")
|
|
48
|
+
@JvmStatic
|
|
49
|
+
private fun fromCpp(assetKind: String, serviceTradeID: String?, direction: FriendRequestAssetDirection, user: UserCounterparty, linkedAccountID: String, service: Service): FriendRequestAsset {
|
|
50
|
+
return FriendRequestAsset(assetKind, serviceTradeID, direction, user, linkedAccountID, service)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetDirection.kt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAssetDirection.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "FriendRequestAssetDirection".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class FriendRequestAssetDirection(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
RECEIVED(0),
|
|
20
|
+
SENT(1);
|
|
21
|
+
|
|
22
|
+
companion object
|
|
23
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAssetQuoteRequest.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "FriendRequestAssetQuoteRequest".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class FriendRequestAssetQuoteRequest(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val assetKind: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val action: FriendRequestAssetQuoteRequestAction
|
|
26
|
+
) {
|
|
27
|
+
/* primary constructor */
|
|
28
|
+
|
|
29
|
+
companion object {
|
|
30
|
+
/**
|
|
31
|
+
* Constructor called from C++
|
|
32
|
+
*/
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
@Suppress("unused")
|
|
36
|
+
@JvmStatic
|
|
37
|
+
private fun fromCpp(assetKind: String, action: FriendRequestAssetQuoteRequestAction): FriendRequestAssetQuoteRequest {
|
|
38
|
+
return FriendRequestAssetQuoteRequest(assetKind, action)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAssetQuoteRequestAction.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "FriendRequestAssetQuoteRequestAction".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class FriendRequestAssetQuoteRequestAction(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
ACCEPT(0),
|
|
20
|
+
REJECT(1),
|
|
21
|
+
SEND(2),
|
|
22
|
+
WITHDRAW(3);
|
|
23
|
+
|
|
24
|
+
companion object
|
|
25
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAssetRef.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "FriendRequestAssetRef".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class FriendRequestAssetRef(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val assetKind: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val serviceTradeID: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val linkedAccountID: String
|
|
29
|
+
) {
|
|
30
|
+
/* primary constructor */
|
|
31
|
+
|
|
32
|
+
companion object {
|
|
33
|
+
/**
|
|
34
|
+
* Constructor called from C++
|
|
35
|
+
*/
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
@Suppress("unused")
|
|
39
|
+
@JvmStatic
|
|
40
|
+
private fun fromCpp(assetKind: String, serviceTradeID: String?, linkedAccountID: String): FriendRequestAssetRef {
|
|
41
|
+
return FriendRequestAssetRef(assetKind, serviceTradeID, linkedAccountID)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Func_void_LinkedAccount.kt
CHANGED
|
@@ -14,7 +14,7 @@ import dalvik.annotation.optimization.FastNative
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Represents the JavaScript callback `(
|
|
17
|
+
* Represents the JavaScript callback `(linkedAccount: struct) => void`.
|
|
18
18
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
19
19
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
20
20
|
*/
|
|
@@ -28,11 +28,11 @@ fun interface Func_void_LinkedAccount: (LinkedAccount) -> Unit {
|
|
|
28
28
|
*/
|
|
29
29
|
@DoNotStrip
|
|
30
30
|
@Keep
|
|
31
|
-
override fun invoke(
|
|
31
|
+
override fun invoke(linkedAccount: LinkedAccount): Unit
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Represents the JavaScript callback `(
|
|
35
|
+
* Represents the JavaScript callback `(linkedAccount: struct) => void`.
|
|
36
36
|
* This is implemented in C++, via a `std::function<...>`.
|
|
37
37
|
* The callback might be coming from JS.
|
|
38
38
|
*/
|
|
@@ -56,15 +56,15 @@ class Func_void_LinkedAccount_cxx: Func_void_LinkedAccount {
|
|
|
56
56
|
|
|
57
57
|
@DoNotStrip
|
|
58
58
|
@Keep
|
|
59
|
-
override fun invoke(
|
|
60
|
-
= invoke_cxx(
|
|
59
|
+
override fun invoke(linkedAccount: LinkedAccount): Unit
|
|
60
|
+
= invoke_cxx(linkedAccount)
|
|
61
61
|
|
|
62
62
|
@FastNative
|
|
63
|
-
private external fun invoke_cxx(
|
|
63
|
+
private external fun invoke_cxx(linkedAccount: LinkedAccount): Unit
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Represents the JavaScript callback `(
|
|
67
|
+
* Represents the JavaScript callback `(linkedAccount: struct) => void`.
|
|
68
68
|
* This is implemented in Java/Kotlin, via a `(LinkedAccount) -> Unit`.
|
|
69
69
|
* The callback is always coming from native.
|
|
70
70
|
*/
|
|
@@ -74,7 +74,7 @@ class Func_void_LinkedAccount_cxx: Func_void_LinkedAccount {
|
|
|
74
74
|
class Func_void_LinkedAccount_java(private val function: (LinkedAccount) -> Unit): Func_void_LinkedAccount {
|
|
75
75
|
@DoNotStrip
|
|
76
76
|
@Keep
|
|
77
|
-
override fun invoke(
|
|
78
|
-
return this.function(
|
|
77
|
+
override fun invoke(linkedAccount: LinkedAccount): Unit {
|
|
78
|
+
return this.function(linkedAccount)
|
|
79
79
|
}
|
|
80
80
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationCallback.kt
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HostedAuthorizationCallback.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "HostedAuthorizationCallback".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class HostedAuthorizationCallback(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val authorizationCode: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val state: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val encryptedGrantPackage: String
|
|
29
|
+
) {
|
|
30
|
+
/* primary constructor */
|
|
31
|
+
|
|
32
|
+
companion object {
|
|
33
|
+
/**
|
|
34
|
+
* Constructor called from C++
|
|
35
|
+
*/
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
@Suppress("unused")
|
|
39
|
+
@JvmStatic
|
|
40
|
+
private fun fromCpp(authorizationCode: String, state: String?, encryptedGrantPackage: String): HostedAuthorizationCallback {
|
|
41
|
+
return HostedAuthorizationCallback(authorizationCode, state, encryptedGrantPackage)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationRequest.kt
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HostedAuthorizationRequest.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "HostedAuthorizationRequest".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class HostedAuthorizationRequest(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val url: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val state: String,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val codeVerifier: String,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val grantPackagePublicKey: String
|
|
32
|
+
) {
|
|
33
|
+
/* primary constructor */
|
|
34
|
+
|
|
35
|
+
companion object {
|
|
36
|
+
/**
|
|
37
|
+
* Constructor called from C++
|
|
38
|
+
*/
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
41
|
+
@Suppress("unused")
|
|
42
|
+
@JvmStatic
|
|
43
|
+
private fun fromCpp(url: String, state: String, codeVerifier: String, grantPackagePublicKey: String): HostedAuthorizationRequest {
|
|
44
|
+
return HostedAuthorizationRequest(url, state, codeVerifier, grantPackagePublicKey)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -29,12 +29,12 @@ abstract class HybridRNCandleSpec: HybridObject() {
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
// Methods
|
|
32
|
-
abstract fun candleLinkSheet(isPresented: Boolean, services: Array<
|
|
32
|
+
abstract fun candleLinkSheet(isPresented: Boolean, services: Array<ServiceID>?, showSandbox: Boolean, cornerRadius: Double, customerName: String?, showDynamicLoading: Boolean, presentationBackground: PresentationBackground, presentationStyle: PresentationStyle, onSuccess: (linkedAccount: LinkedAccount) -> Unit): Unit
|
|
33
33
|
|
|
34
34
|
@DoNotStrip
|
|
35
35
|
@Keep
|
|
36
|
-
private fun candleLinkSheet_cxx(isPresented: Boolean, services: Array<
|
|
37
|
-
val __result = candleLinkSheet(isPresented, services, cornerRadius, customerName, showDynamicLoading, presentationBackground, presentationStyle, onSuccess)
|
|
36
|
+
private fun candleLinkSheet_cxx(isPresented: Boolean, services: Array<ServiceID>?, showSandbox: Boolean, cornerRadius: Double, customerName: String?, showDynamicLoading: Boolean, presentationBackground: PresentationBackground, presentationStyle: PresentationStyle, onSuccess: Func_void_LinkedAccount): Unit {
|
|
37
|
+
val __result = candleLinkSheet(isPresented, services, showSandbox, cornerRadius, customerName, showDynamicLoading, presentationBackground, presentationStyle, onSuccess)
|
|
38
38
|
return __result
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -49,7 +49,7 @@ abstract class HybridRNCandleSpec: HybridObject() {
|
|
|
49
49
|
|
|
50
50
|
@DoNotStrip
|
|
51
51
|
@Keep
|
|
52
|
-
abstract fun initialize(
|
|
52
|
+
abstract fun initialize(clientID: String, accessGroup: String?): Unit
|
|
53
53
|
|
|
54
54
|
@DoNotStrip
|
|
55
55
|
@Keep
|
|
@@ -93,11 +93,23 @@ abstract class HybridRNCandleSpec: HybridObject() {
|
|
|
93
93
|
|
|
94
94
|
@DoNotStrip
|
|
95
95
|
@Keep
|
|
96
|
-
abstract fun
|
|
96
|
+
abstract fun hostedAuthorizationUrl(redirectUri: String, state: String, codeChallenge: String, grantPackagePublicKey: String): String
|
|
97
97
|
|
|
98
98
|
@DoNotStrip
|
|
99
99
|
@Keep
|
|
100
|
-
abstract fun
|
|
100
|
+
abstract fun makeHostedAuthorizationRequest(redirectUri: String, state: String?): HostedAuthorizationRequest
|
|
101
|
+
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
@Keep
|
|
104
|
+
abstract fun parseHostedAuthorizationCallback(callbackUrl: String): HostedAuthorizationCallback
|
|
105
|
+
|
|
106
|
+
@DoNotStrip
|
|
107
|
+
@Keep
|
|
108
|
+
abstract fun completeHostedAuthorization(callbackUrl: String): Promise<Unit>
|
|
109
|
+
|
|
110
|
+
@DoNotStrip
|
|
111
|
+
@Keep
|
|
112
|
+
abstract fun signOut(): Promise<Unit>
|
|
101
113
|
|
|
102
114
|
// Default implementation of `HybridObject.toString()`
|
|
103
115
|
override fun toString(): String {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// MessageThreadAsset.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "MessageThreadAsset".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class MessageThreadAsset(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val assetKind: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val serviceTradeID: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val messages: Array<MessageThreadMessage>,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val linkedAccountID: String,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val service: Service
|
|
35
|
+
) {
|
|
36
|
+
/* primary constructor */
|
|
37
|
+
|
|
38
|
+
companion object {
|
|
39
|
+
/**
|
|
40
|
+
* Constructor called from C++
|
|
41
|
+
*/
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
@Suppress("unused")
|
|
45
|
+
@JvmStatic
|
|
46
|
+
private fun fromCpp(assetKind: String, serviceTradeID: String?, messages: Array<MessageThreadMessage>, linkedAccountID: String, service: Service): MessageThreadAsset {
|
|
47
|
+
return MessageThreadAsset(assetKind, serviceTradeID, messages, linkedAccountID, service)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// MessageThreadAssetQuoteRequest.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.rncandle
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents the JavaScript object/struct "MessageThreadAssetQuoteRequest".
|
|
16
|
+
*/
|
|
17
|
+
@DoNotStrip
|
|
18
|
+
@Keep
|
|
19
|
+
data class MessageThreadAssetQuoteRequest(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val assetKind: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val text: String
|
|
26
|
+
) {
|
|
27
|
+
/* primary constructor */
|
|
28
|
+
|
|
29
|
+
companion object {
|
|
30
|
+
/**
|
|
31
|
+
* Constructor called from C++
|
|
32
|
+
*/
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
@Suppress("unused")
|
|
36
|
+
@JvmStatic
|
|
37
|
+
private fun fromCpp(assetKind: String, text: String): MessageThreadAssetQuoteRequest {
|
|
38
|
+
return MessageThreadAssetQuoteRequest(assetKind, text)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|