mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 06:40:32 +05:30
28 lines
1.1 KiB
Swift
28 lines
1.1 KiB
Swift
|
import Defaults
|
||
|
import SwiftyJSON
|
||
|
|
||
|
final class OtherDataSettingsGroupExporter: SettingsGroupExporter {
|
||
|
override var globalJSON: JSON {
|
||
|
[
|
||
|
"lastAccountID": Defaults[.lastAccountID] ?? "",
|
||
|
"lastInstanceID": Defaults[.lastInstanceID] ?? "",
|
||
|
|
||
|
"playerRate": Defaults[.playerRate],
|
||
|
|
||
|
"trendingCategory": Defaults[.trendingCategory].rawValue,
|
||
|
"trendingCountry": Defaults[.trendingCountry].rawValue,
|
||
|
|
||
|
"subscriptionsViewPage": Defaults[.subscriptionsViewPage].rawValue,
|
||
|
"subscriptionsListingStyle": Defaults[.subscriptionsListingStyle].rawValue,
|
||
|
"popularListingStyle": Defaults[.popularListingStyle].rawValue,
|
||
|
"trendingListingStyle": Defaults[.trendingListingStyle].rawValue,
|
||
|
"playlistListingStyle": Defaults[.playlistListingStyle].rawValue,
|
||
|
"channelPlaylistListingStyle": Defaults[.channelPlaylistListingStyle].rawValue,
|
||
|
"searchListingStyle": Defaults[.searchListingStyle].rawValue,
|
||
|
|
||
|
"hideShorts": Defaults[.hideShorts],
|
||
|
"hideWatched": Defaults[.hideWatched]
|
||
|
]
|
||
|
}
|
||
|
}
|