Skip to content

Commit

Permalink
feat: add some new media metadata properties
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <[email protected]>
  • Loading branch information
genaris committed Apr 3, 2024
1 parent fb8af7c commit 7a4218f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/model/messages/MediaMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export interface MediaItemOptions {
uri: string
ciphering?: CipheringInfo
preview?: string
width?: number
height?: number
duration?: string
title?: string
icon?: string
openingMode?: string
screenOrientaton?: string
}

export class MediaItem {
Expand All @@ -36,10 +39,13 @@ export class MediaItem {
this.uri = options.uri
this.ciphering = options.ciphering
this.preview = options.preview
this.width = options.width
this.height = options.height
this.duration = options.duration
this.title = options.title
this.icon = options.icon
this.openingMode = options.openingMode
this.screenOrientation = options.screenOrientaton
}
}

Expand Down Expand Up @@ -68,6 +74,12 @@ export class MediaItem {
@IsString()
public preview?: string

@IsOptional()
public width?: number

@IsOptional()
public height?: number

@IsOptional()
@IsString()
public duration?: string
Expand All @@ -84,6 +96,10 @@ export class MediaItem {
@IsString()
public openingMode?: string

@IsOptional()
@IsString()
public screenOrientation?: string

@IsOptional()
public ciphering?: CipheringInfo
}
Expand Down

0 comments on commit 7a4218f

Please sign in to comment.