forked from avniproject/avni-server
-
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.
avniproject#788 | Added metabaseSetupEnable for settings in Organisat…
…ion config table and configured the code to work with frontend
- Loading branch information
1 parent
ec064aa
commit 81cc9f5
Showing
6 changed files
with
131 additions
and
7 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
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
27 changes: 27 additions & 0 deletions
27
...rver-api/src/main/java/org/avni/server/web/response/metabase/CreateQuestionsResponse.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,27 @@ | ||
package org.avni.server.web.response.metabase; | ||
|
||
public class CreateQuestionsResponse { | ||
private boolean success; | ||
private String message; | ||
|
||
public CreateQuestionsResponse(boolean success, String message) { | ||
this.success = success; | ||
this.message = message; | ||
} | ||
|
||
public boolean isSuccess() { | ||
return success; | ||
} | ||
|
||
public void setSuccess(boolean success) { | ||
this.success = success; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
avni-server-api/src/main/java/org/avni/server/web/response/metabase/SetupStatusResponse.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,13 @@ | ||
package org.avni.server.web.response.metabase; | ||
|
||
public class SetupStatusResponse { | ||
private boolean setupEnabled; | ||
|
||
public SetupStatusResponse(boolean setupEnabled) { | ||
this.setupEnabled = setupEnabled; | ||
} | ||
|
||
public boolean isSetupEnabled() { | ||
return setupEnabled; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
avni-server-api/src/main/java/org/avni/server/web/response/metabase/SetupToggleResponse.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,19 @@ | ||
package org.avni.server.web.response.metabase; | ||
|
||
public class SetupToggleResponse { | ||
private boolean success; | ||
private String message; | ||
|
||
public SetupToggleResponse(boolean success, String message) { | ||
this.success = success; | ||
this.message = message; | ||
} | ||
|
||
public boolean isSuccess() { | ||
return success; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
} |