Skip to content

Commit df43852

Browse files
committed
Module refactoring
1 parent 1d00881 commit df43852

File tree

82 files changed

+700
-533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+700
-533
lines changed
File renamed without changes.

dota/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apply plugin: 'java'
2+
3+
sourceCompatibility = "1.7"
4+
targetCompatibility = "1.7"
5+
6+
dependencies {
7+
8+
testCompile 'junit:junit:4.12'
9+
compile project(':steam')
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.michaelfotiadis.steam.dota2;
2+
3+
public class Dota2Loader {
4+
5+
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.michaelfotiadis.steam.dota2.model.api;
2+
3+
public interface DotaApiModel {
4+
// Marker Interface
5+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.michaelfotiadis.steam.dota2.model.api.hero;
2+
3+
import com.michaelfotiadis.steam.dota2.model.api.DotaApiModel;
4+
5+
/**
6+
*
7+
*/
8+
public interface AbilityUpgrade extends DotaApiModel {
9+
10+
Integer getAbility();
11+
12+
Integer getTime();
13+
14+
Integer getLevel();
15+
16+
}

lib/src/main/java/com/michaelfotiadis/steam/dota2/loader/lib/model/api/hero/DotaAbilityUpgradeImpl.java renamed to dota/src/main/java/com/michaelfotiadis/steam/dota2/model/api/hero/AbilityUpgradeImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.michaelfotiadis.steam.dota2.loader.lib.model.api.hero;
1+
package com.michaelfotiadis.steam.dota2.model.api.hero;
22

33
import com.google.gson.annotations.SerializedName;
44

5-
public class DotaAbilityUpgradeImpl implements DotaAbilityUpgrade {
5+
public class AbilityUpgradeImpl implements AbilityUpgrade {
66

77
@SerializedName("ability")
88
private final Integer ability;
@@ -12,7 +12,7 @@ public class DotaAbilityUpgradeImpl implements DotaAbilityUpgrade {
1212
private final Integer level;
1313

1414

15-
public DotaAbilityUpgradeImpl(final int ability, final int time, final int level) {
15+
public AbilityUpgradeImpl(final int ability, final int time, final int level) {
1616
this.ability = ability;
1717
this.time = time;
1818
this.level = level;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.michaelfotiadis.steam.dota2.model.api.hero;
2+
3+
import com.michaelfotiadis.steam.dota2.model.api.DotaApiModel;
4+
5+
/**
6+
*
7+
*/
8+
public interface Hero extends DotaApiModel {
9+
String getName();
10+
11+
Integer getId();
12+
13+
String getLocalizedName();
14+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.michaelfotiadis.steam.dota2.model.api.hero;
2+
3+
import com.michaelfotiadis.steam.dota2.model.api.DotaApiModel;
4+
5+
import java.util.List;
6+
7+
/**
8+
*
9+
*/
10+
public interface HeroContainer extends DotaApiModel {
11+
List<Hero> getHeroes();
12+
13+
Integer getStatus();
14+
15+
Integer getCount();
16+
}

0 commit comments

Comments
 (0)