Skip to content

Commit

Permalink
Merge pull request #26 from CaritasDeutschland/feature-make-video-con…
Browse files Browse the repository at this point in the history
…figurable

Feature make video configurable
  • Loading branch information
mebo4b authored Nov 11, 2021
2 parents a4268ae + bcf31f1 commit ed917d8
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 6 deletions.
3 changes: 3 additions & 0 deletions api/consultingtypeservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ components:
showAskerProfile:
type: boolean
example: true
isVideoCallAllowed:
type: boolean
example: true

ExtendedConsultingTypeResponseDTO:
type: object
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 @@ -19,6 +19,7 @@
"sendFurtherStepsMessage": true,
"sendSaveSessionDataMessage": true,
"isSetEmailAllowed": false,
"isVideoCallAllowed": false,
"sessionDataInitializing": {
"addictiveDrugs": true,
"age": true,
Expand Down
4 changes: 1 addition & 3 deletions consulting-type-settings/consulting-type-1.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"id": 1,
"groups": [
"group2"
],
"slug": "consultingtype1",
"excludeNonMainConsultantsFromTeamSessions": false,
"consultantBoundedToConsultingType": false,
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeer": true,
"isVideoCallAllowed": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public static BasicConsultingTypeResponseDTO mapConsultingType(ConsultingType co
.urls(mapUrls(consultingType.getUrls()))
.registration(mapRegistration(consultingType.getRegistration()))
.groupChat(mapGroupChat(consultingType.getGroupChat()))
.showAskerProfile(consultingType.getShowAskerProfile());
.showAskerProfile(consultingType.getShowAskerProfile())
.isVideoCallAllowed(consultingType.getIsVideoCallAllowed());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static ExtendedConsultingTypeResponseDTO mapConsultingType(ConsultingType
.monitoring(mapMonitoring(consultingType.getMonitoring()))
.roles(mapRoles(consultingType.getRoles()))
.notifications(mapNotifications(consultingType.getNotifications()))
.showAskerProfile(consultingType.getShowAskerProfile());
.showAskerProfile(consultingType.getShowAskerProfile())
.isVideoCallAllowed(consultingType.getIsVideoCallAllowed());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static FullConsultingTypeResponseDTO mapConsultingType(ConsultingType con
.notifications(mapNotifications(consultingType.getNotifications()))
.voluntaryComponents(consultingType.getVoluntaryComponents())
.requiredComponents(consultingType.getRequiredComponents())
.welcomeScreen(mapWelcomeScreen(consultingType.getWelcomeScreen()));
.welcomeScreen(mapWelcomeScreen(consultingType.getWelcomeScreen()))
.isVideoCallAllowed(consultingType.getIsVideoCallAllowed());
}
}
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 @@ -522,6 +522,11 @@
"type": "boolean",
"default": true
},
"isVideoCallAllowed": {
"description": "True to enable video call buttons for consultants. False, when video call should be deactivated for consulting type.",
"type": "boolean",
"default": false
},
"isSubsequentRegistrationAllowed": {
"description": "If true, askers additionally can register for this consulting type on their profile page at a later date.",
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"isAnonymousConversationAllowed": false,
"lockedAgencies": true,
"showAskerProfile": false,
"isVideoCallAllowed": false,
"welcomeMessage": {
"sendWelcomeMessage": true,
"welcomeMessageText": "Lorem ipsum"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"isVideoCallAllowed": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"isVideoCallAllowed": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"sendSaveSessionDataMessage": true,
"initializeFeedbackChat": true,
"isPeerChat": true,
"isVideoCallAllowed": false,
"languageFormal": true,
"roles": {
"consultant": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"sendSaveSessionDataMessage": false,
"isSetEmailAllowed": true,
"showAskerProfile": true,
"isVideoCallAllowed": true,
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"sessionDataInitializing": {
Expand Down

0 comments on commit ed917d8

Please sign in to comment.