예제 #1
0
        private static PageLink ConvertToLinks(dynamic page_links)
        {
            var links = new PageLink();

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

            return(links);
        }
예제 #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);
        }
예제 #3
0
 public ListMessageEventsResponse()
 {
     MessageEvents = new MessageEvent[] {};
     Links         = new PageLink();
 }
 public ListSuppressionResponse()
 {
     Suppressions = new Suppression[] { };
     Links        = new PageLink();
 }