class for writing to Notification Hub