-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (35 loc) · 950 Bytes
/
index.js
File metadata and controls
45 lines (35 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const NameService = require('./app/service/name');
class Index {
constructor() {
this.nameService = new NameService();
this.nameService.createNewName();
}
async createNewName(...languages) {
return await this.nameService.createNewName(...languages);
}
getSpacing() {
return this.nameService.getSpacing();
}
setSpacing(spacing) {
return this.nameService.setSpacing(spacing);
}
getTag() {
return this.nameService.getTag();
}
setTag(tag) {
return this.nameService.setTag(tag);
}
getUsername() {
return this.nameService.getUsername();
}
getFullname(spacing) {
return this.nameService.getFullname(spacing);
}
async getUsernameWithTag(type, ...params) {
return await this.nameService.getUsernameWithTag(type, ...params);
}
async getFullnameWithTag(type, ...params) {
return await this.nameService.getFullnameWithTag(type, ...params);
}
}
module.exports = Index;