feat(creator): 라이브 탭 기반을 추가한다
This commit is contained in:
24
SodaLive/Sources/V2/CreatorChannel/Models/ContentSort.swift
Normal file
24
SodaLive/Sources/V2/CreatorChannel/Models/ContentSort.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
import Foundation
|
||||
|
||||
enum ContentSort: String, Decodable, CaseIterable, Hashable {
|
||||
case latest = "LATEST"
|
||||
case popular = "POPULAR"
|
||||
case owned = "OWNED"
|
||||
case priceHigh = "PRICE_HIGH"
|
||||
case priceLow = "PRICE_LOW"
|
||||
|
||||
var title: String {
|
||||
switch self {
|
||||
case .latest:
|
||||
return I18n.CreatorChannelLive.Sort.latest
|
||||
case .popular:
|
||||
return I18n.CreatorChannelLive.Sort.popular
|
||||
case .owned:
|
||||
return I18n.CreatorChannelLive.Sort.owned
|
||||
case .priceHigh:
|
||||
return I18n.CreatorChannelLive.Sort.priceHigh
|
||||
case .priceLow:
|
||||
return I18n.CreatorChannelLive.Sort.priceLow
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user