private static PageLink ConvertToLinks(dynamic page_links)
        {
            var links = new PageLink();

            if (page_links != null)
            {
                links.Next = page_links.next;
            }

            return(links);
        }
Exemple #2
0
        private static PageLink ConvertToLinks(dynamic links)
        {
            var pageLink = new PageLink();

            if (links == null)
            {
                return(pageLink);
            }

            foreach (var link in links)
            {
                if (link.rel == "next")
                {
                    pageLink.Next = link.href;
                }
            }

            return(pageLink);
        }
Exemple #3
0
 public ListMessageEventsResponse()
 {
     MessageEvents = new MessageEvent[] {};
     Links         = new PageLink();
 }
 public ListSuppressionResponse()
 {
     Suppressions = new Suppression[] { };
     Links        = new PageLink();
 }