All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lark.oapi.service.im.v1.model.ReplyMessageReqBody Maven / Gradle / Ivy

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

The newest version!
// Code generated by lark suite oapi sdk gen
/*
 * MIT License
 *
 * Copyright (c) 2022 Lark Technologies Pte. Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.lark.oapi.service.im.v1.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.im.v1.enums.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.SerializedName;
import com.lark.oapi.core.annotation.Body;
import com.lark.oapi.core.annotation.Path;
import com.lark.oapi.core.annotation.Query;

import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

import com.lark.oapi.core.utils.Strings;
import com.lark.oapi.core.response.BaseResponse;

public class ReplyMessageReqBody {
    /**
     * 消息内容 json 格式,格式说明参考: [发送消息Content](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)
     * 

示例值:{\"text\":\"Tom test content\"} */ @SerializedName("content") private String content; /** * 消息类型,包括:text、post、image、file、audio、media、sticker、interactive、share_card、share_user *

示例值:text */ @SerializedName("msg_type") private String msgType; /** * 是否以话题形式回复;若群聊已经是话题模式,则自动回复该条消息所在的话题 *

示例值:false */ @SerializedName("reply_in_thread") private Boolean replyInThread; /** * 由开发者生成的唯一字符串序列,用于回复消息请求去重;持有相同uuid的请求1小时内至多成功执行一次 *

示例值:a0d69e20-1dd1-458b-k525-dfeca4015204 */ @SerializedName("uuid") private String uuid; // builder 开始 public ReplyMessageReqBody() { } public ReplyMessageReqBody(Builder builder) { /** * 消息内容 json 格式,格式说明参考: [发送消息Content](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) *

示例值:{\"text\":\"Tom test content\"} */ this.content = builder.content; /** * 消息类型,包括:text、post、image、file、audio、media、sticker、interactive、share_card、share_user *

示例值:text */ this.msgType = builder.msgType; /** * 是否以话题形式回复;若群聊已经是话题模式,则自动回复该条消息所在的话题 *

示例值:false */ this.replyInThread = builder.replyInThread; /** * 由开发者生成的唯一字符串序列,用于回复消息请求去重;持有相同uuid的请求1小时内至多成功执行一次 *

示例值:a0d69e20-1dd1-458b-k525-dfeca4015204 */ this.uuid = builder.uuid; } public static Builder newBuilder() { return new Builder(); } public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public String getMsgType() { return this.msgType; } public void setMsgType(String msgType) { this.msgType = msgType; } public Boolean getReplyInThread() { return this.replyInThread; } public void setReplyInThread(Boolean replyInThread) { this.replyInThread = replyInThread; } public String getUuid() { return this.uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public static class Builder { /** * 消息内容 json 格式,格式说明参考: [发送消息Content](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) *

示例值:{\"text\":\"Tom test content\"} */ private String content; /** * 消息类型,包括:text、post、image、file、audio、media、sticker、interactive、share_card、share_user *

示例值:text */ private String msgType; /** * 是否以话题形式回复;若群聊已经是话题模式,则自动回复该条消息所在的话题 *

示例值:false */ private Boolean replyInThread; /** * 由开发者生成的唯一字符串序列,用于回复消息请求去重;持有相同uuid的请求1小时内至多成功执行一次 *

示例值:a0d69e20-1dd1-458b-k525-dfeca4015204 */ private String uuid; /** * 消息内容 json 格式,格式说明参考: [发送消息Content](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) *

示例值:{\"text\":\"Tom test content\"} * * @param content * @return */ public Builder content(String content) { this.content = content; return this; } /** * 消息类型,包括:text、post、image、file、audio、media、sticker、interactive、share_card、share_user *

示例值:text * * @param msgType * @return */ public Builder msgType(String msgType) { this.msgType = msgType; return this; } /** * 是否以话题形式回复;若群聊已经是话题模式,则自动回复该条消息所在的话题 *

示例值:false * * @param replyInThread * @return */ public Builder replyInThread(Boolean replyInThread) { this.replyInThread = replyInThread; return this; } /** * 由开发者生成的唯一字符串序列,用于回复消息请求去重;持有相同uuid的请求1小时内至多成功执行一次 *

示例值:a0d69e20-1dd1-458b-k525-dfeca4015204 * * @param uuid * @return */ public Builder uuid(String uuid) { this.uuid = uuid; return this; } public ReplyMessageReqBody build() { return new ReplyMessageReqBody(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy