mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-23 03:13:40 +00:00
22 lines
661 B
JavaScript
22 lines
661 B
JavaScript
|
import { Utils } from '../utils/utils';
|
||
|
|
||
|
class Repo {
|
||
|
constructor(object) {
|
||
|
this.repo_id = object.repo_id;
|
||
|
this.repo_name = object.name;
|
||
|
this.permission = object.permission;
|
||
|
this.size = Utils.bytesToSize(object.size);
|
||
|
this.file_count = object.file_count;
|
||
|
this.owner_name = object.owner_name;
|
||
|
this.owner_email = object.owner_email;
|
||
|
this.owner_contact_email = object.owner_contact_email;
|
||
|
this.is_admin = object.is_admin;
|
||
|
this.is_virtual = object.is_virtual;
|
||
|
this.no_quota = object.no_quota;
|
||
|
this.has_been_shared_out = object.has_been_shared_out;
|
||
|
this.encrypted = object.encrypted;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default Repo;
|