Skip to content

Commit

Permalink
feat: media has type
Browse files Browse the repository at this point in the history
  • Loading branch information
damienen committed Apr 30, 2024
1 parent 0f39793 commit 5eafa2e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/datanft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ export class DataNft implements DataNftType {
readonly overrideDataMarshalChainId: string = '';
readonly isDataNFTPH: boolean = false;
readonly extraAssets: string[] = [];
readonly media: object[] = [];
readonly media: {
url: string;
originalUrl: string;
thumbnailUrl: string;
fileType: string;
fileSize: number;
}[] = [];

static networkConfiguration: Config;
static apiConfiguration: string;
Expand Down
7 changes: 7 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ export interface DataNftType {
readonly overrideDataMarshalChainId: string;
readonly isDataNFTPH: boolean;
readonly extraAssets: string[];
readonly media: {
url: string;
originalUrl: string;
thumbnailUrl: string;
fileType: string;
fileSize: number;
}[];
}

export enum NftEnumType {
Expand Down

0 comments on commit 5eafa2e

Please sign in to comment.