Domanda

Ho impostato un evento con successo utilizzando

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

Poi ho letto con successo la registrazione dell'evento.

Questo funziona

myTitle = ret.getTitle().getPlainText()

Ma questo genera un errore

myTitle = ret.getContent().getPlainText()

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

Non c'è di meglio se mi rendono

myTitle = req.getContent().toString()

Tutte le idee che ho perso ??

È stato utile?

Soluzione

Prova:

myContent = ret.getTextContent()

o

myContent = ret.getPlainTextContent()
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top