
com.lark.oapi.service.drive.v1.model.FileComment Maven / Gradle / Ivy
// 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.drive.v1.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.drive.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 FileComment {
/**
* 评论ID(创建新评论可不填;如填写,则视为回复已有评论)
* 示例值:6916106822734512356
*/
@SerializedName("comment_id")
private String commentId;
/**
* 用户ID
*
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
*/
@SerializedName("user_id")
private String userId;
/**
* 创建时间
*
示例值:1610281603
*/
@SerializedName("create_time")
private Integer createTime;
/**
* 更新时间
*
示例值:1610281603
*/
@SerializedName("update_time")
private Integer updateTime;
/**
* 是否已解决
*
示例值:false
*/
@SerializedName("is_solved")
private Boolean isSolved;
/**
* 解决评论时间
*
示例值:1610281603
*/
@SerializedName("solved_time")
private Integer solvedTime;
/**
* 解决评论者的用户ID
*
示例值:null
*/
@SerializedName("solver_user_id")
private String solverUserId;
/**
* 是否有更多回复
*
示例值:false
*/
@SerializedName("has_more")
private Boolean hasMore;
/**
* 回复分页标记
*
示例值:6916106822734512356
*/
@SerializedName("page_token")
private String pageToken;
/**
* 是否是全文评论
*
示例值:true
*/
@SerializedName("is_whole")
private Boolean isWhole;
/**
* 如果是局部评论,引用字段
*
示例值:划词评论引用内容
*/
@SerializedName("quote")
private String quote;
/**
* 评论里的回复列表
*
示例值:
*/
@SerializedName("reply_list")
private ReplyList replyList;
// builder 开始
public FileComment() {
}
public FileComment(Builder builder) {
/**
* 评论ID(创建新评论可不填;如填写,则视为回复已有评论)
*
示例值:6916106822734512356
*/
this.commentId = builder.commentId;
/**
* 用户ID
*
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
*/
this.userId = builder.userId;
/**
* 创建时间
*
示例值:1610281603
*/
this.createTime = builder.createTime;
/**
* 更新时间
*
示例值:1610281603
*/
this.updateTime = builder.updateTime;
/**
* 是否已解决
*
示例值:false
*/
this.isSolved = builder.isSolved;
/**
* 解决评论时间
*
示例值:1610281603
*/
this.solvedTime = builder.solvedTime;
/**
* 解决评论者的用户ID
*
示例值:null
*/
this.solverUserId = builder.solverUserId;
/**
* 是否有更多回复
*
示例值:false
*/
this.hasMore = builder.hasMore;
/**
* 回复分页标记
*
示例值:6916106822734512356
*/
this.pageToken = builder.pageToken;
/**
* 是否是全文评论
*
示例值:true
*/
this.isWhole = builder.isWhole;
/**
* 如果是局部评论,引用字段
*
示例值:划词评论引用内容
*/
this.quote = builder.quote;
/**
* 评论里的回复列表
*
示例值:
*/
this.replyList = builder.replyList;
}
public static Builder newBuilder() {
return new Builder();
}
public String getCommentId() {
return this.commentId;
}
public void setCommentId(String commentId) {
this.commentId = commentId;
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public Integer getCreateTime() {
return this.createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Integer getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(Integer updateTime) {
this.updateTime = updateTime;
}
public Boolean getIsSolved() {
return this.isSolved;
}
public void setIsSolved(Boolean isSolved) {
this.isSolved = isSolved;
}
public Integer getSolvedTime() {
return this.solvedTime;
}
public void setSolvedTime(Integer solvedTime) {
this.solvedTime = solvedTime;
}
public String getSolverUserId() {
return this.solverUserId;
}
public void setSolverUserId(String solverUserId) {
this.solverUserId = solverUserId;
}
public Boolean getHasMore() {
return this.hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public String getPageToken() {
return this.pageToken;
}
public void setPageToken(String pageToken) {
this.pageToken = pageToken;
}
public Boolean getIsWhole() {
return this.isWhole;
}
public void setIsWhole(Boolean isWhole) {
this.isWhole = isWhole;
}
public String getQuote() {
return this.quote;
}
public void setQuote(String quote) {
this.quote = quote;
}
public ReplyList getReplyList() {
return this.replyList;
}
public void setReplyList(ReplyList replyList) {
this.replyList = replyList;
}
public static class Builder {
/**
* 评论ID(创建新评论可不填;如填写,则视为回复已有评论)
*
示例值:6916106822734512356
*/
private String commentId;
/**
* 用户ID
*
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
*/
private String userId;
/**
* 创建时间
*
示例值:1610281603
*/
private Integer createTime;
/**
* 更新时间
*
示例值:1610281603
*/
private Integer updateTime;
/**
* 是否已解决
*
示例值:false
*/
private Boolean isSolved;
/**
* 解决评论时间
*
示例值:1610281603
*/
private Integer solvedTime;
/**
* 解决评论者的用户ID
*
示例值:null
*/
private String solverUserId;
/**
* 是否有更多回复
*
示例值:false
*/
private Boolean hasMore;
/**
* 回复分页标记
*
示例值:6916106822734512356
*/
private String pageToken;
/**
* 是否是全文评论
*
示例值:true
*/
private Boolean isWhole;
/**
* 如果是局部评论,引用字段
*
示例值:划词评论引用内容
*/
private String quote;
/**
* 评论里的回复列表
*
示例值:
*/
private ReplyList replyList;
/**
* 评论ID(创建新评论可不填;如填写,则视为回复已有评论)
*
示例值:6916106822734512356
*
* @param commentId
* @return
*/
public Builder commentId(String commentId) {
this.commentId = commentId;
return this;
}
/**
* 用户ID
*
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
*
* @param userId
* @return
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
/**
* 创建时间
*
示例值:1610281603
*
* @param createTime
* @return
*/
public Builder createTime(Integer createTime) {
this.createTime = createTime;
return this;
}
/**
* 更新时间
*
示例值:1610281603
*
* @param updateTime
* @return
*/
public Builder updateTime(Integer updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* 是否已解决
*
示例值:false
*
* @param isSolved
* @return
*/
public Builder isSolved(Boolean isSolved) {
this.isSolved = isSolved;
return this;
}
/**
* 解决评论时间
*
示例值:1610281603
*
* @param solvedTime
* @return
*/
public Builder solvedTime(Integer solvedTime) {
this.solvedTime = solvedTime;
return this;
}
/**
* 解决评论者的用户ID
*
示例值:null
*
* @param solverUserId
* @return
*/
public Builder solverUserId(String solverUserId) {
this.solverUserId = solverUserId;
return this;
}
/**
* 是否有更多回复
*
示例值:false
*
* @param hasMore
* @return
*/
public Builder hasMore(Boolean hasMore) {
this.hasMore = hasMore;
return this;
}
/**
* 回复分页标记
*
示例值:6916106822734512356
*
* @param pageToken
* @return
*/
public Builder pageToken(String pageToken) {
this.pageToken = pageToken;
return this;
}
/**
* 是否是全文评论
*
示例值:true
*
* @param isWhole
* @return
*/
public Builder isWhole(Boolean isWhole) {
this.isWhole = isWhole;
return this;
}
/**
* 如果是局部评论,引用字段
*
示例值:划词评论引用内容
*
* @param quote
* @return
*/
public Builder quote(String quote) {
this.quote = quote;
return this;
}
/**
* 评论里的回复列表
*
示例值:
*
* @param replyList
* @return
*/
public Builder replyList(ReplyList replyList) {
this.replyList = replyList;
return this;
}
public FileComment build() {
return new FileComment(this);
}
}
}