Пример #1
0
        protected async Task Send(List <string> playerIds, NotificationMessage model, MobileNotificationSettings settings, NotificationOptions requestModel, bool isAdminNotification = false)
        {
            if (playerIds == null || !playerIds.Any())
            {
                return;
            }
            var response = await _api.PushNotification(playerIds, model.Message, isAdminNotification, requestModel.RequestId, (int)requestModel.RequestType);

            _logger.LogDebug("Sent message to {0} recipients with message id {1}", response.recipients, response.id);
        }
Пример #2
0
        protected async Task Send(List <string> playerIds, NotificationMessage model, MobileNotificationSettings settings)
        {
            if (!playerIds.Any())
            {
                return;
            }
            var response = await _api.PushNotification(playerIds, model.Message);

            _logger.LogDebug("Sent message to {0} recipients with message id {1}", response.recipients, response.id);
        }