문제

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??

도움이 되었습니까?

해결책

Try:

myContent = ret.getTextContent()

or:

myContent = ret.getPlainTextContent()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top