2023-05-03 21:21:04 +00:00
|
|
|
import "pkg:/source/api/UserLibrary.brs"
|
|
|
|
import "pkg:/source/api/baserequest.brs"
|
|
|
|
import "pkg:/source/utils/config.brs"
|
|
|
|
|
2022-05-14 10:13:28 +00:00
|
|
|
sub init()
|
|
|
|
m.top.functionName = "setFavoriteStatus"
|
|
|
|
end sub
|
|
|
|
|
|
|
|
sub setFavoriteStatus()
|
|
|
|
|
|
|
|
task = m.top.favTask
|
|
|
|
|
|
|
|
if task = "Favorite"
|
|
|
|
MarkItemFavorite(m.top.itemId)
|
|
|
|
else if task = "Unfavorite"
|
|
|
|
UnmarkItemFavorite(m.top.itemId)
|
|
|
|
end if
|
|
|
|
|
2022-05-30 12:57:40 +00:00
|
|
|
end sub
|