-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating dependencies, removing unused code, some small optimizations.
- Loading branch information
1 parent
94880eb
commit a73f083
Showing
10 changed files
with
56 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.tibiawiki; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class TibiaWikiApiApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(TibiaWikiApiApplication.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
src/main/java/com/tibiawiki/domain/jackson/CustomDeserializer.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/main/java/com/tibiawiki/domain/objects/TibiaWikiBot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,12 @@ | ||
package com.tibiawiki.domain.objects; | ||
|
||
import net.sourceforge.jwbf.mediawiki.bots.MediaWikiBot; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.io.InputStream; | ||
import java.util.Properties; | ||
|
||
public class TibiaWikiBot extends MediaWikiBot { | ||
|
||
private static final Logger log = LoggerFactory.getLogger(TibiaWikiBot.class); | ||
|
||
private static final String DEFAULT_WIKI_URI = "https://tibia.wikia.com/"; | ||
|
||
public TibiaWikiBot() { | ||
super(DEFAULT_WIKI_URI); | ||
} | ||
|
||
public void login() { | ||
String username = this.getProperty("username"); | ||
String password = this.getProperty("password"); | ||
super.login(username, password); | ||
} | ||
|
||
private String getProperty(String propertyName) { | ||
String output = ""; | ||
try { | ||
Properties props = new Properties(); | ||
InputStream is = props.getClass().getResourceAsStream("/credentials.properties"); | ||
props.load(is); | ||
return props.getProperty(propertyName); | ||
} catch(Exception ex) { | ||
log.error(String.valueOf(ex)); | ||
} | ||
return output; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/main/java/com/tibiawiki/serviceinterface/TestResource.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters