vnwalletui
Module Contents
alltypes
Module Contents
object
AppTarget
Module Contents
@Retention
(
RetentionPolicy.SOURCE
)
annotation
class
Target
Module Contents
Target
(
)
const
val
TARGET_HORNETS
:
Int
const
val
TARGET_LYNX
:
Int
const
val
TARGET_MAGIC
:
Int
const
val
TARGET_TIMBERWOLVES
:
Int
const
val
TARGET_UNKNOWN
:
Int
const
val
TARGET_UTAHJAZZ
:
Int
sealed
class
BalanceHistoryItem
Module Contents
data
class
CancellableBalanceHistoryItem
:
BalanceHistoryItem
Module Contents
CancellableBalanceHistoryItem
(
displayTitle
:
String
,
date
:
String
,
amount
:
String
,
transfer_uuid
:
String
,
emailOfRecipient
:
String
,
dialogAmount
:
String
,
isCanceling
:
Boolean
)
val
amount
:
String
val
date
:
String
val
dialogAmount
:
String
val
displayTitle
:
String
val
emailOfRecipient
:
String
val
isCanceling
:
Boolean
val
transfer_uuid
:
String
data
class
FinalBalanceHistoryItem
:
BalanceHistoryItem
Module Contents
FinalBalanceHistoryItem
(
displayTitle
:
String
,
date
:
String
,
amount
:
String
)
val
amount
:
String
val
date
:
String
val
displayTitle
:
String
data
class
BenefitsAndAwardsListItem
Module Contents
BenefitsAndAwardsListItem
(
name
:
String
,
description
:
String
?
,
imageUrl
:
String
?
,
amount
:
Int
,
awardThreshold
:
Int
=
INVALID_AWARD_THRESHOLD
,
amountForNextAward
:
Int
=
INVALID_AMOUNT_FOR_NEXT_AWARD
,
action
:
(
)
->
Unit
)
val
action
:
(
)
->
Unit
val
amount
:
Int
val
amountForNextAward
:
Int
val
awardThreshold
:
Int
val
description
:
String
?
val
imageUrl
:
String
?
val
isCashBackRule
:
Boolean
val
name
:
String
interface
Callback
<
T
>
Module Contents
abstract
fun
onComplete
(
result
:
T
)
:
Unit
abstract
fun
onException
(
e
:
Exception
?
)
:
Unit
com.venuenext.vnwallet.model.PaymentOption
Module Contents
fun
PaymentOption
.
toPaymentType
(
)
:
PaymentType
interface
Coordinator
Module Contents
abstract
fun
start
(
context
:
Context
)
:
Unit
data
class
CreditCard
Module Contents
CreditCard
(
cardType
:
String
,
lastFour
:
String
)
val
cardType
:
String
var
isOnFile
:
Boolean
val
lastFour
:
String
data
class
DashboardActionListItem
Module Contents
DashboardActionListItem
(
title
:
String
,
description
:
String
,
actionText
:
String
=
""
,
showsButton
:
Boolean
=
false
,
action
:
(
)
->
Unit
)
val
action
:
(
)
->
Unit
val
actionText
:
String
val
description
:
String
val
showsButton
:
Boolean
val
title
:
String
sealed
class
Events
Module Contents
object
InvalidQRCode
:
Events
object
NoEvent
:
Events
data
class
ValidQRCode
:
Events
Module Contents
ValidQRCode
(
payload
:
String
,
total
:
String
,
orderNumber
:
String
)
val
orderNumber
:
String
val
payload
:
String
val
total
:
String
enum
class
FileName
Module Contents
BAD_JSON
val
fileName
:
String
HORNETS
JAZZ
LYNX
MAGIC
MISSING_FILE
MOCK_TOGGLE_RESPONSE
TEST
TIMBERWOLVES
typealias
OnCancelClicked
=
(
CancellableBalanceHistoryItem
)
->
Unit
class
QRCodeAnalyzer
:
Analyzer
Module Contents
QRCodeAnalyzer
(
coroutineScope
:
CoroutineScope
,
rawValueCallBack
:
(
String
)
->
Unit
)
fun
analyze
(
image
:
ImageProxy
,
rotationDegrees
:
Int
)
:
Unit
enum
class
QrConfig
Module Contents
NONE
QR_SCANNER
VC_AND_SCANNER
VC_ONLY
class
QRViewModel
:
AndroidViewModel
,
PaymentHandler
Module Contents
QRViewModel
(
application
:
Application
)
fun
acceptQrCode
(
qrCode
:
String
)
:
Unit
lateinit
var
awardRules
:
List
<
AwardsRule
>
fun
eventHandled
(
)
:
Unit
val
eventLiveData
:
LiveData
<
Events
>
suspend
fun
getPaymentMethod
(
forceRefresh
:
Boolean
)
:
PaymentMethod
?
fun
getPaymentMethodLiveData
(
)
:
LiveData
<
PaymentMethod
>
fun
getPaymentType
(
isVirtualCurrencyEnabled
:
Boolean
,
hasCreditCard
:
Boolean
,
isVirtualCurrencyToggleVisible
:
Boolean
)
:
PaymentType
?
fun
getQrImage
(
paymentType
:
PaymentType
)
:
Bitmap
?
lateinit
var
paymentOptions
:
List
<
PaymentOption
>
fun
registerViewLifecycleOwner
(
owner
:
LifecycleOwner
)
:
Unit
suspend
fun
removePaymentMethod
(
)
:
Unit
suspend
fun
savePaymentMethod
(
payment
:
PaymentResult
)
:
Unit
fun
setInitialQrViewState
(
forceRefresh
:
Boolean
)
:
Job
fun
setPaymentMethod
(
paymentMethod
:
PaymentMethod
?
)
:
Unit
fun
setPermissionStatus
(
isCameraPermissionGranted
:
Boolean
)
:
Unit
val
stateLiveData
:
LiveData
<
State
>
val
sthLiveData
:
LiveData
<
TicketingAccount
?
>
fun
toggleCameraQRCode
(
)
:
Unit
fun
updateIsCameraSurfaceReady
(
isAvailable
:
Boolean
)
:
Unit
fun
updateIsVirtualCurrencyToggleVisible
(
isToggleVisible
:
Boolean
)
:
Unit
fun
updatePaymentMethodSelectionClicked
(
paymentNavigator
:
PaymentMethodNavigator
,
onPaymentMethodRemovalFailed
:
(
Exception
)
->
Unit
)
:
Unit
fun
virtualCurrencyToggled
(
checked
:
Boolean
)
:
Unit
sealed
class
QrViewState
Module Contents
object
Loading
:
QrViewState
object
Nothing
:
QrViewState
data
class
QrAndScanner
:
QrViewState
Module Contents
QrAndScanner
(
isCameraSelected
:
Boolean
=
false
,
isCameraPermissionGranted
:
Boolean
?
=
null
)
val
isCameraPermissionGranted
:
Boolean
?
val
isCameraSelected
:
Boolean
object
QrCodeOnly
:
QrViewState
data
class
ScannerOnly
:
QrViewState
Module Contents
ScannerOnly
(
isCameraPermissionGranted
:
Boolean
?
=
null
)
val
isCameraPermissionGranted
:
Boolean
?
data
class
State
Module Contents
State
(
qrViewState
:
QrViewState
=
QrViewState.Loading
,
isVirtualCurrencyToggleChecked
:
Boolean
=
false
,
isVirtualCurrencyToggleVisible
:
Boolean
=
VNWalletUI.isVirtualCurrencyToggleVisible
,
virtualCurrencyName
:
String
=
VenueNext.config?.walletConfig?.virtualCurrencyName ?: VenueNext.walletInterface?.virtualCurrencyName ?: ""
,
ticketingAccount
:
TicketingAccount
?
=
null
,
loyaltyUser
:
LoyaltyUser
?
=
null
,
awardsRules
:
List
<
AwardsRule
>
=
emptyList()
,
paymentMethod
:
PaymentMethod
?
=
null
,
actionBarTitle
:
String
=
VenueNext.config?.walletConfig?.walletTitle ?: VNWalletUI.integratorActionBarTitle ?: VenueNext.walletInterface?.virtualCurrencyName ?: ""
,
isCameraSurfaceReady
:
Boolean
=
true
)
val
actionBarTitle
:
String
val
awardsRules
:
List
<
AwardsRule
>
val
isCameraSurfaceReady
:
Boolean
val
isVirtualCurrencyToggleChecked
:
Boolean
val
isVirtualCurrencyToggleVisible
:
Boolean
val
loyaltyUser
:
LoyaltyUser
?
val
paymentMethod
:
PaymentMethod
?
val
qrViewState
:
QrViewState
val
ticketingAccount
:
TicketingAccount
?
val
virtualCurrencyName
:
String
enum
class
TargetName
Module Contents
HORNETS
JAZZ
LYNX
MAGIC
TEST
TIMBERWOLVES
fun
toString
(
)
:
String
object
User
:
Observable
Module Contents
var
card
:
CreditCard
?
object
Utils
Module Contents
fun
generateQrCode
(
contents
:
String
,
dimensionInPixels
:
Int
)
:
Bitmap
data
class
VCHistoryState
Module Contents
VCHistoryState
(
items
:
List
<
BalanceHistoryItem
>
=
emptyList()
,
isLoading
:
Boolean
=
true
)
val
isLoading
:
Boolean
val
items
:
List
<
BalanceHistoryItem
>
class
VirtualCurrencyDeeplinkHandler
:
DeepLinkable
,
BaseCoroutineScope
,
LoginResultListener
Module Contents
VirtualCurrencyDeeplinkHandler
(
)
fun
canHandleDeepLink
(
uri
:
Uri
)
:
Boolean
fun
handleDeepLink
(
view
:
View
,
uri
:
Uri
)
:
Unit
fun
onLoginFailure
(
)
:
Unit
fun
onLoginSuccess
(
ticketingLoginData
:
TicketingLoginData
)
:
Unit
class
VirtualCurrencyHistoryAdapter
:
Adapter
<
VirtualCurrencyVH
>
Module Contents
VirtualCurrencyHistoryAdapter
(
onCancelClicked
:
OnCancelClicked
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
VirtualCurrencyVH
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
VirtualCurrencyVH
fun
setData
(
newData
:
List
<
BalanceHistoryItem
>
)
:
Unit
class
VirtualCurrencyHistoryFragment
:
Fragment
Module Contents
VirtualCurrencyHistoryFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
?
fun
onResume
(
)
:
Unit
class
VirtualCurrencyHistoryViewModel
:
AndroidViewModel
,
BaseCoroutineScope
Module Contents
VirtualCurrencyHistoryViewModel
(
application
:
Application
)
fun
cancelTransaction
(
cancellableBalanceHistoryItem
:
CancellableBalanceHistoryItem
)
:
Unit
protected
fun
onCleared
(
)
:
Unit
fun
updateHistory
(
)
:
Job
val
vcHistoryStateLiveData
:
LiveData
<
VCHistoryState
>
class
VirtualCurrencyTransferFragment
:
Fragment
,
OnFocusChangeListener
Module Contents
VirtualCurrencyTransferFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onFocusChange
(
v
:
View
,
hasFocus
:
Boolean
)
:
Unit
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
class
VirtualCurrencyTransferViewModel
:
AndroidViewModel
Module Contents
VirtualCurrencyTransferViewModel
(
application
:
Application
)
var
cachedLoyaltyUser
:
LoyaltyUser
?
val
currencyName
:
String
fun
fetchLoyaltyUser
(
)
:
LoyaltyUser
?
suspend
fun
transferBalanceAsync
(
context
:
Context
,
email
:
String
,
description
:
String
,
amountInCents
:
Double
,
success
:
(
)
->
Unit
,
failure
:
(
message
:
String
)
->
Unit
)
:
Unit
?
sealed
class
VirtualCurrencyVH
:
ViewHolder
Module Contents
class
CancelableVirtualCurrencyVH
:
VirtualCurrencyVH
Module Contents
CancelableVirtualCurrencyVH
(
binding
:
<ERROR CLASS>
)
fun
bind
(
item
:
CancellableBalanceHistoryItem
,
onCancelClicked
:
OnCancelClicked
)
:
Unit
class
FinalVirtualCurrencyVH
:
VirtualCurrencyVH
Module Contents
FinalVirtualCurrencyVH
(
binding
:
<ERROR CLASS>
)
fun
bind
(
item
:
FinalBalanceHistoryItem
)
:
Unit
class
VNCircleProgressbar
:
View
Module Contents
VNCircleProgressbar
(
context
:
Context
,
attributes
:
AttributeSet
)
var
backgroundCircleColor
:
Int
var
backgroundCircleStrokeWidth
:
Float
var
foregroundCircleColor
:
Int
var
foregroundCircleStrokeWidth
:
Float
protected
fun
onDraw
(
canvas
:
Canvas
?
)
:
Unit
protected
fun
onMeasure
(
widthMeasureSpec
:
Int
,
heightMeasureSpec
:
Int
)
:
Unit
var
startAngle
:
Float
var
vnMax
:
Int
var
vnMin
:
Int
var
vnProgress
:
Int
object
VNWalletUI
:
DeepLinkable
,
BaseCoroutineScope
Module Contents
fun
canHandleDeepLink
(
uri
:
Uri
)
:
Boolean
fun
configure
(
isVirtualCurrencyToggleVisible
:
Boolean
,
qrConfig
:
QrConfig
=
QrConfig.VC_ONLY
,
actionBarTitle
:
String
?
=
null
,
isVirtualCurrencyEnabled
:
Boolean
=
true
)
:
Unit
fun
handleDeepLink
(
view
:
View
,
uri
:
Uri
)
:
Unit
fun
initialize
(
)
:
Unit
var
integratorActionBarTitle
:
String
?
val
supportedPaymentTypes
:
List
<
String
>
enum
class
WalletColorKey
Module Contents
BRAND_COLOR
BRAND_SECONDARY_COLOR
val
colorKey
:
String
MISSING_COLOR_TEST
SUB_TITLE_COLOR
TITLE_COLOR
object
WalletConfiguration
Module Contents
var
color
:
Color
?
data
class
Color
Module Contents
Color
(
brandColor
:
String
,
brandSecondaryColor
:
String
,
titleColor
:
String
,
subtitleColor
:
String
,
titleColorDarkContent
:
String
,
subtitleColorDarkContent
:
String
)
var
brandColor
:
String
var
brandSecondaryColor
:
String
var
subtitleColor
:
String
var
subtitleColorDarkContent
:
String
var
titleColor
:
String
var
titleColorDarkContent
:
String
data
class
Colors
Module Contents
Colors
(
color
:
Color
)
var
color
:
Color
fun
determineFileName
(
)
:
FileName
?
var
fileName
:
FileName
?
fun
loadColorsResource
(
context
:
Context
,
fileName
:
String
)
:
Color
?
var
targetName
:
TargetName
?
var
virtualMoneyBalanceInCents
:
Int
class
WalletDashboardActionListAdapter
:
Adapter
<
ActionItemViewHolder
>
Module Contents
WalletDashboardActionListAdapter
(
listItems
:
List
<
DashboardActionListItem
>
)
class
ActionItemViewHolder
:
ViewHolder
Module Contents
ActionItemViewHolder
(
itemView
:
View
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
ActionItemViewHolder
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
ActionItemViewHolder
class
WalletDashboardBenefitsAndAwardsListAdapter
:
Adapter
<
BenefitsAndAwardsItemViewHolder
>
Module Contents
WalletDashboardBenefitsAndAwardsListAdapter
(
listItems
:
List
<
BenefitsAndAwardsListItem
>
)
class
BenefitsAndAwardsItemViewHolder
:
ViewHolder
Module Contents
BenefitsAndAwardsItemViewHolder
(
itemView
:
View
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
BenefitsAndAwardsItemViewHolder
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
BenefitsAndAwardsItemViewHolder
class
WalletLoyaltyListener
:
NotificationMessageHandler
Module Contents
WalletLoyaltyListener
(
loyaltyRepository
:
LoyaltyUserRepository
)
fun
canHandleMessage
(
notification
:
Notification
)
:
Boolean
fun
handleMessage
(
notification
:
Notification
)
:
Unit
class
WalletMainFragment
:
Fragment
,
Observer
<
ViewState
>
Module Contents
WalletMainFragment
(
)
fun
onActivityCreated
(
savedInstanceState
:
Bundle
?
)
:
Unit
fun
onChanged
(
state
:
ViewState
?
)
:
Unit
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
class
WalletQRFragment
:
Fragment
Module Contents
WalletQRFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onDestroyView
(
)
:
Unit
fun
onRequestPermissionsResult
(
requestCode
:
Int
,
permissions
:
Array
<
String
>
,
grantResults
:
IntArray
)
:
Unit
fun
onResume
(
)
:
Unit
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
class
WalletViewModel
:
AndroidViewModel
,
LoginResultListener
Module Contents
WalletViewModel
(
application
:
Application
)
val
actionBarTitle
:
String
?
fun
clearState
(
)
:
Unit
fun
loadData
(
)
:
Job
protected
fun
onCleared
(
)
:
Unit
fun
onLoginFailure
(
)
:
Unit
fun
onLoginSuccess
(
ticketingLoginData
:
TicketingLoginData
)
:
Unit
suspend
fun
requestLoyaltyUser
(
)
:
LoyaltyUser
?
var
ticketingInterface
:
TicketingInterface
?
sealed
class
ViewState
Module Contents
object
Loading
:
ViewState
class
LoggedIn
:
ViewState
Module Contents
LoggedIn
(
paymentOptions
:
List
<
PaymentOption
>
,
awardRules
:
List
<
AwardsRule
>
)
val
awardRules
:
List
<
AwardsRule
>
val
paymentOptions
:
List
<
PaymentOption
>
object
LoggedOut
:
ViewState
object
LoggingIn
:
ViewState
object
LoginFailed
:
ViewState
object
Offline
:
ViewState
val
viewStateLiveData
:
LiveData
<
ViewState
!
>
val
virtualCurrencyName
:
String
?
package
com.venuenext.vnwalletui
Module Contents
object
AppTarget
Module Contents
@Retention
(
RetentionPolicy.SOURCE
)
annotation
class
Target
Module Contents
Target
(
)
const
val
TARGET_HORNETS
:
Int
const
val
TARGET_LYNX
:
Int
const
val
TARGET_MAGIC
:
Int
const
val
TARGET_TIMBERWOLVES
:
Int
const
val
TARGET_UNKNOWN
:
Int
const
val
TARGET_UTAHJAZZ
:
Int
enum
class
QrConfig
Module Contents
NONE
QR_SCANNER
VC_AND_SCANNER
VC_ONLY
object
VNWalletUI
:
DeepLinkable
,
BaseCoroutineScope
Module Contents
fun
canHandleDeepLink
(
uri
:
Uri
)
:
Boolean
fun
configure
(
isVirtualCurrencyToggleVisible
:
Boolean
,
qrConfig
:
QrConfig
=
QrConfig.VC_ONLY
,
actionBarTitle
:
String
?
=
null
,
isVirtualCurrencyEnabled
:
Boolean
=
true
)
:
Unit
fun
handleDeepLink
(
view
:
View
,
uri
:
Uri
)
:
Unit
fun
initialize
(
)
:
Unit
var
integratorActionBarTitle
:
String
?
val
supportedPaymentTypes
:
List
<
String
>
object
WalletConfiguration
Module Contents
var
color
:
Color
?
data
class
Color
Module Contents
Color
(
brandColor
:
String
,
brandSecondaryColor
:
String
,
titleColor
:
String
,
subtitleColor
:
String
,
titleColorDarkContent
:
String
,
subtitleColorDarkContent
:
String
)
var
brandColor
:
String
var
brandSecondaryColor
:
String
var
subtitleColor
:
String
var
subtitleColorDarkContent
:
String
var
titleColor
:
String
var
titleColorDarkContent
:
String
data
class
Colors
Module Contents
Colors
(
color
:
Color
)
var
color
:
Color
fun
determineFileName
(
)
:
FileName
?
var
fileName
:
FileName
?
fun
loadColorsResource
(
context
:
Context
,
fileName
:
String
)
:
Color
?
var
targetName
:
TargetName
?
var
virtualMoneyBalanceInCents
:
Int
class
WalletViewModel
:
AndroidViewModel
,
LoginResultListener
Module Contents
WalletViewModel
(
application
:
Application
)
val
actionBarTitle
:
String
?
fun
clearState
(
)
:
Unit
fun
loadData
(
)
:
Job
protected
fun
onCleared
(
)
:
Unit
fun
onLoginFailure
(
)
:
Unit
fun
onLoginSuccess
(
ticketingLoginData
:
TicketingLoginData
)
:
Unit
suspend
fun
requestLoyaltyUser
(
)
:
LoyaltyUser
?
var
ticketingInterface
:
TicketingInterface
?
sealed
class
ViewState
Module Contents
object
Loading
:
ViewState
class
LoggedIn
:
ViewState
Module Contents
LoggedIn
(
paymentOptions
:
List
<
PaymentOption
>
,
awardRules
:
List
<
AwardsRule
>
)
val
awardRules
:
List
<
AwardsRule
>
val
paymentOptions
:
List
<
PaymentOption
>
object
LoggedOut
:
ViewState
object
LoggingIn
:
ViewState
object
LoginFailed
:
ViewState
object
Offline
:
ViewState
val
viewStateLiveData
:
LiveData
<
ViewState
!
>
val
virtualCurrencyName
:
String
?
package
com.venuenext.vnwalletui.model
Module Contents
data
class
BenefitsAndAwardsListItem
Module Contents
BenefitsAndAwardsListItem
(
name
:
String
,
description
:
String
?
,
imageUrl
:
String
?
,
amount
:
Int
,
awardThreshold
:
Int
=
INVALID_AWARD_THRESHOLD
,
amountForNextAward
:
Int
=
INVALID_AMOUNT_FOR_NEXT_AWARD
,
action
:
(
)
->
Unit
)
val
action
:
(
)
->
Unit
val
amount
:
Int
val
amountForNextAward
:
Int
val
awardThreshold
:
Int
val
description
:
String
?
val
imageUrl
:
String
?
val
isCashBackRule
:
Boolean
val
name
:
String
data
class
CreditCard
Module Contents
CreditCard
(
cardType
:
String
,
lastFour
:
String
)
val
cardType
:
String
var
isOnFile
:
Boolean
val
lastFour
:
String
data
class
DashboardActionListItem
Module Contents
DashboardActionListItem
(
title
:
String
,
description
:
String
,
actionText
:
String
=
""
,
showsButton
:
Boolean
=
false
,
action
:
(
)
->
Unit
)
val
action
:
(
)
->
Unit
val
actionText
:
String
val
description
:
String
val
showsButton
:
Boolean
val
title
:
String
object
User
:
Observable
Module Contents
var
card
:
CreditCard
?
class
WalletLoyaltyListener
:
NotificationMessageHandler
Module Contents
WalletLoyaltyListener
(
loyaltyRepository
:
LoyaltyUserRepository
)
fun
canHandleMessage
(
notification
:
Notification
)
:
Boolean
fun
handleMessage
(
notification
:
Notification
)
:
Unit
package
com.venuenext.vnwalletui.navigation
Module Contents
class
VirtualCurrencyDeeplinkHandler
:
DeepLinkable
,
BaseCoroutineScope
,
LoginResultListener
Module Contents
VirtualCurrencyDeeplinkHandler
(
)
fun
canHandleDeepLink
(
uri
:
Uri
)
:
Boolean
fun
handleDeepLink
(
view
:
View
,
uri
:
Uri
)
:
Unit
fun
onLoginFailure
(
)
:
Unit
fun
onLoginSuccess
(
ticketingLoginData
:
TicketingLoginData
)
:
Unit
package
com.venuenext.vnwalletui.protocol
Module Contents
interface
Callback
<
T
>
Module Contents
abstract
fun
onComplete
(
result
:
T
)
:
Unit
abstract
fun
onException
(
e
:
Exception
?
)
:
Unit
interface
Coordinator
Module Contents
abstract
fun
start
(
context
:
Context
)
:
Unit
package
com.venuenext.vnwalletui.types
Module Contents
enum
class
FileName
Module Contents
BAD_JSON
val
fileName
:
String
HORNETS
JAZZ
LYNX
MAGIC
MISSING_FILE
MOCK_TOGGLE_RESPONSE
TEST
TIMBERWOLVES
enum
class
TargetName
Module Contents
HORNETS
JAZZ
LYNX
MAGIC
TEST
TIMBERWOLVES
fun
toString
(
)
:
String
enum
class
WalletColorKey
Module Contents
BRAND_COLOR
BRAND_SECONDARY_COLOR
val
colorKey
:
String
MISSING_COLOR_TEST
SUB_TITLE_COLOR
TITLE_COLOR
package
com.venuenext.vnwalletui.util
Module Contents
com.venuenext.vnwallet.model.PaymentOption
Module Contents
fun
PaymentOption
.
toPaymentType
(
)
:
PaymentType
class
QRCodeAnalyzer
:
Analyzer
Module Contents
QRCodeAnalyzer
(
coroutineScope
:
CoroutineScope
,
rawValueCallBack
:
(
String
)
->
Unit
)
fun
analyze
(
image
:
ImageProxy
,
rotationDegrees
:
Int
)
:
Unit
object
Utils
Module Contents
fun
generateQrCode
(
contents
:
String
,
dimensionInPixels
:
Int
)
:
Bitmap
package
com.venuenext.vnwalletui.view
Module Contents
sealed
class
Events
Module Contents
object
InvalidQRCode
:
Events
object
NoEvent
:
Events
data
class
ValidQRCode
:
Events
Module Contents
ValidQRCode
(
payload
:
String
,
total
:
String
,
orderNumber
:
String
)
val
orderNumber
:
String
val
payload
:
String
val
total
:
String
val
State
.
hasCreditCard
:
Boolean
val
State
.
isCameraPermissionGranted
:
Boolean
?
val
State
.
isVirtualCurrencyEnabled
:
Boolean
class
QRViewModel
:
AndroidViewModel
,
PaymentHandler
Module Contents
QRViewModel
(
application
:
Application
)
fun
acceptQrCode
(
qrCode
:
String
)
:
Unit
lateinit
var
awardRules
:
List
<
AwardsRule
>
fun
eventHandled
(
)
:
Unit
val
eventLiveData
:
LiveData
<
Events
>
suspend
fun
getPaymentMethod
(
forceRefresh
:
Boolean
)
:
PaymentMethod
?
fun
getPaymentMethodLiveData
(
)
:
LiveData
<
PaymentMethod
>
fun
getPaymentType
(
isVirtualCurrencyEnabled
:
Boolean
,
hasCreditCard
:
Boolean
,
isVirtualCurrencyToggleVisible
:
Boolean
)
:
PaymentType
?
fun
getQrImage
(
paymentType
:
PaymentType
)
:
Bitmap
?
lateinit
var
paymentOptions
:
List
<
PaymentOption
>
fun
registerViewLifecycleOwner
(
owner
:
LifecycleOwner
)
:
Unit
suspend
fun
removePaymentMethod
(
)
:
Unit
suspend
fun
savePaymentMethod
(
payment
:
PaymentResult
)
:
Unit
fun
setInitialQrViewState
(
forceRefresh
:
Boolean
)
:
Job
fun
setPaymentMethod
(
paymentMethod
:
PaymentMethod
?
)
:
Unit
fun
setPermissionStatus
(
isCameraPermissionGranted
:
Boolean
)
:
Unit
val
stateLiveData
:
LiveData
<
State
>
val
sthLiveData
:
LiveData
<
TicketingAccount
?
>
fun
toggleCameraQRCode
(
)
:
Unit
fun
updateIsCameraSurfaceReady
(
isAvailable
:
Boolean
)
:
Unit
fun
updateIsVirtualCurrencyToggleVisible
(
isToggleVisible
:
Boolean
)
:
Unit
fun
updatePaymentMethodSelectionClicked
(
paymentNavigator
:
PaymentMethodNavigator
,
onPaymentMethodRemovalFailed
:
(
Exception
)
->
Unit
)
:
Unit
fun
virtualCurrencyToggled
(
checked
:
Boolean
)
:
Unit
sealed
class
QrViewState
Module Contents
object
Loading
:
QrViewState
object
Nothing
:
QrViewState
data
class
QrAndScanner
:
QrViewState
Module Contents
QrAndScanner
(
isCameraSelected
:
Boolean
=
false
,
isCameraPermissionGranted
:
Boolean
?
=
null
)
val
isCameraPermissionGranted
:
Boolean
?
val
isCameraSelected
:
Boolean
object
QrCodeOnly
:
QrViewState
data
class
ScannerOnly
:
QrViewState
Module Contents
ScannerOnly
(
isCameraPermissionGranted
:
Boolean
?
=
null
)
val
isCameraPermissionGranted
:
Boolean
?
fun
State
.
setQrViewStateCameraActive
(
isCameraActive
:
Boolean
)
:
QrViewState
data
class
State
Module Contents
State
(
qrViewState
:
QrViewState
=
QrViewState.Loading
,
isVirtualCurrencyToggleChecked
:
Boolean
=
false
,
isVirtualCurrencyToggleVisible
:
Boolean
=
VNWalletUI.isVirtualCurrencyToggleVisible
,
virtualCurrencyName
:
String
=
VenueNext.config?.walletConfig?.virtualCurrencyName ?: VenueNext.walletInterface?.virtualCurrencyName ?: ""
,
ticketingAccount
:
TicketingAccount
?
=
null
,
loyaltyUser
:
LoyaltyUser
?
=
null
,
awardsRules
:
List
<
AwardsRule
>
=
emptyList()
,
paymentMethod
:
PaymentMethod
?
=
null
,
actionBarTitle
:
String
=
VenueNext.config?.walletConfig?.walletTitle ?: VNWalletUI.integratorActionBarTitle ?: VenueNext.walletInterface?.virtualCurrencyName ?: ""
,
isCameraSurfaceReady
:
Boolean
=
true
)
val
actionBarTitle
:
String
val
awardsRules
:
List
<
AwardsRule
>
val
isCameraSurfaceReady
:
Boolean
val
isVirtualCurrencyToggleChecked
:
Boolean
val
isVirtualCurrencyToggleVisible
:
Boolean
val
loyaltyUser
:
LoyaltyUser
?
val
paymentMethod
:
PaymentMethod
?
val
qrViewState
:
QrViewState
val
ticketingAccount
:
TicketingAccount
?
val
virtualCurrencyName
:
String
class
WalletMainFragment
:
Fragment
,
Observer
<
ViewState
>
Module Contents
WalletMainFragment
(
)
fun
onActivityCreated
(
savedInstanceState
:
Bundle
?
)
:
Unit
fun
onChanged
(
state
:
ViewState
?
)
:
Unit
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
class
WalletQRFragment
:
Fragment
Module Contents
WalletQRFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onDestroyView
(
)
:
Unit
fun
onRequestPermissionsResult
(
requestCode
:
Int
,
permissions
:
Array
<
String
>
,
grantResults
:
IntArray
)
:
Unit
fun
onResume
(
)
:
Unit
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
package
com.venuenext.vnwalletui.view.ui
Module Contents
class
VNCircleProgressbar
:
View
Module Contents
VNCircleProgressbar
(
context
:
Context
,
attributes
:
AttributeSet
)
var
backgroundCircleColor
:
Int
var
backgroundCircleStrokeWidth
:
Float
var
foregroundCircleColor
:
Int
var
foregroundCircleStrokeWidth
:
Float
protected
fun
onDraw
(
canvas
:
Canvas
?
)
:
Unit
protected
fun
onMeasure
(
widthMeasureSpec
:
Int
,
heightMeasureSpec
:
Int
)
:
Unit
var
startAngle
:
Float
var
vnMax
:
Int
var
vnMin
:
Int
var
vnProgress
:
Int
package
com.venuenext.vnwalletui.view.ui.dashboard
Module Contents
class
WalletDashboardActionListAdapter
:
Adapter
<
ActionItemViewHolder
>
Module Contents
WalletDashboardActionListAdapter
(
listItems
:
List
<
DashboardActionListItem
>
)
class
ActionItemViewHolder
:
ViewHolder
Module Contents
ActionItemViewHolder
(
itemView
:
View
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
ActionItemViewHolder
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
ActionItemViewHolder
class
WalletDashboardBenefitsAndAwardsListAdapter
:
Adapter
<
BenefitsAndAwardsItemViewHolder
>
Module Contents
WalletDashboardBenefitsAndAwardsListAdapter
(
listItems
:
List
<
BenefitsAndAwardsListItem
>
)
class
BenefitsAndAwardsItemViewHolder
:
ViewHolder
Module Contents
BenefitsAndAwardsItemViewHolder
(
itemView
:
View
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
BenefitsAndAwardsItemViewHolder
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
BenefitsAndAwardsItemViewHolder
package
com.venuenext.vnwalletui.view.ui.vcbalance
Module Contents
sealed
class
BalanceHistoryItem
Module Contents
data
class
CancellableBalanceHistoryItem
:
BalanceHistoryItem
Module Contents
CancellableBalanceHistoryItem
(
displayTitle
:
String
,
date
:
String
,
amount
:
String
,
transfer_uuid
:
String
,
emailOfRecipient
:
String
,
dialogAmount
:
String
,
isCanceling
:
Boolean
)
val
amount
:
String
val
date
:
String
val
dialogAmount
:
String
val
displayTitle
:
String
val
emailOfRecipient
:
String
val
isCanceling
:
Boolean
val
transfer_uuid
:
String
data
class
FinalBalanceHistoryItem
:
BalanceHistoryItem
Module Contents
FinalBalanceHistoryItem
(
displayTitle
:
String
,
date
:
String
,
amount
:
String
)
val
amount
:
String
val
date
:
String
val
displayTitle
:
String
typealias
OnCancelClicked
=
(
CancellableBalanceHistoryItem
)
->
Unit
data
class
VCHistoryState
Module Contents
VCHistoryState
(
items
:
List
<
BalanceHistoryItem
>
=
emptyList()
,
isLoading
:
Boolean
=
true
)
val
isLoading
:
Boolean
val
items
:
List
<
BalanceHistoryItem
>
class
VirtualCurrencyHistoryAdapter
:
Adapter
<
VirtualCurrencyVH
>
Module Contents
VirtualCurrencyHistoryAdapter
(
onCancelClicked
:
OnCancelClicked
)
fun
getItemCount
(
)
:
Int
fun
getItemViewType
(
position
:
Int
)
:
Int
fun
onBindViewHolder
(
holder
:
VirtualCurrencyVH
,
position
:
Int
)
:
Unit
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
)
:
VirtualCurrencyVH
fun
setData
(
newData
:
List
<
BalanceHistoryItem
>
)
:
Unit
class
VirtualCurrencyHistoryFragment
:
Fragment
Module Contents
VirtualCurrencyHistoryFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
?
fun
onResume
(
)
:
Unit
class
VirtualCurrencyHistoryViewModel
:
AndroidViewModel
,
BaseCoroutineScope
Module Contents
VirtualCurrencyHistoryViewModel
(
application
:
Application
)
fun
cancelTransaction
(
cancellableBalanceHistoryItem
:
CancellableBalanceHistoryItem
)
:
Unit
protected
fun
onCleared
(
)
:
Unit
fun
updateHistory
(
)
:
Job
val
vcHistoryStateLiveData
:
LiveData
<
VCHistoryState
>
sealed
class
VirtualCurrencyVH
:
ViewHolder
Module Contents
class
CancelableVirtualCurrencyVH
:
VirtualCurrencyVH
Module Contents
CancelableVirtualCurrencyVH
(
binding
:
<ERROR CLASS>
)
fun
bind
(
item
:
CancellableBalanceHistoryItem
,
onCancelClicked
:
OnCancelClicked
)
:
Unit
class
FinalVirtualCurrencyVH
:
VirtualCurrencyVH
Module Contents
FinalVirtualCurrencyVH
(
binding
:
<ERROR CLASS>
)
fun
bind
(
item
:
FinalBalanceHistoryItem
)
:
Unit
package
com.venuenext.vnwalletui.view.ui.virtualcurrencybalancetransfer
Module Contents
const
val
TAG
:
String
class
VirtualCurrencyTransferFragment
:
Fragment
,
OnFocusChangeListener
Module Contents
VirtualCurrencyTransferFragment
(
)
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?
,
savedInstanceState
:
Bundle
?
)
:
View
fun
onFocusChange
(
v
:
View
,
hasFocus
:
Boolean
)
:
Unit
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?
)
:
Unit
class
VirtualCurrencyTransferViewModel
:
AndroidViewModel
Module Contents
VirtualCurrencyTransferViewModel
(
application
:
Application
)
var
cachedLoyaltyUser
:
LoyaltyUser
?
val
currencyName
:
String
fun
fetchLoyaltyUser
(
)
:
LoyaltyUser
?
suspend
fun
transferBalanceAsync
(
context
:
Context
,
email
:
String
,
description
:
String
,
amountInCents
:
Double
,
success
:
(
)
->
Unit
,
failure
:
(
message
:
String
)
->
Unit
)
:
Unit
?