Question

I have set an event successfully using

myEntry.setTitle(new PlainTextConstruct("TEST"))
myEntry.setContent(new PlainTextConstruct("See how much text will fit in there"))

Then I have successfully read the event record.

This works

myTitle = ret.getTitle().getPlainText()

But this throws an error

myTitle = ret.getContent().getPlainText()

groovy.lang.MissingMethodException: No signature of method:
com.google.gdata.data.TextContent.getPlainText()

No better if I make it

myTitle = req.getContent().toString()

Any ideas what I have missed??

Was it helpful?

Solution

Try:

myContent = ret.getTextContent()

or:

myContent = ret.getPlainTextContent()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top