mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
typescript models
This commit is contained in:
18
src/models/data/folderData.ts
Normal file
18
src/models/data/folderData.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { FolderResponse } from '../response/folderResponse';
|
||||
|
||||
class FolderData {
|
||||
id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
revisionDate: string;
|
||||
|
||||
constructor(response: FolderResponse, userId: string) {
|
||||
this.userId = userId;
|
||||
this.name = response.name;
|
||||
this.id = response.id;
|
||||
this.revisionDate = response.revisionDate;
|
||||
}
|
||||
}
|
||||
|
||||
export { FolderData };
|
||||
(window as any).FolderData = FolderData;
|
||||
Reference in New Issue
Block a user