public static void SetMailingData(this NotificationInfo notificationInfo, [NotNull] string subject, [CanBeNull] string body) { notificationInfo.SetDataValue(NotificationProviderMailingConsts.NotificationInfoSubjectPropertyName, subject); notificationInfo.SetDataValue(NotificationProviderMailingConsts.NotificationInfoBodyPropertyName, body); }
public static void SetSmsData(this NotificationInfo notificationInfo, [NotNull] string text, [NotNull] IDictionary <string, object> properties) { notificationInfo.SetDataValue(NotificationProviderSmsConsts.NotificationInfoTextPropertyName, text); notificationInfo.SetDataValue(NotificationProviderSmsConsts.NotificationInfoPropertiesPropertyName, properties); }