-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from gggmwei/develop
update DocumentParameter、ImageParameter、VideoParameter
- Loading branch information
Showing
4 changed files
with
74 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.whatsapp.api.domain.messages; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.*; | ||
|
||
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
@Builder | ||
@JsonInclude(NON_NULL) | ||
public class Media { | ||
/** | ||
* Required when type is an image, audio, document, or video and you are not using a link. | ||
* The media object ID. For more information, see Get Media ID. | ||
* */ | ||
private String id; | ||
/** | ||
* Required when type is audio, document, image, sticker, or video and you are not using an uploaded media ID. | ||
* The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. caption Optional. | ||
*/ | ||
private String link; | ||
|
||
/** | ||
* Describes the specified image, video, or document media. Do not use it with audio media. | ||
*/ | ||
private String caption; | ||
|
||
/** | ||
* Describes the filename for the specific document. Use only with document media. | ||
*/ | ||
private String filename; | ||
|
||
/** | ||
* 是否是语音 | ||
*/ | ||
private Boolean voice; | ||
|
||
/** | ||
* 文件类型 | ||
*/ | ||
private String mimeType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters