Skip to content

Commit

Permalink
feat auto update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
liyan.90210 committed Jan 23, 2025
1 parent 599afb4 commit 52c9d94
Show file tree
Hide file tree
Showing 35 changed files with 874 additions and 66 deletions.
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Change log

2025-01-23 Bumped to version v1.0.203
- Updated apis for livesaas/tls/vikingDB

2025-01-16 Bumped to version v1.0.202
- Updated apis for livesaas/tls

Expand Down
2 changes: 1 addition & 1 deletion volc-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.volcengine</groupId>
<version>1.0.202</version>
<version>1.0.203</version>
<artifactId>volc-sdk-java</artifactId>

<name>volc-sdk-java</name>
Expand Down
7 changes: 7 additions & 0 deletions volc-sdk-java/src/main/java/com/volcengine/helper/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -618,11 +618,18 @@ public class Const {
public static final String CreateOfficeConfig = "CreateOfficeConfig";
public static final String UpdateOfficeConfig = "UpdateOfficeConfig";
public static final String DeleteOfficeConfig = "DeleteOfficeConfig";

public static final String GetActivityReplayPlayerConfig = "GetActivityReplayPlayerConfig";
public static final String UpdateActivityReplayPlayerConfig = "UpdateActivityReplayPlayerConfig";

public static final String GetActivityMessageConfig = "GetActivityMessageConfig";
public static final String UpdateActivityMessageConfig = "UpdateActivityMessageConfig";
public static final String ListInteractionScriptComments = "ListInteractionScriptComments";
public static final String CreateInteractionScript = "CreateInteractionScript";
public static final String AddInteractionScriptComments = "AddInteractionScriptComments";
public static final String EditInteractionScriptComment = "EditInteractionScriptComment";
public static final String DeleteInteractionScriptComment = "DeleteInteractionScriptComment";
public static final String UpdateActivityMediaInfo = "UpdateActivityMediaInfo";

// translate
public static final String LangDetect = "LangDetect";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ public class CreateCouponModel {
String ThirdPartyId;
@JSONField(name = "Pic")
String Pic;
@JSONField(name = "OwnerSubAccountName")
String OwnerSubAccountName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.volcengine.model.beans.livesaas;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

@Data
public class InteractionScriptComment {
@JSONField(name = "Id")
Integer Id;
@JSONField(name = "SendTime")
Integer SendTime;
@JSONField(name = "Role")
Integer Role;
@JSONField(name = "Nickname")
String Nickname;
@JSONField(name = "Content")
String Content;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ public class LoopVideoListReq {
String VideoName;
@JSONField(name = "Offset")
Long Offset;
@JSONField(name = "InteractionScriptEnabled")
Boolean InteractionScriptEnabled;
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ public class LoopVideoListResp {
Integer WarmupProgress;
@JSONField(name = "MediaDuration")
Integer MediaDuration;
}
@JSONField(name = "InteractionScriptEnabled")
Boolean InteractionScriptEnabled;
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.beans.livesaas.InteractionScriptComment;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class AddInteractionScriptCommentsRequest {
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
@JSONField(name = "Comments")
List<InteractionScriptComment> Comments;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class CreateInteractionScriptRequest {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class DeleteInteractionScriptCommentRequest {
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
@JSONField(name = "CommentId")
Integer CommentId;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.beans.livesaas.InteractionScriptComment;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class EditInteractionScriptCommentRequest {
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
@JSONField(name = "Comment")
InteractionScriptComment Comment;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class ListInteractionScriptCommentsRequest {
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
@JSONField(name = "PageNumber")
Integer PageNumber;
@JSONField(name = "PageSize")
Integer PageSize;
@JSONField(name = "SendTime")
Integer SendTime;
@JSONField(name = "CommentId")
Integer CommentId;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.volcengine.model.livesaas.request;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class UpdateActivityMediaInfoRequest {
@JSONField(name = "Id")
String Id;
@JSONField(name = "Name")
String Name;
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;

import java.util.List;
import java.util.Map;

@Data
public class AddInteractionScriptCommentsResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
AddInteractionScriptCommentsResponseBody result;

@Data
public static class AddInteractionScriptCommentsResponseBody {
@JSONField(name = "FailList")
List<FailResult> FailList;
@JSONField(name = "LatestCommentId")
Integer LatestCommentId;
@JSONField(name = "SuccessAmount")
Integer SuccessAmount;
}

@Data
public static class FailResult {
@JSONField(name = "Index")
Integer Index;
@JSONField(name = "FailType")
Integer FailType;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;

import java.util.List;
import java.util.Map;

@Data
public class CreateInteractionScriptResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
CreateInteractionScriptResponseBody result;

@Data
public static class CreateInteractionScriptResponseBody {
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;

import java.util.List;
import java.util.Map;

@Data
public class DeleteInteractionScriptCommentResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
DeleteInteractionScriptCommentResponseBody result;

@Data
public static class DeleteInteractionScriptCommentResponseBody {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;

import java.util.List;
import java.util.Map;

@Data
public class EditInteractionScriptCommentResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
EditInteractionScriptCommentResponseBody result;

@Data
public static class EditInteractionScriptCommentResponseBody {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public static class Media {
String FolderName;
@JSONField(name = "FolderId")
Long FolderId;
@JSONField(name = "InteractionScriptId")
Long InteractionScriptId;
}

@Data
Expand All @@ -79,4 +81,4 @@ public static class Info {
@JSONField(name = "Name")
String Name;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;
import com.volcengine.model.beans.livesaas.InteractionScriptComment;

import java.util.List;
import java.util.Map;

@Data
public class ListInteractionScriptCommentsResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
ListInteractionScriptCommentsResponseBody result;

@Data
public static class ListInteractionScriptCommentsResponseBody {
@JSONField(name = "PageNumber")
Integer PageNumber;
@JSONField(name = "PageSize")
Integer PageSize;
@JSONField(name = "TotalAmount")
Integer TotalAmount;
@JSONField(name = "Comments")
List<InteractionScriptComment> Comments;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.volcengine.model.livesaas.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.volcengine.model.response.ResponseMetadata;

import java.util.List;
import java.util.Map;

@Data
public class UpdateActivityMediaInfoResponse {
@JSONField(name = "ResponseMetadata")
ResponseMetadata responseMetadata;
@JSONField(name = "Result")
UpdateActivityMediaInfoResponseBody result;

@Data
public static class UpdateActivityMediaInfoResponseBody {
}
}
Loading

0 comments on commit 52c9d94

Please sign in to comment.