-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathCustomizationSettings.java
More file actions
930 lines (741 loc) · 31.3 KB
/
CustomizationSettings.java
File metadata and controls
930 lines (741 loc) · 31.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
package io.kommunicate.ui;
import io.kommunicate.ui.conversation.MobicomMessageTemplate;
import io.kommunicate.ui.kommunicate.models.KmFontModel;
import io.kommunicate.commons.json.JsonMarker;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* Created by sunil on 10/10/16.
*/
public class CustomizationSettings extends JsonMarker {
public static final int DEFAULT_MESSAGE_CHAR_LIMIT = 2000;
private Object customMessageBackgroundColor = "#e6e5ec";
private Object sentMessageBackgroundColor = "";
private Object startNewConversationButtonBackgroundColor = "";
private Object receivedMessageBackgroundColor = Arrays.asList("#e6e5ec", "#313131");
private Object sendButtonBackgroundColor = "";
private Object attachmentIconsBackgroundColor = "";
private Object chatBackgroundColorOrDrawable = Arrays.asList("#FFFFFF", "#000000");
private Object editTextBackgroundColorOrDrawable;
private Object editTextLayoutBackgroundColorOrDrawable;
private Object channelCustomMessageBgColor = Arrays.asList("#000000", "#FFFFFFFF");
private Object toolbarTitleColor = "#ffffff";
private Object toolbarSubtitleColor = "#ffffff";
private Object receiverNameTextColor = "#5C6677";
private Object sentContactMessageTextColor = "#5fba7d";
private Object receivedContactMessageTextColor = "#646262";
private Object sentMessageTextColor = "#FFFFFFFF";
private Object receivedMessageTextColor = Arrays.asList("#646262", "#FFFFFF");
private Object messageEditTextTextColor = Arrays.asList("#000000", "#FFFFFF");
private Object messageEditTextBackgroundColor = "";
private Object autoSuggestionButtonBackgroundColor = "";
private Object autoSuggestionButtonTextColor = "";
private Object sentMessageLinkTextColor = "#FFFFFFFF";
private Object receivedMessageLinkTextColor = "#5fba7d";
private Object messageEditTextHintTextColor = "#bdbdbd";
private Object typingTextColor;
private Object noConversationLabelTextColor = Arrays.asList("#000000", "#FFFFFFFF");
private Object conversationDateTextColor = Arrays.asList("#333333", "#FFFFFFFF");
private Object conversationDayTextColor = Arrays.asList("#333333", "#FFFFFFFF");
private Object messageTimeTextColor = "#ede6e6";
private Object channelCustomMessageTextColor = Arrays.asList("#000000", "#FFFFFFFF");
private Object sentMessageBorderColor = "";
private Object receivedMessageBorderColor = "#e6e5ec";
private Object channelCustomMessageBorderColor = "#cccccc";
private Object collapsingToolbarLayoutColor = "#5c5aa7";
private Object groupParticipantsTextColor = "#5c5aa7";
private Object groupDeleteButtonBackgroundColor = "#5c5aa7";
private Object groupExitButtonBackgroundColor = "#5c5aa7";
private Object adminTextColor = "#5c5aa7";
private Object adminBackgroundColor = "#FFFFFFFF";
private String attachCameraIconName = "applozic_ic_action_camera_new";
private Object adminBorderColor = "#5c5aa7";
private Object userNotAbleToChatTextColor = "#000000";
private String chatBackgroundImageName;
private String audioPermissionNotFoundMsg;
private String noConversationLabel = "You have no conversations";
private String noSearchFoundForChatMessages = "No conversation found";
private String restrictedWordMessage = "Restricted words are not allowed";
private boolean locationShareViaMap = true;
private boolean startNewFloatingButton = false;
private boolean startNewButton = false;
private boolean onlineStatusMasterList = true;
private boolean priceWidget;
private boolean startNewGroup = false;
private boolean imageCompression = false;
private boolean inviteFriendsInContactActivity = false;
private boolean registeredUserContactListCall = false;
private boolean createAnyContact = false;
private boolean showActionDialWithOutCalling = false;
private boolean profileLogoutButton = false;
private boolean userProfileFragment = false;
private boolean messageSearchOption = false;
private boolean conversationContactImageVisibility = true;
private boolean hideGroupAddMembersButton = false;
private boolean hideGroupNameUpdateButton = false;
private boolean hideGroupExitButton = false;
private boolean hideGroupRemoveMemberOption = false;
private boolean profileOption = false;
private boolean broadcastOption = false;
private boolean hideAttachmentButton = false;
private boolean groupUsersOnlineStatus = false;
private boolean refreshOption = false;
private boolean deleteOption = false;
private boolean blockOption = true;
private boolean muteOption = true;
private MobicomMessageTemplate messageTemplate;
private String logoutPackageName = "kommunicate.io.sample.MainActivity";
private boolean logoutOption = true;
private boolean logoutOptionFromConversation = true;
private int defaultGroupType = 2;
private boolean muteUserChatOption = false;
private String restrictedWordRegex;
private int totalRegisteredUserToFetch = 100;
private int maxAttachmentAllowed = 5;
private int maxAttachmentSizeAllowed = 30;
private int messageCharacterLimit = DEFAULT_MESSAGE_CHAR_LIMIT;
private int totalOnlineUsers = 0;
private Object themeColorPrimary;
private Object themeColorPrimaryDark;
private String editTextHintText = "";
private boolean replyOption = false;
private Object replyMessageLayoutSentMessageBackground = "#C0C0C0";
private Object replyMessageLayoutReceivedMessageBackground = "#F5F5F5";
private boolean groupInfoScreenVisible = true;
private boolean forwardOption = false;
private Boolean innerTimestampDesign = false;
private Object sentMessageCreatedAtTimeColor = "";
private Object receivedMessageCreatedAtTimeColor = "";
private boolean showStartNewConversation = true;
private boolean enableAwayMessage = true;
private Object awayMessageTextColor = Arrays.asList("#A9A4A4", "#FFFFFFFF");
private boolean isAgentApp = false;
private boolean hideGroupSubtitle = false;
private boolean disableGlobalStoragePermission = true;
private boolean launchChatFromProfilePicOrName = false;
private boolean useDeviceDefaultLanguage = true;
private boolean showTypingIndicatorWhileFetchingResponse = false;
private Map<String, Boolean> filterGallery;
private boolean enableShareConversation = false;
private Object messageStatusIconColor = "";
private float[] sentMessageCornerRadii;
private float[] receivedMessageCornerRadii;
private KmFontModel fontModel;
private boolean isFaqOptionEnabled = false;
private boolean[] enableFaqOption = {true, false};
private Object toolbarColor = "";
private Object statusBarColor = "";
private Object richMessageThemeColor = "";
private Map<String, Boolean> attachmentOptions;
private KmSpeechSetting textToSpeech;
private KmSpeechSetting speechToText;
private boolean restrictMessageTypingWithBots = false;
private Map<String, Boolean> hidePostCTA;
private boolean oneTimeRating;
private boolean restartConversationButtonVisibility = true;
private boolean rateConversationMenuOption;
private boolean javaScriptEnabled = true;
private boolean hideChatInHelpcenter = true;
private boolean showBackButtonOnFaqPage = true;
private boolean showStatusBarOnFaqPage = true;
private boolean checkboxAsMultipleButton = false;
private String staticTopMessage = "";
private String staticTopIcon = "";
private String menuIconOnConversationScreen = "";
private boolean toolbarTitleCenterAligned = false;
private boolean disableFormPostSubmit = false;
private Object chatBarTopLineViewColor = "";
private boolean isMultipleAttachmentSelectionEnabled = false;
private boolean useDarkMode = true;
private boolean isImageCompressionEnabled = false;
private int minimumCompressionThresholdForImagesInMB = 5;
private boolean isVideoCompressionEnabled = false;
private int minimumCompressionThresholdForVideosInMB = 5;
private boolean hideAttachmentOptionsWithBots = false;
private boolean hideChatBarWithBots = false;
private boolean enableEdgeToEdge = true;
public boolean isEnableEdgeToEdge() {
return enableEdgeToEdge;
}
public void setEnableEdgeToEdge(boolean enableEdgeToEdge) {
this.enableEdgeToEdge = enableEdgeToEdge;
}
public boolean getUseDarkMode() {
return useDarkMode;
}
public String getStaticTopMessage() {
return staticTopMessage;
}
public String getStaticTopIcon() {
return staticTopIcon;
}
public String getMenuIconOnConversationScreen() {
return menuIconOnConversationScreen;
}
public boolean isCheckboxAsMultipleButton() {
return checkboxAsMultipleButton;
}
public boolean isRateConversationMenuOption() {
return rateConversationMenuOption;
}
public boolean isRestartConversationButtonVisibility() {
return restartConversationButtonVisibility;
}
public boolean isJavaScriptEnabled() {
return javaScriptEnabled;
}
public Boolean getInnerTimestampDesign() {
return innerTimestampDesign;
}
public boolean isOneTimeRating() {
return oneTimeRating;
}
public void setInnerTimestampDesign(Boolean innerTimestampDesign) {
this.innerTimestampDesign = innerTimestampDesign;
}
public String getNoConversationLabel() {
return noConversationLabel;
}
public List<String> getCustomMessageBackgroundColor() {
return getColorList(customMessageBackgroundColor);
}
public List<String> getSentMessageBackgroundColor() {
return getColorList(sentMessageBackgroundColor);
}
public List<String> getReceivedMessageBackgroundColor() {
return getColorList(receivedMessageBackgroundColor);
}
public boolean isOnlineStatusMasterList() {
return onlineStatusMasterList;
}
public boolean isPriceWidget() {
return priceWidget;
}
public List<String> getSendButtonBackgroundColor() {
return getColorList(sendButtonBackgroundColor);
}
public boolean isImageCompression() {
return imageCompression;
}
public boolean isInviteFriendsInContactActivity() {
return inviteFriendsInContactActivity;
}
public List<String> getAttachmentIconsBackgroundColor() {
return getColorList(attachmentIconsBackgroundColor);
}
public boolean isLocationShareViaMap() {
return locationShareViaMap;
}
public boolean isConversationContactImageVisibility() {
return conversationContactImageVisibility;
}
public List<String> getSentContactMessageTextColor() {
return getColorList(sentContactMessageTextColor);
}
public List<String> getReceivedContactMessageTextColor() {
return getColorList(receivedContactMessageTextColor);
}
public List<String> getSentMessageTextColor() {
return getColorList(sentMessageTextColor);
}
public List<String> getReceivedMessageTextColor() {
return getColorList(receivedMessageTextColor);
}
public List<String> getSentMessageBorderColor() {
return getColorList(sentMessageBorderColor);
}
public List<String> getReceivedMessageBorderColor() {
return getColorList(receivedMessageBorderColor);
}
public List<String> getChatBackgroundColorOrDrawable() {
return getColorList(chatBackgroundColorOrDrawable);
}
public List<String> getMessageEditTextTextColor() {
return getColorList(messageEditTextTextColor);
}
public String getAudioPermissionNotFoundMsg() {
return audioPermissionNotFoundMsg;
}
public boolean isRegisteredUserContactListCall() {
return registeredUserContactListCall;
}
public boolean isCreateAnyContact() {
return createAnyContact;
}
public boolean isShowActionDialWithOutCalling() {
return showActionDialWithOutCalling;
}
public List<String> getSentMessageLinkTextColor() {
return getColorList(sentMessageLinkTextColor);
}
public List<String> getReceivedMessageLinkTextColor() {
return getColorList(receivedMessageLinkTextColor);
}
public List<String> getMessageEditTextHintTextColor() {
return getColorList(messageEditTextHintTextColor);
}
public boolean isHideGroupAddMembersButton() {
return hideGroupAddMembersButton;
}
public boolean isHideGroupNameUpdateButton() {
return hideGroupNameUpdateButton;
}
public boolean isHideGroupExitButton() {
return hideGroupExitButton;
}
public boolean isHideGroupRemoveMemberOption() {
return hideGroupRemoveMemberOption;
}
public List<String> getEditTextBackgroundColorOrDrawable() {
return getColorList(editTextBackgroundColorOrDrawable);
}
public List<String> getEditTextLayoutBackgroundColorOrDrawable() {
return getColorList(editTextLayoutBackgroundColorOrDrawable);
}
public List<String> getTypingTextColor() {
return getColorList(typingTextColor);
}
public boolean isProfileOption() {
return profileOption;
}
public List<String> getNoConversationLabelTextColor() {
return getColorList(noConversationLabelTextColor);
}
public List<String> getConversationDateTextColor() {
return getColorList(conversationDateTextColor);
}
public List<String> getConversationDayTextColor() {
return getColorList(conversationDayTextColor);
}
public List<String> getMessageTimeTextColor() {
return getColorList(messageTimeTextColor);
}
public List<String> getChannelCustomMessageBgColor() {
return getColorList(channelCustomMessageBgColor);
}
public List<String> getChannelCustomMessageBorderColor() {
return getColorList(channelCustomMessageBorderColor);
}
public List<String> getChannelCustomMessageTextColor() {
return getColorList(channelCustomMessageTextColor);
}
public String getNoSearchFoundForChatMessages() {
return noSearchFoundForChatMessages;
}
public boolean isProfileLogoutButton() {
return profileLogoutButton;
}
public boolean isUserProfileFragment() {
return userProfileFragment;
}
public boolean isMessageSearchOption() {
return messageSearchOption;
}
public int getTotalRegisteredUserToFetch() {
return totalRegisteredUserToFetch;
}
public int getMaxAttachmentAllowed() {
return maxAttachmentAllowed;
}
public int getMaxAttachmentSizeAllowed() {
return maxAttachmentSizeAllowed;
}
public int getTotalOnlineUsers() {
return totalOnlineUsers;
}
public List<String> getCollapsingToolbarLayoutColor() {
return getColorList(collapsingToolbarLayoutColor);
}
public List<String> getGroupParticipantsTextColor() {
return getColorList(groupParticipantsTextColor);
}
public List<String> getGroupExitButtonBackgroundColor() {
return getColorList(groupExitButtonBackgroundColor);
}
public List<String> getGroupDeleteButtonBackgroundColor() {
return getColorList(groupDeleteButtonBackgroundColor);
}
public List<String> getAdminTextColor() {
return getColorList(adminTextColor);
}
public List<String> getAdminBackgroundColor() {
return getColorList(adminBackgroundColor);
}
public String getAttachCameraIconName() {
return attachCameraIconName;
}
public List<String> getAdminBorderColor() {
return getColorList(adminBorderColor);
}
public List<String> getUserNotAbleToChatTextColor() {
return getColorList(userNotAbleToChatTextColor);
}
public String getChatBackgroundImageName() {
return chatBackgroundImageName;
}
public Map<String, Boolean> getAttachmentOptions() {
return attachmentOptions;
}
public void setAttachmentOptions(Map<String, Boolean> attachmentOptions) {
this.attachmentOptions = attachmentOptions;
}
public boolean isHideAttachmentButton() {
return hideAttachmentButton;
}
public void setHideAttachmentButton(boolean hideAttachmentButton) {
this.hideAttachmentButton = hideAttachmentButton;
}
public String getRestrictedWordMessage() {
return restrictedWordMessage;
}
public void setRestrictedWordMessage(String restrictedWordMessage) {
this.restrictedWordMessage = restrictedWordMessage;
}
public boolean isLaunchChatFromProfilePicOrName() {
return launchChatFromProfilePicOrName;
}
public boolean isGroupUsersOnlineStatus() {
return groupUsersOnlineStatus;
}
public boolean isRefreshOption() {
return refreshOption;
}
public void setRefreshOption(boolean refreshOption) {
this.refreshOption = refreshOption;
}
public boolean isDeleteOption() {
return deleteOption;
}
public void setDeleteOption(boolean deleteOption) {
this.deleteOption = deleteOption;
}
public boolean isBlockOption() {
return blockOption;
}
public void setBlockOption(boolean blockOption) {
this.blockOption = blockOption;
}
public boolean isMuteOption() {
return muteOption;
}
public void setMuteOption(boolean muteOption) {
this.muteOption = muteOption;
}
public boolean isLogoutOption() {
return logoutOption;
}
public void setLogout(boolean logoutOption) {
this.logoutOption = logoutOption;
}
public boolean isLogoutOptionFromConversation() {
return logoutOptionFromConversation;
}
public void setLogoutOptionFromConversation(boolean logoutOptionFromConversation) {
this.logoutOptionFromConversation = logoutOptionFromConversation;
}
public String getLogoutPackage() {
return logoutPackageName;
}
public void setLogoutPackageName(String logoutPackageName) {
this.logoutPackageName = logoutPackageName;
}
public List<String> getThemeColorPrimary() {
return getColorList(themeColorPrimary);
}
public List<String> getThemeColorPrimaryDark() {
return getColorList(themeColorPrimaryDark);
}
public String getEditTextHintText() {
return editTextHintText;
}
public boolean isReplyOption() {
return replyOption;
}
public void setReplyOption(boolean replyOption) {
this.replyOption = replyOption;
}
public List<String> getReplyMessageLayoutSentMessageBackground() {
return getColorList(replyMessageLayoutSentMessageBackground);
}
public List<String> getReplyMessageLayoutReceivedMessageBackground() {
return getColorList(replyMessageLayoutReceivedMessageBackground);
}
public void setUserChatMuteOption(boolean muteUserChatOption) {
this.muteUserChatOption = muteUserChatOption;
}
public boolean isMuteUserChatOption() {
return muteUserChatOption;
}
public boolean isGroupInfoScreenVisible() {
return groupInfoScreenVisible;
}
public boolean isForwardOption() {
return forwardOption;
}
public void setForwardOption(boolean forwardOption) {
this.forwardOption = forwardOption;
}
public int getDefaultGroupType() {
return defaultGroupType;
}
public void setDefaultGroupType(int defaultGroupType) {
this.defaultGroupType = defaultGroupType;
}
public void setMessageTemplate(MobicomMessageTemplate messageTemplate) {
this.messageTemplate = messageTemplate;
}
public int getMessageCharacterLimit() {
return messageCharacterLimit;
}
public MobicomMessageTemplate getMessageTemplate() {
return messageTemplate;
}
public List<String> getSentMessageCreatedAtTimeColor() {
return getColorList(sentMessageCreatedAtTimeColor);
}
public void setSentMessageCreatedAtTimeColor(String sentMessageCreatedAtTimeColor) {
this.sentMessageCreatedAtTimeColor = sentMessageCreatedAtTimeColor;
}
public List<String> getReceivedMessageCreatedAtTimeColor() {
return getColorList(receivedMessageCreatedAtTimeColor);
}
public void setReceivedMessageCreatedAtTimeColor(String receivedMessageCreatedAtTimeColor) {
this.receivedMessageCreatedAtTimeColor = receivedMessageCreatedAtTimeColor;
}
public List<String> getStartNewConversationButtonBackgroundColor() {
return getColorList(startNewConversationButtonBackgroundColor);
}
public List<String> getMessageEditTextBackgroundColor() {
return getColorList(messageEditTextBackgroundColor);
}
public List<String> getAutoSuggestionButtonBackgroundColor() {
return getColorList(autoSuggestionButtonBackgroundColor);
}
public List<String> getAutoSuggestionButtonTextColor() {
return getColorList(autoSuggestionButtonTextColor);
}
public boolean isShowStartNewConversation() {
return showStartNewConversation;
}
public void setShowStartNewConversation(boolean showStartNewConversation) {
this.showStartNewConversation = showStartNewConversation;
}
public boolean isEnableAwayMessage() {
return enableAwayMessage;
}
public void setEnableAwayMessage(boolean enableAwayMessage) {
this.enableAwayMessage = enableAwayMessage;
}
public List<String> getAwayMessageTextColor() {
return getColorList(awayMessageTextColor);
}
public void setAwayMessageTextColor(String awayMessageTextColor) {
this.awayMessageTextColor = awayMessageTextColor;
}
public boolean isAgentApp() {
return isAgentApp;
}
public boolean isUseDeviceDefaultLanguage() {
return useDeviceDefaultLanguage;
}
public boolean isShowTypingIndicatorWhileFetchingResponse() {
return showTypingIndicatorWhileFetchingResponse;
}
public boolean isGroupSubtitleHidden() {
return hideGroupSubtitle;
}
public boolean isGlobalStoragePermissionDisabled() {
return disableGlobalStoragePermission;
}
public Map<String, Boolean> getFilterGallery() {
return filterGallery;
}
public void setFilterGallery(Map<String, Boolean> filterGallery) {
this.filterGallery = filterGallery;
}
public boolean isEnableShareConversation() {
return enableShareConversation;
}
public void setEnableShareConversation(boolean enableShareConversation) {
this.enableShareConversation = enableShareConversation;
}
public float[] getSentMessageCornerRadii() {
return sentMessageCornerRadii;
}
public float[] getReceivedMessageCornerRadii() {
return receivedMessageCornerRadii;
}
public String getLogoutPackageName() {
return logoutPackageName;
}
public KmFontModel getFontModel() {
return fontModel;
}
public boolean isFaqOptionEnabled() {
return isFaqOptionEnabled;
}
public boolean isFaqOptionEnabled(int screen) {
return enableFaqOption[screen - 1];
}
public List<String> getMessageStatusIconColor() {
return getColorList(messageStatusIconColor);
}
public void setMessageStatusIconColor(String messageStatusIconColor) {
this.messageStatusIconColor = messageStatusIconColor;
}
public String getRestrictedWordRegex() {
return restrictedWordRegex;
}
public List<String> getToolbarTitleColor() {
return getColorList(toolbarTitleColor);
}
public List<String> getChatBarTopLineViewColor() {
return getColorList(chatBarTopLineViewColor);
}
public void setToolbarTitleColor(String toolbarTitleColor) {
this.toolbarTitleColor = toolbarTitleColor;
}
public List<String> getToolbarSubtitleColor() {
return getColorList(toolbarSubtitleColor);
}
public void setToolbarSubtitleColor(String toolbarSubtitleColor) {
this.toolbarSubtitleColor = toolbarSubtitleColor;
}
public List<String> getToolbarColor() {
return getColorList(toolbarColor);
}
public List<String> getStatusBarColor() {
return getColorList(statusBarColor);
}
public List<String> getRichMessageThemeColor() {
return getColorList(richMessageThemeColor);
}
public boolean isRestrictMessageTypingWithBots() {
return restrictMessageTypingWithBots;
}
public KmSpeechSetting getTextToSpeech() {
return textToSpeech == null ? new KmSpeechSetting() : textToSpeech;
}
public KmSpeechSetting getSpeechToText() {
return speechToText == null ? new KmSpeechSetting() : speechToText;
}
public List<String> getReceiverNameTextColor() {
return getColorList(receiverNameTextColor);
}
public Map<String, Boolean> isHidePostCTA() {
return hidePostCTA;
}
public boolean isHideChatInHelpcenter() {
return hideChatInHelpcenter;
}
public boolean isShowBackButtonOnFaqPage() {
return showBackButtonOnFaqPage;
}
public boolean isShowStatusBarOnFaqPage() {
return showStatusBarOnFaqPage;
}
public boolean isToolbarTitleCenterAligned() {
return toolbarTitleCenterAligned;
}
public boolean isDisableFormPostSubmit() {
return disableFormPostSubmit;
}
public boolean isMultipleAttachmentSelectionEnabled() {
return isMultipleAttachmentSelectionEnabled;
}
private List<String> getColorList(Object color) {
if (color instanceof String) {
return Arrays.asList((String) color, (String) color);
} else if (color instanceof List) {
return (List<String>) color;
}
return Arrays.asList("", "");
}
public boolean isImageCompressionEnabled() {
return isImageCompressionEnabled;
}
public boolean isVideoCompressionEnabled() {
return isVideoCompressionEnabled;
}
public int getMinimumCompressionThresholdForImagesInMB() {
return minimumCompressionThresholdForImagesInMB;
}
public int getMinimumCompressionThresholdForVideosInMB() {
return minimumCompressionThresholdForVideosInMB;
}
public boolean isHideAttachmentOptionsWithBots() {
return hideAttachmentOptionsWithBots;
}
public boolean isHideChatBarWithBots() {
return hideChatBarWithBots;
}
@Override
public String toString() {
return "AlCustomizationSettings{" +
"customMessageBackgroundColor='" + customMessageBackgroundColor + '\'' +
", sentMessageBackgroundColor='" + sentMessageBackgroundColor + '\'' +
", messageEditTextBackgroundColor='" + messageEditTextBackgroundColor + '\'' +
", chatBarTopLineViewColor='" + chatBarTopLineViewColor + '\'' +
", autoSuggestionButtonBackgroundColor='" + autoSuggestionButtonBackgroundColor + '\'' +
", startNewConversationButtonBackgroundColor='" + startNewConversationButtonBackgroundColor + '\'' +
", receivedMessageBackgroundColor='" + receivedMessageBackgroundColor + '\'' +
", sendButtonBackgroundColor='" + sendButtonBackgroundColor + '\'' +
", attachmentIconsBackgroundColor='" + attachmentIconsBackgroundColor + '\'' +
", chatBackgroundColorOrDrawable='" + chatBackgroundColorOrDrawable + '\'' +
", editTextBackgroundColorOrDrawable='" + editTextBackgroundColorOrDrawable + '\'' +
", editTextLayoutBackgroundColorOrDrawable='" + editTextLayoutBackgroundColorOrDrawable + '\'' +
", channelCustomMessageBgColor='" + channelCustomMessageBgColor + '\'' +
", sentContactMessageTextColor='" + sentContactMessageTextColor + '\'' +
", receivedContactMessageTextColor='" + receivedContactMessageTextColor + '\'' +
", sentMessageTextColor='" + sentMessageTextColor + '\'' +
", receivedMessageTextColor='" + receivedMessageTextColor + '\'' +
", messageEditTextTextColor='" + messageEditTextTextColor + '\'' +
", sentMessageLinkTextColor='" + sentMessageLinkTextColor + '\'' +
", receivedMessageLinkTextColor='" + receivedMessageLinkTextColor + '\'' +
", messageEditTextHintTextColor='" + messageEditTextHintTextColor + '\'' +
", typingTextColor='" + typingTextColor + '\'' +
", noConversationLabelTextColor='" + noConversationLabelTextColor + '\'' +
", conversationDateTextColor='" + conversationDateTextColor + '\'' +
", conversationDayTextColor='" + conversationDayTextColor + '\'' +
", messageTimeTextColor='" + messageTimeTextColor + '\'' +
", channelCustomMessageTextColor='" + channelCustomMessageTextColor + '\'' +
", sentMessageBorderColor='" + sentMessageBorderColor + '\'' +
", receivedMessageBorderColor='" + receivedMessageBorderColor + '\'' +
", channelCustomMessageBorderColor='" + channelCustomMessageBorderColor + '\'' +
", audioPermissionNotFoundMsg='" + audioPermissionNotFoundMsg + '\'' +
", noConversationLabel='" + noConversationLabel + '\'' +
", noSearchFoundForChatMessages='" + noSearchFoundForChatMessages + '\'' +
", locationShareViaMap=" + locationShareViaMap +
", startNewFloatingButton=" + startNewFloatingButton +
", startNewButton=" + startNewButton +
", onlineStatusMasterList=" + onlineStatusMasterList +
", priceWidget=" + priceWidget +
", startNewGroup=" + startNewGroup +
", imageCompression=" + imageCompression +
", inviteFriendsInContactActivity=" + inviteFriendsInContactActivity +
", registeredUserContactListCall=" + registeredUserContactListCall +
", createAnyContact=" + createAnyContact +
", showActionDialWithOutCalling=" + showActionDialWithOutCalling +
", profileLogoutButton=" + profileLogoutButton +
", userProfileFragment=" + userProfileFragment +
", messageSearchOption=" + messageSearchOption +
", conversationContactImageVisibility=" + conversationContactImageVisibility +
", hideGroupAddMembersButton=" + hideGroupAddMembersButton +
", hideGroupNameUpdateButton=" + hideGroupNameUpdateButton +
", hideGroupExitButton=" + hideGroupExitButton +
", hideGroupRemoveMemberOption=" + hideGroupRemoveMemberOption +
", profileOption=" + profileOption +
", totalRegisteredUserToFetch=" + totalRegisteredUserToFetch +
", maxAttachmentAllowed=" + maxAttachmentAllowed +
", maxAttachmentSizeAllowed=" + maxAttachmentSizeAllowed +
", totalOnlineUsers=" + totalOnlineUsers +
", messageCharacterLimit" + messageCharacterLimit +
", toolbarTitleColor=" + toolbarTitleColor +
", toolbarSubtitleColor=" + toolbarSubtitleColor +
", useDeviceDefaultLanguage=" + useDeviceDefaultLanguage +
", showTypingIndicatorWhileFetchingResponse=" + showTypingIndicatorWhileFetchingResponse +
", hideChatBarWithBots=" + hideChatBarWithBots +
'}';
}
}