Esempio n. 1
0
        public void Can_Get_Comments_Show()
        {
            var service = new WeiboService(_consumerKey, _consumerSecret, _accessToken);
            ////var service = new WeiboService(_iphoneConsumerKey, _iphoneConsumerSecret, _iphoneAccessToken);

            var result = service.ListWeiboCommentsShow(3481474642286341);

            foreach (var item in result)
            {
                Console.WriteLine("Create at: {0} Screen name: {1} Text: {2} ", item.CreatedAt, item.User.ScreenName, item.Text);
                ////if (item.Annotations != null)
                ////{
                ////    foreach (var annotation in item.Annotations)
                ////    {
                ////        Console.WriteLine("Fid: {0}", annotation.Fid);
                ////    }
                ////}

                if (item.Status.Geo != null)
                {
                    Console.WriteLine("Type: {0} Latitude: {1} Longitude: {2}", item.Status.Geo.Type, item.Status.Geo.Coordinates.Latitude, item.Status.Geo.Coordinates.Longitude);
                }

                if (item.User != null)
                {
                    Console.WriteLine("Id: {0} Screen name: {1}", item.User.Id, item.User.ScreenName);
                }
            }

            Console.WriteLine("HasVisual: {0} Previous cursor: {1} Next cursor: {2} Total number: {3}", result.HasVisible, result.PreviousCursor, result.NextCursor, result.TotalNumbe);
        }