@iternio/react-native-auto-play 0.4.9 → 0.4.12
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/nitrogen/generated/android/c++/JActiveCarUxRestrictions.hpp +8 -8
- package/nitrogen/generated/android/c++/JGridTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JHybridAndroidAutoTelemetrySpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridClusterSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridGridTemplateSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridListTemplateSpec.cpp +4 -4
- package/nitrogen/generated/android/c++/JHybridMapTemplateSpec.cpp +15 -15
- package/nitrogen/generated/android/c++/JInformationTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JLaneGuidance.hpp +16 -16
- package/nitrogen/generated/android/c++/JListTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JMapTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JMessageTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroAttributedString.hpp +8 -8
- package/nitrogen/generated/android/c++/JNitroBaseMapTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroManeuver.cpp +4 -4
- package/nitrogen/generated/android/c++/JNitroManeuver.hpp +4 -4
- package/nitrogen/generated/android/c++/JNitroRoutingManeuver.hpp +16 -16
- package/nitrogen/generated/android/c++/JNitroSection.hpp +8 -8
- package/nitrogen/generated/android/c++/JPermissionRequestResult.hpp +16 -16
- package/nitrogen/generated/android/c++/JRouteChoice.hpp +32 -32
- package/nitrogen/generated/android/c++/JSearchTemplateConfig.hpp +8 -8
- package/nitrogen/generated/android/c++/JSignInTemplateConfig.hpp +16 -16
- package/nitrogen/generated/android/c++/JTripsConfig.hpp +8 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ActiveCarUxRestrictions.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AppFocusState.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AssetImage.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/AutoText.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/BooleanTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Distance.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/DurationWithTimeZone.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GlyphImage.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GoogleSignIn.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GoogleSignInAccount.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GridTemplateConfig.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ImageLane.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/InformationTemplateConfig.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/InputSignIn.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/LaneGuidance.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/ListTemplateConfig.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Location.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/MapTemplateConfig.kt +51 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/MessageTemplateConfig.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NavigationAlertAction.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAction.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAttributedString.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAttributedStringImage.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroBaseMapTemplateConfig.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroColor.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroGridButton.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroImage.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroLoadingManeuver.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroManeuver.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroMapButton.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroMessageManeuver.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroNavigationAlert.kt +31 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRoutingManeuver.kt +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRow.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroSection.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NumericTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PermissionRequestResult.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PinSignIn.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Point.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/PreferredImageLane.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/QrSignIn.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/RemoteImage.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/RouteChoice.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SafeAreaInsets.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SearchTemplateConfig.kt +39 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/SignInTemplateConfig.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/StringTelemetryItem.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Telemetry.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TravelEstimates.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripConfig.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripPoint.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripPreviewTextConfiguration.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripSelectorCallback.kt +13 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/TripsConfig.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_GlyphImage_AssetImage_RemoteImage.kt +18 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_PreferredImageLane_ImageLane.kt +16 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Variant_QrSignIn_PinSignIn_InputSignIn_GoogleSignIn.kt +20 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VehicleTelemetryItem.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputChunk.kt +15 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputResult.kt +15 -0
- package/nitrogen/generated/ios/ReactNativeAutoPlay+autolinking.rb +2 -0
- package/nitrogen/generated/ios/swift/NitroImage.swift +13 -0
- package/nitrogen/generated/ios/swift/NitroManeuver.swift +13 -0
- package/nitrogen/generated/ios/swift/Variant_GlyphImage_AssetImage_RemoteImage.swift +13 -0
- package/nitrogen/generated/ios/swift/Variant_PreferredImageLane_ImageLane.swift +12 -0
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -57,6 +58,38 @@ data class ListTemplateConfig(
|
|
|
57
58
|
constructor(id: String, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?, headerActions: Array<NitroAction>?, title: AutoText, sections: Array<NitroSection>?, mapConfig: NitroBaseMapTemplateConfig?):
|
|
58
59
|
this(id, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs, headerActions, title, sections, mapConfig)
|
|
59
60
|
|
|
61
|
+
override fun equals(other: Any?): Boolean {
|
|
62
|
+
if (this === other) return true
|
|
63
|
+
if (other !is ListTemplateConfig) return false
|
|
64
|
+
return Objects.deepEquals(this.id, other.id)
|
|
65
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
66
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
67
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
68
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
69
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
70
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
71
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
72
|
+
&& Objects.deepEquals(this.title, other.title)
|
|
73
|
+
&& Objects.deepEquals(this.sections, other.sections)
|
|
74
|
+
&& Objects.deepEquals(this.mapConfig, other.mapConfig)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
override fun hashCode(): Int {
|
|
78
|
+
return arrayOf<Any?>(
|
|
79
|
+
id,
|
|
80
|
+
onWillAppear,
|
|
81
|
+
onWillDisappear,
|
|
82
|
+
onDidAppear,
|
|
83
|
+
onDidDisappear,
|
|
84
|
+
onPopped,
|
|
85
|
+
autoDismissMs,
|
|
86
|
+
headerActions,
|
|
87
|
+
title,
|
|
88
|
+
sections,
|
|
89
|
+
mapConfig
|
|
90
|
+
).contentDeepHashCode()
|
|
91
|
+
}
|
|
92
|
+
|
|
60
93
|
companion object {
|
|
61
94
|
/**
|
|
62
95
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class Location(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is Location) return false
|
|
33
|
+
return Objects.deepEquals(this.lat, other.lat)
|
|
34
|
+
&& Objects.deepEquals(this.lon, other.lon)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
lat,
|
|
40
|
+
lon
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -84,6 +85,56 @@ data class MapTemplateConfig(
|
|
|
84
85
|
constructor(id: String, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?, visibleTravelEstimate: VisibleTravelEstimate?, onDidPan: ((translation: Point, velocity: Point?) -> Unit)?, onDidUpdateZoomGestureWithCenter: ((center: Point, scale: Double) -> Unit)?, onClick: ((center: Point) -> Unit)?, onDoubleClick: ((center: Point) -> Unit)?, onAppearanceDidChange: ((colorScheme: ColorScheme) -> Unit)?, onStopNavigation: () -> Unit, onAutoDriveEnabled: (() -> Unit)?, mapButtons: Array<NitroMapButton>?, headerActions: Array<NitroAction>?, defaultGuidanceBackgroundColor: NitroColor?, panButtonScrollPercentage: Double?, onDidChangePanningInterface: ((isPanningInterfaceVisible: Boolean) -> Unit)?):
|
|
85
86
|
this(id, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs, visibleTravelEstimate, onDidPan?.let { Func_void_Point_std__optional_Point__java(it) }, onDidUpdateZoomGestureWithCenter?.let { Func_void_Point_double_java(it) }, onClick?.let { Func_void_Point_java(it) }, onDoubleClick?.let { Func_void_Point_java(it) }, onAppearanceDidChange?.let { Func_void_ColorScheme_java(it) }, Func_void_java(onStopNavigation), onAutoDriveEnabled?.let { Func_void_java(it) }, mapButtons, headerActions, defaultGuidanceBackgroundColor, panButtonScrollPercentage, onDidChangePanningInterface?.let { Func_void_bool_java(it) })
|
|
86
87
|
|
|
88
|
+
override fun equals(other: Any?): Boolean {
|
|
89
|
+
if (this === other) return true
|
|
90
|
+
if (other !is MapTemplateConfig) return false
|
|
91
|
+
return Objects.deepEquals(this.id, other.id)
|
|
92
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
93
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
94
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
95
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
96
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
97
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
98
|
+
&& Objects.deepEquals(this.visibleTravelEstimate, other.visibleTravelEstimate)
|
|
99
|
+
&& Objects.deepEquals(this.onDidPan, other.onDidPan)
|
|
100
|
+
&& Objects.deepEquals(this.onDidUpdateZoomGestureWithCenter, other.onDidUpdateZoomGestureWithCenter)
|
|
101
|
+
&& Objects.deepEquals(this.onClick, other.onClick)
|
|
102
|
+
&& Objects.deepEquals(this.onDoubleClick, other.onDoubleClick)
|
|
103
|
+
&& Objects.deepEquals(this.onAppearanceDidChange, other.onAppearanceDidChange)
|
|
104
|
+
&& Objects.deepEquals(this.onStopNavigation, other.onStopNavigation)
|
|
105
|
+
&& Objects.deepEquals(this.onAutoDriveEnabled, other.onAutoDriveEnabled)
|
|
106
|
+
&& Objects.deepEquals(this.mapButtons, other.mapButtons)
|
|
107
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
108
|
+
&& Objects.deepEquals(this.defaultGuidanceBackgroundColor, other.defaultGuidanceBackgroundColor)
|
|
109
|
+
&& Objects.deepEquals(this.panButtonScrollPercentage, other.panButtonScrollPercentage)
|
|
110
|
+
&& Objects.deepEquals(this.onDidChangePanningInterface, other.onDidChangePanningInterface)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
override fun hashCode(): Int {
|
|
114
|
+
return arrayOf<Any?>(
|
|
115
|
+
id,
|
|
116
|
+
onWillAppear,
|
|
117
|
+
onWillDisappear,
|
|
118
|
+
onDidAppear,
|
|
119
|
+
onDidDisappear,
|
|
120
|
+
onPopped,
|
|
121
|
+
autoDismissMs,
|
|
122
|
+
visibleTravelEstimate,
|
|
123
|
+
onDidPan,
|
|
124
|
+
onDidUpdateZoomGestureWithCenter,
|
|
125
|
+
onClick,
|
|
126
|
+
onDoubleClick,
|
|
127
|
+
onAppearanceDidChange,
|
|
128
|
+
onStopNavigation,
|
|
129
|
+
onAutoDriveEnabled,
|
|
130
|
+
mapButtons,
|
|
131
|
+
headerActions,
|
|
132
|
+
defaultGuidanceBackgroundColor,
|
|
133
|
+
panButtonScrollPercentage,
|
|
134
|
+
onDidChangePanningInterface
|
|
135
|
+
).contentDeepHashCode()
|
|
136
|
+
}
|
|
137
|
+
|
|
87
138
|
companion object {
|
|
88
139
|
/**
|
|
89
140
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -63,6 +64,42 @@ data class MessageTemplateConfig(
|
|
|
63
64
|
constructor(id: String, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?, headerActions: Array<NitroAction>?, title: AutoText?, message: AutoText, actions: Array<NitroAction>?, image: Variant_GlyphImage_AssetImage_RemoteImage?, mapConfig: NitroBaseMapTemplateConfig?):
|
|
64
65
|
this(id, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs, headerActions, title, message, actions, image, mapConfig)
|
|
65
66
|
|
|
67
|
+
override fun equals(other: Any?): Boolean {
|
|
68
|
+
if (this === other) return true
|
|
69
|
+
if (other !is MessageTemplateConfig) return false
|
|
70
|
+
return Objects.deepEquals(this.id, other.id)
|
|
71
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
72
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
73
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
74
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
75
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
76
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
77
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
78
|
+
&& Objects.deepEquals(this.title, other.title)
|
|
79
|
+
&& Objects.deepEquals(this.message, other.message)
|
|
80
|
+
&& Objects.deepEquals(this.actions, other.actions)
|
|
81
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
82
|
+
&& Objects.deepEquals(this.mapConfig, other.mapConfig)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
override fun hashCode(): Int {
|
|
86
|
+
return arrayOf<Any?>(
|
|
87
|
+
id,
|
|
88
|
+
onWillAppear,
|
|
89
|
+
onWillDisappear,
|
|
90
|
+
onDidAppear,
|
|
91
|
+
onDidDisappear,
|
|
92
|
+
onPopped,
|
|
93
|
+
autoDismissMs,
|
|
94
|
+
headerActions,
|
|
95
|
+
title,
|
|
96
|
+
message,
|
|
97
|
+
actions,
|
|
98
|
+
image,
|
|
99
|
+
mapConfig
|
|
100
|
+
).contentDeepHashCode()
|
|
101
|
+
}
|
|
102
|
+
|
|
66
103
|
companion object {
|
|
67
104
|
/**
|
|
68
105
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NavigationAlertAction(
|
|
|
33
34
|
constructor(title: String, style: AlertActionStyle?, onPress: () -> Unit):
|
|
34
35
|
this(title, style, Func_void_java(onPress))
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NavigationAlertAction) return false
|
|
40
|
+
return Objects.deepEquals(this.title, other.title)
|
|
41
|
+
&& Objects.deepEquals(this.style, other.style)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
style,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -48,6 +49,32 @@ data class NitroAction(
|
|
|
48
49
|
constructor(title: String?, image: Variant_GlyphImage_AssetImage_RemoteImage?, enabled: Boolean?, onPress: () -> Unit, type: NitroActionType, alignment: NitroAlignment?, flags: Double?, style: NitroButtonStyle?):
|
|
49
50
|
this(title, image, enabled, Func_void_java(onPress), type, alignment, flags, style)
|
|
50
51
|
|
|
52
|
+
override fun equals(other: Any?): Boolean {
|
|
53
|
+
if (this === other) return true
|
|
54
|
+
if (other !is NitroAction) return false
|
|
55
|
+
return Objects.deepEquals(this.title, other.title)
|
|
56
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
57
|
+
&& Objects.deepEquals(this.enabled, other.enabled)
|
|
58
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
59
|
+
&& Objects.deepEquals(this.type, other.type)
|
|
60
|
+
&& Objects.deepEquals(this.alignment, other.alignment)
|
|
61
|
+
&& Objects.deepEquals(this.flags, other.flags)
|
|
62
|
+
&& Objects.deepEquals(this.style, other.style)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
override fun hashCode(): Int {
|
|
66
|
+
return arrayOf<Any?>(
|
|
67
|
+
title,
|
|
68
|
+
image,
|
|
69
|
+
enabled,
|
|
70
|
+
onPress,
|
|
71
|
+
type,
|
|
72
|
+
alignment,
|
|
73
|
+
flags,
|
|
74
|
+
style
|
|
75
|
+
).contentDeepHashCode()
|
|
76
|
+
}
|
|
77
|
+
|
|
51
78
|
companion object {
|
|
52
79
|
/**
|
|
53
80
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroAttributedString(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroAttributedString) return false
|
|
33
|
+
return Objects.deepEquals(this.text, other.text)
|
|
34
|
+
&& Objects.deepEquals(this.images, other.images)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
text,
|
|
40
|
+
images
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroAttributedStringImage(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroAttributedStringImage) return false
|
|
33
|
+
return Objects.deepEquals(this.image, other.image)
|
|
34
|
+
&& Objects.deepEquals(this.position, other.position)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
image,
|
|
40
|
+
position
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -51,6 +52,34 @@ data class NitroBaseMapTemplateConfig(
|
|
|
51
52
|
constructor(mapButtons: Array<NitroMapButton>?, headerActions: Array<NitroAction>?, onDidChangePanningInterface: ((isPanningInterfaceVisible: Boolean) -> Unit)?, onWillAppear: ((animated: Boolean?) -> Unit)?, onWillDisappear: ((animated: Boolean?) -> Unit)?, onDidAppear: ((animated: Boolean?) -> Unit)?, onDidDisappear: ((animated: Boolean?) -> Unit)?, onPopped: (() -> Unit)?, autoDismissMs: Double?):
|
|
52
53
|
this(mapButtons, headerActions, onDidChangePanningInterface?.let { Func_void_bool_java(it) }, onWillAppear?.let { Func_void_std__optional_bool__java(it) }, onWillDisappear?.let { Func_void_std__optional_bool__java(it) }, onDidAppear?.let { Func_void_std__optional_bool__java(it) }, onDidDisappear?.let { Func_void_std__optional_bool__java(it) }, onPopped?.let { Func_void_java(it) }, autoDismissMs)
|
|
53
54
|
|
|
55
|
+
override fun equals(other: Any?): Boolean {
|
|
56
|
+
if (this === other) return true
|
|
57
|
+
if (other !is NitroBaseMapTemplateConfig) return false
|
|
58
|
+
return Objects.deepEquals(this.mapButtons, other.mapButtons)
|
|
59
|
+
&& Objects.deepEquals(this.headerActions, other.headerActions)
|
|
60
|
+
&& Objects.deepEquals(this.onDidChangePanningInterface, other.onDidChangePanningInterface)
|
|
61
|
+
&& Objects.deepEquals(this.onWillAppear, other.onWillAppear)
|
|
62
|
+
&& Objects.deepEquals(this.onWillDisappear, other.onWillDisappear)
|
|
63
|
+
&& Objects.deepEquals(this.onDidAppear, other.onDidAppear)
|
|
64
|
+
&& Objects.deepEquals(this.onDidDisappear, other.onDidDisappear)
|
|
65
|
+
&& Objects.deepEquals(this.onPopped, other.onPopped)
|
|
66
|
+
&& Objects.deepEquals(this.autoDismissMs, other.autoDismissMs)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
override fun hashCode(): Int {
|
|
70
|
+
return arrayOf<Any?>(
|
|
71
|
+
mapButtons,
|
|
72
|
+
headerActions,
|
|
73
|
+
onDidChangePanningInterface,
|
|
74
|
+
onWillAppear,
|
|
75
|
+
onWillDisappear,
|
|
76
|
+
onDidAppear,
|
|
77
|
+
onDidDisappear,
|
|
78
|
+
onPopped,
|
|
79
|
+
autoDismissMs
|
|
80
|
+
).contentDeepHashCode()
|
|
81
|
+
}
|
|
82
|
+
|
|
54
83
|
companion object {
|
|
55
84
|
/**
|
|
56
85
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class NitroColor(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroColor) return false
|
|
33
|
+
return Objects.deepEquals(this.lightColor, other.lightColor)
|
|
34
|
+
&& Objects.deepEquals(this.darkColor, other.darkColor)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
lightColor,
|
|
40
|
+
darkColor
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NitroGridButton(
|
|
|
33
34
|
constructor(title: AutoText, image: NitroImage, onPress: () -> Unit):
|
|
34
35
|
this(title, image, Func_void_java(onPress))
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NitroGridButton) return false
|
|
40
|
+
return Objects.deepEquals(this.title, other.title)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
image,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -23,6 +23,24 @@ sealed class NitroImage {
|
|
|
23
23
|
@DoNotStrip
|
|
24
24
|
data class Third(@DoNotStrip val value: RemoteImage): NitroImage()
|
|
25
25
|
|
|
26
|
+
inline fun <reified T> asType(): T? {
|
|
27
|
+
return when (this) {
|
|
28
|
+
is First -> (value) as? T
|
|
29
|
+
is Second -> (value) as? T
|
|
30
|
+
is Third -> (value) as? T
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
inline fun <reified T> isType(): Boolean {
|
|
34
|
+
return asType<T>() != null
|
|
35
|
+
}
|
|
36
|
+
inline fun <R> match(first: (GlyphImage) -> R, second: (AssetImage) -> R, third: (RemoteImage) -> R): R {
|
|
37
|
+
return when (this) {
|
|
38
|
+
is First -> first(value)
|
|
39
|
+
is Second -> second(value)
|
|
40
|
+
is Third -> third(value)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
26
44
|
val isFirst: Boolean
|
|
27
45
|
get() = this is First
|
|
28
46
|
val isSecond: Boolean
|
|
@@ -43,14 +61,6 @@ sealed class NitroImage {
|
|
|
43
61
|
return value
|
|
44
62
|
}
|
|
45
63
|
|
|
46
|
-
inline fun <R> match(first: (GlyphImage) -> R, second: (AssetImage) -> R, third: (RemoteImage) -> R): R {
|
|
47
|
-
return when (this) {
|
|
48
|
-
is First -> first(value)
|
|
49
|
-
is Second -> second(value)
|
|
50
|
-
is Third -> third(value)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
64
|
companion object {
|
|
55
65
|
@JvmStatic
|
|
56
66
|
@DoNotStrip
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -29,6 +30,22 @@ data class NitroLoadingManeuver(
|
|
|
29
30
|
) {
|
|
30
31
|
/* primary constructor */
|
|
31
32
|
|
|
33
|
+
override fun equals(other: Any?): Boolean {
|
|
34
|
+
if (this === other) return true
|
|
35
|
+
if (other !is NitroLoadingManeuver) return false
|
|
36
|
+
return Objects.deepEquals(this.isLoading, other.isLoading)
|
|
37
|
+
&& Objects.deepEquals(this.cardBackgroundColor, other.cardBackgroundColor)
|
|
38
|
+
&& Objects.deepEquals(this.text, other.text)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
override fun hashCode(): Int {
|
|
42
|
+
return arrayOf<Any?>(
|
|
43
|
+
isLoading,
|
|
44
|
+
cardBackgroundColor,
|
|
45
|
+
text
|
|
46
|
+
).contentDeepHashCode()
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
companion object {
|
|
33
50
|
/**
|
|
34
51
|
* Constructor called from C++
|
|
@@ -23,6 +23,24 @@ sealed class NitroManeuver {
|
|
|
23
23
|
@DoNotStrip
|
|
24
24
|
data class Third(@DoNotStrip val value: NitroLoadingManeuver): NitroManeuver()
|
|
25
25
|
|
|
26
|
+
inline fun <reified T> asType(): T? {
|
|
27
|
+
return when (this) {
|
|
28
|
+
is First -> (value) as? T
|
|
29
|
+
is Second -> (value) as? T
|
|
30
|
+
is Third -> (value) as? T
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
inline fun <reified T> isType(): Boolean {
|
|
34
|
+
return asType<T>() != null
|
|
35
|
+
}
|
|
36
|
+
inline fun <R> match(first: (Array<NitroRoutingManeuver>) -> R, second: (NitroMessageManeuver) -> R, third: (NitroLoadingManeuver) -> R): R {
|
|
37
|
+
return when (this) {
|
|
38
|
+
is First -> first(value)
|
|
39
|
+
is Second -> second(value)
|
|
40
|
+
is Third -> third(value)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
26
44
|
val isFirst: Boolean
|
|
27
45
|
get() = this is First
|
|
28
46
|
val isSecond: Boolean
|
|
@@ -43,14 +61,6 @@ sealed class NitroManeuver {
|
|
|
43
61
|
return value
|
|
44
62
|
}
|
|
45
63
|
|
|
46
|
-
inline fun <R> match(first: (Array<NitroRoutingManeuver>) -> R, second: (NitroMessageManeuver) -> R, third: (NitroLoadingManeuver) -> R): R {
|
|
47
|
-
return when (this) {
|
|
48
|
-
is First -> first(value)
|
|
49
|
-
is Second -> second(value)
|
|
50
|
-
is Third -> third(value)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
64
|
companion object {
|
|
55
65
|
@JvmStatic
|
|
56
66
|
@DoNotStrip
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -33,6 +34,22 @@ data class NitroMapButton(
|
|
|
33
34
|
constructor(type: NitroMapButtonType, image: NitroImage, onPress: (() -> Unit)?):
|
|
34
35
|
this(type, image, onPress?.let { Func_void_java(it) })
|
|
35
36
|
|
|
37
|
+
override fun equals(other: Any?): Boolean {
|
|
38
|
+
if (this === other) return true
|
|
39
|
+
if (other !is NitroMapButton) return false
|
|
40
|
+
return Objects.deepEquals(this.type, other.type)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.onPress, other.onPress)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
type,
|
|
48
|
+
image,
|
|
49
|
+
onPress
|
|
50
|
+
).contentDeepHashCode()
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
companion object {
|
|
37
54
|
/**
|
|
38
55
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -32,6 +33,24 @@ data class NitroMessageManeuver(
|
|
|
32
33
|
) {
|
|
33
34
|
/* primary constructor */
|
|
34
35
|
|
|
36
|
+
override fun equals(other: Any?): Boolean {
|
|
37
|
+
if (this === other) return true
|
|
38
|
+
if (other !is NitroMessageManeuver) return false
|
|
39
|
+
return Objects.deepEquals(this.title, other.title)
|
|
40
|
+
&& Objects.deepEquals(this.text, other.text)
|
|
41
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
42
|
+
&& Objects.deepEquals(this.cardBackgroundColor, other.cardBackgroundColor)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override fun hashCode(): Int {
|
|
46
|
+
return arrayOf<Any?>(
|
|
47
|
+
title,
|
|
48
|
+
text,
|
|
49
|
+
image,
|
|
50
|
+
cardBackgroundColor
|
|
51
|
+
).contentDeepHashCode()
|
|
52
|
+
}
|
|
53
|
+
|
|
35
54
|
companion object {
|
|
36
55
|
/**
|
|
37
56
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.swe.iternio.reactnativeautoplay
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -54,6 +55,36 @@ data class NitroNavigationAlert(
|
|
|
54
55
|
constructor(id: Double, title: AutoText, subtitle: AutoText?, image: Variant_GlyphImage_AssetImage_RemoteImage?, primaryAction: NavigationAlertAction, secondaryAction: NavigationAlertAction?, durationMs: Double, onWillShow: (() -> Unit)?, onDidDismiss: ((reason: AlertDismissalReason) -> Unit)?, priority: Double):
|
|
55
56
|
this(id, title, subtitle, image, primaryAction, secondaryAction, durationMs, onWillShow?.let { Func_void_java(it) }, onDidDismiss?.let { Func_void_AlertDismissalReason_java(it) }, priority)
|
|
56
57
|
|
|
58
|
+
override fun equals(other: Any?): Boolean {
|
|
59
|
+
if (this === other) return true
|
|
60
|
+
if (other !is NitroNavigationAlert) return false
|
|
61
|
+
return Objects.deepEquals(this.id, other.id)
|
|
62
|
+
&& Objects.deepEquals(this.title, other.title)
|
|
63
|
+
&& Objects.deepEquals(this.subtitle, other.subtitle)
|
|
64
|
+
&& Objects.deepEquals(this.image, other.image)
|
|
65
|
+
&& Objects.deepEquals(this.primaryAction, other.primaryAction)
|
|
66
|
+
&& Objects.deepEquals(this.secondaryAction, other.secondaryAction)
|
|
67
|
+
&& Objects.deepEquals(this.durationMs, other.durationMs)
|
|
68
|
+
&& Objects.deepEquals(this.onWillShow, other.onWillShow)
|
|
69
|
+
&& Objects.deepEquals(this.onDidDismiss, other.onDidDismiss)
|
|
70
|
+
&& Objects.deepEquals(this.priority, other.priority)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
override fun hashCode(): Int {
|
|
74
|
+
return arrayOf<Any?>(
|
|
75
|
+
id,
|
|
76
|
+
title,
|
|
77
|
+
subtitle,
|
|
78
|
+
image,
|
|
79
|
+
primaryAction,
|
|
80
|
+
secondaryAction,
|
|
81
|
+
durationMs,
|
|
82
|
+
onWillShow,
|
|
83
|
+
onDidDismiss,
|
|
84
|
+
priority
|
|
85
|
+
).contentDeepHashCode()
|
|
86
|
+
}
|
|
87
|
+
|
|
57
88
|
companion object {
|
|
58
89
|
/**
|
|
59
90
|
* Constructor called from C++
|