pda
androidJvm
app
/
net.artux.pda.ui.viewmodels
/
SellerViewModel
Seller
View
Model
class
SellerViewModel
@
Inject
constructor
(
var
repository
:
SellerRepository
)
:
ViewModel
Members
Constructors
Seller
View
Model
Link copied to clipboard
@
Inject
constructor
(
repository
:
SellerRepository
)
Properties
item
Mapper
Link copied to clipboard
var
itemMapper
:
ItemMapper
repository
Link copied to clipboard
var
repository
:
SellerRepository
seller
Link copied to clipboard
var
seller
:
MutableLiveData
<
SellerModel
>
seller
Mapper
Link copied to clipboard
var
sellerMapper
:
SellerMapper
status
Link copied to clipboard
var
status
:
MutableLiveData
<
StatusModel
>
status
Mapper
Link copied to clipboard
var
statusMapper
:
StatusMapper
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
@
NonNull
p0
:
Closeable
)
buy
Item
Link copied to clipboard
fun
buyItem
(
uuid
:
UUID
,
quantity
:
Int
)
get
Buy
Coefficient
Link copied to clipboard
fun
getBuyCoefficient
(
)
:
Float
get
Items
Link copied to clipboard
fun
getItems
(
)
:
ItemsContainerModel
get
Seller
Coefficient
Link copied to clipboard
fun
getSellerCoefficient
(
)
:
Float
sell
Item
Link copied to clipboard
fun
sellItem
(
uuid
:
UUID
,
quantity
:
Int
)
update
Seller
Link copied to clipboard
fun
updateSeller
(
id
:
Long
)