1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-22 19:02:21 +00:00
seahub/frontend/src/models/repo.js

22 lines
688 B
JavaScript
Raw Normal View History

2018-10-13 09:07:54 +00:00
import { Utils } from '../utils/utils';
class Repo {
constructor(object) {
this.repo_id = object.repo_id;
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.owner_name = object.owner_name;
this.owner_email = object.owner_email;
this.owner_contact_email = object.owner_contact_email;
this.encrypted = object.encrypted;
2018-12-18 09:21:01 +00:00
this.last_modified = object.last_modified;
this.modifier_contact_email = object.modifier_contact_email;
this.modifier_email = object.modifier_email;
this.modifier_name = object.modifier_name;
this.type = object.type;
2018-10-13 09:07:54 +00:00
}
}
export default Repo;