Closed tuxmartin closed 5 years ago
I‘ll look into this tomorrow - could you please resolve the merge conflict meanwhile?
@tuxmartin to solve the problem with short
:
We use GSON to serialize the POJOs to JSON so you can use @SerializedName("short")
to get the desired result - see as well: https://github.com/google/gson/blob/master/UserGuide.md#json-field-naming-support
@daniel-sc thank you. @SerializedName("short")
works great.
Hi, I'm trying to add support for
Attachment
andAttachment Field
.Attachment
works, but I don't know how to create POJO class forAttachment Field
object.Attachment Field
object needs paramshort
, which is Java reserved word. If I rename it to_short
, it doesn't work.https://rocket.chat/docs/developer-guides/rest-api/chat/postmessage/#attachment-field-objects
I nees something like convert
_short
toshort
before sending.I don't have no idea how to do it :-(
My testing code:
produces: https://ctrlv.cz/shots/2019/02/22/lSeB.png (print screen)
but I need something like this: https://raw.githubusercontent.com/scantem/redmine_rocketchat/assets/screenshot.png
as you can see,
a3
AttachmentField
are not working.Thanks for help!