import { injectable } from "inversify"; import { IJsonApiResponse, IJsonApiResource, } from "../../interfaces"; export const videoSourceType = "source"; export interface IVideoSourceAttributes { modify_date?: string; create_date?: string; container?: string; codec?: string; src?: string; stream_name?: string; app_name?: string; width?: number; height?: number; encoding_rate?: number; size?: number; source_type?: string; } export interface IVideoSourceResource extends IJsonApiResource {} export interface IVideoSourceResponse extends IJsonApiResponse {} export interface IVideoSource { id?: string; updatedAt?: string; createdAt?: string; container?: string; codec?: string; src?: string; streamName?: string; appName?: string; width?: number; height?: number; encodingRate?: number; size?: number; sourceType?: string; } @injectable() export default class VideoSource implements IVideoSource { id?: string; updatedAt?: string; createdAt?: string; container?: string; codec?: string; src?: string; streamName?: string; appName?: string; width?: number; height?: number; encodingRate?: number; size?: number; sourceType?: string; constructor(options?: IVideoSource) { Object.assign(this, options); } }