示例#1
0
 /// <summary>
 /// overloaded to create typed version of Query
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>MessagesFeed</returns>
 public MessagesFeed Query(MessagesQuery feedQuery)
 {
     return base.Query(feedQuery) as MessagesFeed;
 }
        public void QueryMessages()
        {
            WebmasterToolsService service = new WebmasterToolsService(this.ApplicationName);
            service.Credentials = new GDataCredentials(this.userName, this.passWord);

            MessagesQuery feedQuery = new MessagesQuery();
            MessagesFeed feed = service.Query(feedQuery);

            Assert.GreaterOrEqual(feed.Entries.Count, 0);

            foreach (MessagesEntry entry in feed.Entries)
            {
                Assert.IsNotNull(entry.Id);
            }
        }
示例#3
0
 /// <summary>
 /// overloaded to create typed version of Query
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>MessagesFeed</returns>
 public MessagesFeed Query(MessagesQuery feedQuery)
 {
     return(base.Query(feedQuery) as MessagesFeed);
 }