Skip to content

Commit

Permalink
Merge pull request #24 from CaritasDeutschland/feature-assign-session…
Browse files Browse the repository at this point in the history
…-for-all-consultants

feat: added property for is peer chat
  • Loading branch information
mebo4b authored Nov 9, 2021
2 parents f1887c2 + 5e20056 commit a4268ae
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/consultingtypeservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ components:
initializeFeedbackChat:
type: boolean
example: true
isPeerChat:
type: boolean
example: true
roles:
$ref: '#/components/schemas/RolesDTO'
notifications:
Expand Down
1 change: 1 addition & 0 deletions consulting-type-settings/consulting-type-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"monitoringTemplateFile": "consultingtype0.json"
},
"initializeFeedbackChat": false,
"isPeerChat": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
1 change: 1 addition & 0 deletions consulting-type-settings/consulting-type-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"consultantBoundedToConsultingType": false,
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeer": true,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static ExtendedConsultingTypeResponseDTO mapConsultingType(ConsultingType
.sessionDataInitializing(
mapSessionDataInitializing(consultingType.getSessionDataInitializing()))
.initializeFeedbackChat(consultingType.getInitializeFeedbackChat())
.isPeerChat(consultingType.getIsPeerChat())
.languageFormal(consultingType.getLanguageFormal())
.monitoring(mapMonitoring(consultingType.getMonitoring()))
.roles(mapRoles(consultingType.getRoles()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static FullConsultingTypeResponseDTO mapConsultingType(ConsultingType con
.sessionDataInitializing(
mapSessionDataInitializing(consultingType.getSessionDataInitializing()))
.initializeFeedbackChat(consultingType.getInitializeFeedbackChat())
.isPeerChat(consultingType.getIsPeerChat())
.languageFormal(consultingType.getLanguageFormal())
.showAskerProfile(consultingType.getShowAskerProfile())
.monitoring(mapMonitoring(consultingType.getMonitoring()))
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/schemas/consulting-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@
"type": "boolean",
"default": false
},
"isPeerChat": {
"description": "Indicates whether the chat should be initialized as peer chat for every session of this consulting type",
"type": "boolean",
"default": false
},
"languageFormal": {
"description": "Indicates whether the feedback chat should be initialized for every session of this consulting type",
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void mapConsultingType_Should_MapAllBasicProperties() throws IOException
"whiteSpot",
"monitoring",
"initializeFeedbackChat",
"isPeerChat",
"languageFormal",
"roles",
"notifications",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"monitoringTemplateFile": "consultingtype0.json"
},
"initializeFeedbackChat": false,
"isPeerChat": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"consultantBoundedToConsultingType": false,
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"consultantBoundedToConsultingType": false,
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"consultantBoundedToConsultingType": false,
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"monitoringTemplateFile": null
},
"initializeFeedbackChat": false,
"isPeerChat": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down

0 comments on commit a4268ae

Please sign in to comment.