mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Yattee v2 rewrite
This commit is contained in:
17
Yattee/Models/State/CommentsLoadState.swift
Normal file
17
Yattee/Models/State/CommentsLoadState.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// CommentsLoadState.swift
|
||||
// Yattee
|
||||
//
|
||||
// Comments loading state definitions.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum CommentsLoadState: Equatable {
|
||||
case idle
|
||||
case loading
|
||||
case loaded
|
||||
case loadingMore
|
||||
case disabled
|
||||
case error
|
||||
}
|
||||
15
Yattee/Models/State/VideoDetailsLoadState.swift
Normal file
15
Yattee/Models/State/VideoDetailsLoadState.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// VideoDetailsLoadState.swift
|
||||
// Yattee
|
||||
//
|
||||
// Video details loading state definitions.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum VideoDetailsLoadState: Equatable {
|
||||
case idle // No video loaded
|
||||
case loading // Fetching full details from API
|
||||
case loaded // Full details available
|
||||
case error // Failed to load details
|
||||
}
|
||||
Reference in New Issue
Block a user