/// <summary> /// Assigns a result to a list of notifications. /// </summary> /// <param name="notifications"></param> /// <param name="result"></param> protected void BaseProviderAssignResults(IEnumerable <PushEasyNotification> notifications, PushEasyResult result) { foreach (var notification in notifications) { notification.Result = result; } }
/// <summary> /// Assigns a result to a notification. /// </summary> /// <param name="notification"></param> /// <param name="result"></param> /// <returns></returns> protected Dictionary <PushEasyNotification, PushEasyResult> BaseProviderAssignResult(PushEasyNotification notification, PushEasyResult result) { var results = new Dictionary <PushEasyNotification, PushEasyResult>(); results.Add(notification, result); return(results); }