1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 07:44:50 +00:00
Files
seahub/frontend/src/models/group.js

18 lines
431 B
JavaScript
Raw Normal View History

2018-12-08 08:37:18 +08:00
class Group {
constructor(object) {
this.id= object.id;
this.name = object.name;
this.owner = object.owner;
2018-12-10 11:52:44 +08:00
this.admins = object.admins || [];
2018-12-08 08:37:18 +08:00
this.avatar_url = object.avatar_url;
this.created_at = object.created_at;
this.parent_group_id = object.parent_group_id;
this.wiki_enabled = object.wiki_enabled;
2018-12-10 11:52:44 +08:00
if (object.repos) {
this.repos = object.repos;
}
2018-12-08 08:37:18 +08:00
}
}
export default Group;