refactor(application): strip comments, DRY ownership check + parse_content_type
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/// Search library items with filters.
|
||||
pub struct SearchItemsQuery {
|
||||
pub provider_id: Option<String>,
|
||||
pub content_type: Option<String>,
|
||||
@@ -12,34 +11,28 @@ pub struct SearchItemsQuery {
|
||||
pub limit: u32,
|
||||
}
|
||||
|
||||
/// List library collections.
|
||||
pub struct ListCollectionsQuery {
|
||||
pub provider_id: Option<String>,
|
||||
}
|
||||
|
||||
/// List TV show summaries.
|
||||
pub struct ListShowsQuery {
|
||||
pub provider_id: Option<String>,
|
||||
pub search_term: Option<String>,
|
||||
pub genres: Vec<String>,
|
||||
}
|
||||
|
||||
/// List seasons for a specific series.
|
||||
pub struct ListSeasonsQuery {
|
||||
pub series_name: String,
|
||||
pub provider_id: Option<String>,
|
||||
}
|
||||
|
||||
/// List genres available in the library.
|
||||
pub struct ListGenresQuery {
|
||||
pub content_type: Option<String>,
|
||||
pub provider_id: Option<String>,
|
||||
}
|
||||
|
||||
/// Get a single library item by its composite ID.
|
||||
pub struct GetItemQuery {
|
||||
pub item_id: String,
|
||||
}
|
||||
|
||||
/// Get the latest sync status per provider.
|
||||
pub struct GetSyncStatusQuery;
|
||||
|
||||
Reference in New Issue
Block a user