-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure mod works correctly when user is not logged into the server
- Loading branch information
1 parent
5dd84c0
commit d01929f
Showing
9 changed files
with
585 additions
and
172 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 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
74 changes: 74 additions & 0 deletions
74
src/main/java/com/github/hashicraft/microservices/blocks/DatabaseContext.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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package com.github.hashicraft.microservices.blocks; | ||
|
||
import com.google.gson.annotations.Expose; | ||
|
||
public class DatabaseContext { | ||
private boolean active; | ||
|
||
@Expose | ||
private String address; | ||
|
||
@Expose | ||
private String username; | ||
|
||
@Expose | ||
private String password; | ||
|
||
@Expose | ||
private String database; | ||
|
||
@Expose | ||
private String sql; | ||
|
||
// public getters and setters | ||
public boolean getActive() { | ||
return this.active; | ||
} | ||
|
||
public void setActive(boolean active) { | ||
this.active = active; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public String getUsername() { | ||
return this.username; | ||
} | ||
|
||
public void setUsername(String user) { | ||
this.username = user; | ||
} | ||
|
||
public String getPassword() { | ||
return this.password; | ||
} | ||
|
||
public void setPassword(String pass) { | ||
this.password = pass; | ||
} | ||
|
||
public String getDatabase() { | ||
return this.database; | ||
} | ||
|
||
public void setDatabase(String db) { | ||
this.database = db; | ||
} | ||
|
||
public String getSQL() { | ||
return this.sql; | ||
} | ||
|
||
public void setSQL(String sql) { | ||
this.sql = sql; | ||
} | ||
|
||
public DatabaseContext() { | ||
} | ||
} |
Oops, something went wrong.