Beispiel #1
0
        public async Task <bool> PushCallUnit(StandardPushCall call, int unitId, DepartmentCallPriority priority = null)
        {
            if (Config.SystemBehaviorConfig.DoNotBroadcast)
            {
                return(false);
            }

            if (call == null)
            {
                return(false);
            }

            string color = null;

            if (priority != null)
            {
                color = priority.Color;
            }

            await _unitNotificationProvider.SendAllNotifications(call.SubTitle, call.Title, unitId, string.Format("C{0}", call.CallId), ConvertCallPriorityToSound((int)call.Priority, priority), true, call.ActiveCallCount, color);

            return(true);
        }