public class Attachment extends Object implements Serializable
| 构造器和说明 |
|---|
Attachment() |
| 限定符和类型 | 方法和说明 |
|---|---|
Attachment |
setFile(File file)
Sets file.
|
Attachment |
setImage(Image image)
Sets image.
|
Attachment |
setLink(Link link)
Sets link.
|
Attachment |
setMiniProgram(MiniProgram miniProgram)
Sets mini program.
|
Attachment |
setVideo(Video video)
Sets video.
|
public Attachment setImage(Image image)
image - the imagepublic Attachment setLink(Link link)
link - the linkpublic Attachment setMiniProgram(MiniProgram miniProgram)
miniProgram - the mini programpublic Attachment setVideo(Video video)
video - the videopublic Attachment setFile(File file)
file - the fileCopyright © 2024. All rights reserved.