Added Roles & Permission object inside company settings , added company settings inside KMResponse in KmAppSettingModel.java
@@ -115,6 +115,15 @@ public class KmAppSettingModel extends JsonMarker {
@SerializedName("isSingleThreaded")
private boolean singleThreaded;
private String preChatGreetingMsg;
+ private KmCompanySetting companySetting;
+
+ public KmCompanySetting getCompanySetting() {
+ return companySetting;
+ }
+
+ public void setCompanySetting(KmCompanySetting companySetting) {
+ this.companySetting = companySetting;
+ }
public String getPreChatGreetingMsg() {
return preChatGreetingMsg;
@@ -173,6 +182,15 @@ public class KmAppSettingModel extends JsonMarker {
private int inactiveTime;
private boolean enableWaitingQueue;
private int conversationHandlingLimit;
+ private KMRolesAndPermissions rolesAndPermissions;
+
+ public KMRolesAndPermissions getRolesAndPermissions() {
+ return rolesAndPermissions;
+ }
+
+ public void setRolesAndPermissions(KMRolesAndPermissions rolesAndPermissions) {
+ this.rolesAndPermissions = rolesAndPermissions;
+ }
public int getInactiveTime() {
return inactiveTime;
@@ -198,4 +216,37 @@ public class KmAppSettingModel extends JsonMarker {
this.conversationHandlingLimit = conversationHandlingLimit;
}
}
+
+ public static class KMRolesAndPermissions extends JsonMarker {
+ @SerializedName("bot")
+ private boolean isBotAssignmentAllowed = false;
+ @SerializedName("teammate")
+ private boolean isTeamMateAssignmentAllowed = false;
+ @SerializedName("team")
+ private boolean isTeamAssignmentAllowed = false;
+
+ public boolean isBotAssignmentAllowed() {
+ return isBotAssignmentAllowed;
+ }
+
+ public void setBotAssignmentAllowed(boolean botAssignmentAllowed) {
+ isBotAssignmentAllowed = botAssignmentAllowed;
+ }
+
+ public boolean isTeamMateAssignmentAllowed() {
+ return isTeamMateAssignmentAllowed;
+ }
+
+ public void setTeamMateAssignmentAllowed(boolean teamMateAssignmentAllowed) {
+ isTeamMateAssignmentAllowed = teamMateAssignmentAllowed;
+ }
+
+ public boolean isTeamAssignmentAllowed() {
+ return isTeamAssignmentAllowed;
+ }
+
+ public void setTeamAssignmentAllowed(boolean teamAssignmentAllowed) {
+ isTeamAssignmentAllowed = teamAssignmentAllowed;
+ }
+ }
}
