Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit 75819c9

Browse files
committed
2lazy2document
1 parent 3578401 commit 75819c9

31 files changed

+1286
-21
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.idea
2+
/.gradle

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
import net.olympiccode.vhackos.api.entities.AppType;
4+
5+
public interface App {
6+
InstallableApp getAsInstallable();
7+
8+
UpdateableApp getAsUpdateable();
9+
10+
AppType getType();
11+
12+
long getPrice();
13+
14+
int getLevel();
15+
16+
int getRequiredLevel();
17+
18+
boolean isOneTime();
19+
20+
boolean isInstalled();
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
import net.olympiccode.vhackos.api.entities.AppType;
4+
5+
import java.util.List;
6+
7+
public interface AppManager {
8+
App getApp(AppType type);
9+
List<App> getApps();
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
public interface InstallableApp {
4+
boolean hasRequiredLevel();
5+
boolean install();
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
import net.olympiccode.vhackos.api.entities.AppType;
4+
5+
public interface Task {
6+
boolean isFinished();
7+
long getLevel();
8+
AppType getType();
9+
long getId();
10+
long getEndTimestamp();
11+
long getStartTimestamp();
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
import java.util.List;
4+
5+
public interface TaskManager {
6+
List<Task> getActiveTasks();
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package net.olympiccode.vhackos.api.appstore;
2+
3+
public interface UpdateableApp {
4+
boolean update();
5+
boolean fillTasks();
6+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package net.olympiccode.vhackos.api.entities;
2+
3+
import lombok.Getter;
4+
import lombok.Setter;
5+
6+
import java.util.ArrayList;
7+
import java.util.Arrays;
8+
import java.util.List;
9+
import java.util.stream.Collectors;
10+
11+
12+
public enum AppType {
13+
Notepad("Notepad", 0),
14+
Antivirus ("Antivirus", 1),
15+
Firewall ("Firewall", 2),
16+
Spam ("Spam", 3),
17+
BruteForce ("Bruteforce", 4),
18+
BankingProtection ("Banking Protection", 5),
19+
SDK ("Software Development Kit", 6),
20+
Community ("Community", 7),
21+
Missions ("Missions", 8),
22+
Leaderboards ("Leaderboards", 9),
23+
IPSP ("IP-Spoofing", 10),
24+
MalwareKit ("Malware Kit", 11),
25+
Jobs ("Jobs", 12);
26+
27+
@Getter
28+
private String name;
29+
@Getter
30+
private int id;
31+
32+
AppType(String name, int id) {
33+
this.name = name;
34+
this.id = id;
35+
}
36+
37+
public static AppType byId(int id) {
38+
return Arrays.stream(AppType.values()).filter(appType -> appType.getId() == id).collect(Collectors.toList()).get(0);
39+
}
40+
41+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package net.olympiccode.vhackos.api.entities;
2+
3+
public interface Stats {
4+
long getMoney();
5+
6+
long getExploits();
7+
8+
long getNetcoins();
9+
10+
long getLevel();
11+
12+
long getExperience();
13+
14+
long getRequiredExperience();
15+
16+
long getLevelPorcentage();
17+
18+
String getIpAddress();
19+
20+
String getUsername();
21+
}

0 commit comments

Comments
 (0)