2018-10-13 09:07:54 +00:00
|
|
|
import { Utils } from '../utils/utils';
|
|
|
|
|
|
|
|
class Repo {
|
|
|
|
constructor(object) {
|
|
|
|
this.repo_id = object.repo_id;
|
2018-10-25 05:36:06 +00:00
|
|
|
this.repo_name = object.repo_name;
|
2018-10-13 09:07:54 +00:00
|
|
|
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;
|