Code style changes

This commit is contained in:
Arkadiusz Fal
2023-04-22 15:08:33 +02:00
parent afa0049333
commit a9e9fa3a6d
31 changed files with 52 additions and 46 deletions

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct BaseCacheModel {
static var shared = BaseCacheModel()
static var shared = Self()
static let jsonToDataTransformer: (JSON) -> Data = { try! $0.rawData() }
static let jsonFromDataTransformer: (Data) -> JSON = { try! JSON(data: $0) }

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct BookmarksCacheModel {
static var shared = BookmarksCacheModel()
static var shared = Self()
let logger = Logger(label: "stream.yattee.cache")
static let bookmarksGroup = "group.stream.yattee.app.bookmarks"

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct ChannelPlaylistsCacheModel: CacheModel {
static let shared = ChannelPlaylistsCacheModel()
static let shared = Self()
let logger = Logger(label: "stream.yattee.cache.channel-playlists")
static let diskConfig = DiskConfig(name: "channel-playlists")

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct ChannelsCacheModel: CacheModel {
static let shared = ChannelsCacheModel()
static let shared = Self()
let logger = Logger(label: "stream.yattee.cache.channels")
static let diskConfig = DiskConfig(name: "channels")

View File

@@ -5,7 +5,7 @@ import Logging
import SwiftyJSON
struct FeedCacheModel: CacheModel {
static let shared = FeedCacheModel()
static let shared = Self()
let logger = Logger(label: "stream.yattee.cache.feed")
static let diskConfig = DiskConfig(name: "feed")

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct PlaylistsCacheModel: CacheModel {
static let shared = PlaylistsCacheModel()
static let shared = Self()
static let limit = 30
let logger = Logger(label: "stream.yattee.cache.playlists")

View File

@@ -4,7 +4,7 @@ import Logging
import SwiftyJSON
struct VideosCacheModel: CacheModel {
static let shared = VideosCacheModel()
static let shared = Self()
let logger = Logger(label: "stream.yattee.cache.videos")
static let diskConfig = DiskConfig(name: "videos")