+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / API-Referenz wrong return value

API-Referenz wrong return value

2 posts, 0 answered
  1. DPC David
    DPC David avatar
    26 posts
    Registered:
    28 Dec 2009
    13 May 2010
    Link to this post
    Hi

    i didn't know where to put this post, so sorry if it is not in the correct thread. I think there is a little Bug in the API-Referenz:
    http://www.sitefinity.com/help/developer-manual/telerik.notifications-telerik.notifications.newsletters.datamanager-getsubscribergroupsofsubscriber.html

    The return value is mentioned as Telerik.Newsletter.IGroup but it is Telerik.Newsletter.IGroupSubscriber. I noticed this while codeing this...

    DataManager oNLManager = new DataManager();
    Guid oGroupID = new Guid(sGruppenID);
    IList liSubscriberGroups = oNLManager.GetSubscriberGroupsOfSubscriber(oSubscriber.Email);
      foreach (IGroupSubscriber  oGroup in liSubscriberGroups)
      {
          if (oGroup.GroupId == oGroupID)
          {
              oNLManager.DeleteGroupSubscriberRelation(oGroupID, oSubscriber.SubscriberId);   
              break;
            }
        }                      

    Hope it helps supporting this great forum

    Regards David        
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 May 2010
    Link to this post
    Hello DPC David,

    Yes, this is not correct the items are of type IGroupSubscriber. Here is a post where another user had similar problem. We are in process of migration the old manual to a new one and the API reference will be updated.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered