读取 Google 日历值

发布于 2024-09-27 05:59:10 字数 577 浏览 3 评论 0原文

成功设置了事件

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

我已使用“然后我已成功读取事件记录”

。这有效

myTitle = ret.getTitle().getPlainText()

,但这会引发错误,

myTitle = ret.getContent().getPlainText()

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

如果我做到了,也不会更好

myTitle = req.getContent().toString()

我错过了什么想法吗?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七堇年 2024-10-04 05:59:10

尝试:

myContent = ret.getTextContent()

或:

myContent = ret.getPlainTextContent()

Try:

myContent = ret.getTextContent()

or:

myContent = ret.getPlainTextContent()
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文