You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
885 B
46 lines
885 B
2 years ago
|
import { Video } from "@interfaces/video";
|
||
|
|
||
|
export interface Channel {
|
||
|
author: string;
|
||
|
authorId: string;
|
||
|
authorUrl: string;
|
||
|
authorBanners: AuthorBanner[];
|
||
|
authorThumbnails: AuthorBanner[];
|
||
|
subCount: number;
|
||
|
totalViews: number;
|
||
|
joined: number;
|
||
|
autoGenerated: boolean;
|
||
|
isFamilyFriendly: boolean;
|
||
|
description: string;
|
||
|
descriptionHtml: string;
|
||
|
allowedRegions: string[];
|
||
|
latestVideos: Video[];
|
||
|
relatedChannels: RelatedChannel[];
|
||
|
}
|
||
|
|
||
|
export interface AuthorBanner {
|
||
|
url: string;
|
||
|
width: number;
|
||
|
height: number;
|
||
|
quality?: Quality;
|
||
|
}
|
||
|
|
||
|
export enum Quality {
|
||
|
Default = "default",
|
||
|
End = "end",
|
||
|
High = "high",
|
||
|
Maxres = "maxres",
|
||
|
Maxresdefault = "maxresdefault",
|
||
|
Medium = "medium",
|
||
|
Middle = "middle",
|
||
|
Sddefault = "sddefault",
|
||
|
Start = "start"
|
||
|
}
|
||
|
|
||
|
export interface RelatedChannel {
|
||
|
author: string;
|
||
|
authorId: string;
|
||
|
authorUrl: string;
|
||
|
authorThumbnails: AuthorBanner[];
|
||
|
}
|