Hi
I am trying to create a friend request notification following the code snippit from the Quick Start Docs but there is something I just don't understand.
the code is
NotificationsController.Instance.SendNotification(
notification,
PortalSettings.PortalId,
new List<
RoleInfo
>(), // Pass here the list of roles or null if the notification is going to be sent to individual users only.
new List<
UserInfo
>(), // Pass here the list of users or null if the notification is going to be sent to roles only.
); // There is an overload that doesn't receive this parameter and uses Admin as sender.
I already have a list of userId defined here
private List<string> listOfFriends = new List<string>();
so I have done this
NotificationsController.Instance.SendNotification(notification, PortalSettings.PortalId,"", listOfFriends);
but I get invalid argument error.
How should this look?
Thanks
Mark