ramusagar / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Body in 'MessagesEntry' is alwys null #661

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Query a 'MessagesEntry'
2.Look at the body field

What is the expected output? What do you see instead?

The body of the message in the body field

Please use labels and text to provide additional information.

The problem occur because a simple bug.
the code tries to get the value of the element instead of the attribute.
I made a temporary fix in the 'MessagesEntry' class
I changed the getter of the Body property as so

var extension = 
getWebmasterToolsExtension(WebmasterToolsNameTable.XmlBodyElement);
var result = extension.Attributes["body"] as string;
return result;

Original issue reported on code.google.com by Yacov.Go...@gmail.com on 28 May 2013 at 10:17