Skip to content

Commit 40cfbc8

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 52c9d94 commit 40cfbc8

19 files changed

+394
-5
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-02-06 Bumped to version v1.0.204
4+
- Updated apis for livesaas
5+
36
2025-01-23 Bumped to version v1.0.203
47
- Updated apis for livesaas/tls/vikingDB
58

volc-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.203</version>
7+
<version>1.0.204</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>

volc-sdk-java/src/main/java/com/volcengine/helper/Const.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,10 @@ public class Const {
610610
public static final String ListWaitLinkAudience = "ListWaitLinkAudience";
611611
public static final String GetLinkUserAmount = "GetLinkUserAmount";
612612
public static final String GetInviterToken = "GetInviterToken";
613+
public static final String UpdateActivityUserBanStatus = "UpdateActivityUserBanStatus";
614+
public static final String GetActivityBanUsers = "GetActivityBanUsers";
615+
public static final String UpdateActivityIpBanStatus = "UpdateActivityIpBanStatus";
616+
public static final String GetActivityBanIps = "GetActivityBanIps";
613617
public static final String ListAreaConfig = "ListAreaConfig";
614618
public static final String CreateAreaConfig = "CreateAreaConfig";
615619
public static final String UpdateAreaConfig = "UpdateAreaConfig";

volc-sdk-java/src/main/java/com/volcengine/model/livesaas/request/CreateActivityAPIRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ public class CreateActivityAPIRequest {
4040
Integer LiveLayout;
4141
@JSONField(name = "CreatorName")
4242
String CreatorName;
43+
@JSONField(name = "IsReplayAutoOnlineEnable")
44+
Integer IsReplayAutoOnlineEnable;
4345
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
@Data
7+
public class GetActivityBanIpsRequest {
8+
@JSONField(name = "ActivityId")
9+
Long ActivityId;
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
@Data
9+
public class GetActivityBanUsersRequest {
10+
@JSONField(name = "ActivityId")
11+
Long ActivityId;
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
@Data
7+
public class GetStreamsAPIRequest {
8+
@JSONField(name = "ActivityId")
9+
Long ActivityId;
10+
@JSONField(name = "NeedRefreshPushUrl")
11+
Boolean NeedRefreshPushUrl;
12+
}

volc-sdk-java/src/main/java/com/volcengine/model/livesaas/request/ListActivityAPIRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ public class ListActivityAPIRequest {
3636
String SortOrder;
3737
@JSONField(name = "LiveLayout")
3838
Integer LiveLayout;
39+
@JSONField(name = "FollowerUserName")
40+
String FollowerUserName;
3941
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
@Data
9+
public class UpdateActivityIpBanStatusRequest {
10+
@JSONField(name = "ActivityId")
11+
Long ActivityId;
12+
@JSONField(name = "BanStatus")
13+
Integer BanStatus;
14+
@JSONField(name = "Ips")
15+
List<String> Ips;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
@Data
9+
public class UpdateActivityUserBanStatusRequest {
10+
@JSONField(name = "ActivityId")
11+
Long ActivityId;
12+
@JSONField(name = "BanStatus")
13+
Integer BanStatus;
14+
@JSONField(name = "UserIds")
15+
List<Long> UserIds;
16+
@JSONField(name = "Cookies")
17+
List<String> Cookies;
18+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.volcengine.model.livesaas.response;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.response.ResponseMetadata;
5+
import lombok.Data;
6+
7+
import java.util.List;
8+
9+
@Data
10+
public class GetActivityBanIpsResponse {
11+
@JSONField(name = "ResponseMetadata")
12+
ResponseMetadata responseMetadata;
13+
@JSONField(name = "Result")
14+
GetActivityBanIpsResponse.GetActivityBanIpsBody result;
15+
16+
@Data
17+
public static class GetActivityBanIpsBody {
18+
@JSONField(name = "Ips")
19+
List<String> Ips;
20+
}
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.volcengine.model.livesaas.response;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.response.ResponseMetadata;
5+
import lombok.Data;
6+
7+
import java.util.List;
8+
9+
@Data
10+
public class GetActivityBanUsersResponse {
11+
@JSONField(name = "ResponseMetadata")
12+
ResponseMetadata responseMetadata;
13+
@JSONField(name = "Result")
14+
GetActivityBanUsersResponse.GetActivityBanUsersBody result;
15+
16+
@Data
17+
public static class GetActivityBanUsersBody {
18+
@JSONField(name = "UserIds")
19+
List<Long> UserIds;
20+
@JSONField(name = "Cookies")
21+
List<String> Cookies;
22+
}
23+
}

volc-sdk-java/src/main/java/com/volcengine/model/livesaas/response/GetUserBehaviorListResponseAPIV2.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@ public static class UserBehaviorV2 {
8181
String EmployeeNo;
8282
@JSONField(name = "ThumbUpNumber")
8383
Long ThumbUpNumber;
84+
@JSONField(name = "Cookie")
85+
Long Cookie;
8486
}
8587
}

volc-sdk-java/src/main/java/com/volcengine/model/livesaas/response/ListActivityAPIResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public static class ListActivityAPIForm {
6161
Integer LiveReviewStatus;
6262
@JSONField(name = "LiveLayout")
6363
Integer LiveLayout;
64+
@JSONField(name = "SubAccountName")
65+
String SubAccountName;
6466
}
6567

6668
@Data
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.volcengine.model.livesaas.response;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.response.ResponseMetadata;
5+
import lombok.Data;
6+
7+
@Data
8+
public class UpdateActivityIpBanStatusResponse {
9+
@JSONField(name = "ResponseMetadata")
10+
ResponseMetadata responseMetadata;
11+
@JSONField(name = "Result")
12+
UpdateActivityIpBanStatusResponse.UpdateActivityIpBanStatusBody result;
13+
14+
@Data
15+
public static class UpdateActivityIpBanStatusBody {
16+
@JSONField(name = "Status")
17+
Boolean Status;
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.volcengine.model.livesaas.response;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.response.ResponseMetadata;
5+
import lombok.Data;
6+
7+
@Data
8+
public class UpdateActivityUserBanStatusResponse {
9+
@JSONField(name = "ResponseMetadata")
10+
ResponseMetadata responseMetadata;
11+
@JSONField(name = "Result")
12+
UpdateActivityUserBanStatusResponse.UpdateActivityUserBanStatusBody result;
13+
14+
@Data
15+
public static class UpdateActivityUserBanStatusBody {
16+
@JSONField(name = "Status")
17+
Boolean Status;
18+
}
19+
}

volc-sdk-java/src/main/java/com/volcengine/service/livesaas/LivesaasConfig.java

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,6 +3734,90 @@ public class LivesaasConfig {
37343734
}
37353735
}
37363736
));
3737+
put(Const.UpdateProductReminderInfo,new ApiInfo(
3738+
new HashMap<String, Object>() {
3739+
{
3740+
put(Const.Method, "POST");
3741+
put(Const.Path, "/");
3742+
put(Const.Query, new ArrayList<NameValuePair>() {
3743+
{
3744+
add(new BasicNameValuePair("Action",Const.UpdateProductReminderInfo));
3745+
add(new BasicNameValuePair("Version", "2023-08-01"));
3746+
}
3747+
});
3748+
}
3749+
}
3750+
));
3751+
put(Const.SendProductOrderMessage,new ApiInfo(
3752+
new HashMap<String, Object>() {
3753+
{
3754+
put(Const.Method, "POST");
3755+
put(Const.Path, "/");
3756+
put(Const.Query, new ArrayList<NameValuePair>() {
3757+
{
3758+
add(new BasicNameValuePair("Action",Const.SendProductOrderMessage));
3759+
add(new BasicNameValuePair("Version", "2023-08-01"));
3760+
}
3761+
});
3762+
}
3763+
}
3764+
));
3765+
put(Const.UpdateActivityUserBanStatus,new ApiInfo(
3766+
new HashMap<String, Object>() {
3767+
{
3768+
put(Const.Method, "POST");
3769+
put(Const.Path, "/");
3770+
put(Const.Query, new ArrayList<NameValuePair>() {
3771+
{
3772+
add(new BasicNameValuePair("Action",Const.UpdateActivityUserBanStatus));
3773+
add(new BasicNameValuePair("Version", "2023-08-01"));
3774+
}
3775+
});
3776+
}
3777+
}
3778+
));
3779+
put(Const.GetActivityBanUsers,new ApiInfo(
3780+
new HashMap<String, Object>() {
3781+
{
3782+
put(Const.Method, "GET");
3783+
put(Const.Path, "/");
3784+
put(Const.Query, new ArrayList<NameValuePair>() {
3785+
{
3786+
add(new BasicNameValuePair("Action",Const.GetActivityBanUsers));
3787+
add(new BasicNameValuePair("Version", "2023-08-01"));
3788+
}
3789+
});
3790+
}
3791+
}
3792+
));
3793+
put(Const.UpdateActivityIpBanStatus,new ApiInfo(
3794+
new HashMap<String, Object>() {
3795+
{
3796+
put(Const.Method, "POST");
3797+
put(Const.Path, "/");
3798+
put(Const.Query, new ArrayList<NameValuePair>() {
3799+
{
3800+
add(new BasicNameValuePair("Action",Const.UpdateActivityIpBanStatus));
3801+
add(new BasicNameValuePair("Version", "2023-08-01"));
3802+
}
3803+
});
3804+
}
3805+
}
3806+
));
3807+
put(Const.GetActivityBanIps,new ApiInfo(
3808+
new HashMap<String, Object>() {
3809+
{
3810+
put(Const.Method, "GET");
3811+
put(Const.Path, "/");
3812+
put(Const.Query, new ArrayList<NameValuePair>() {
3813+
{
3814+
add(new BasicNameValuePair("Action",Const.GetActivityBanIps));
3815+
add(new BasicNameValuePair("Version", "2023-08-01"));
3816+
}
3817+
});
3818+
}
3819+
}
3820+
));
37373821
put(Const.ListInteractionScriptComments,new ApiInfo(
37383822
new HashMap<String, Object>() {
37393823
{

volc-sdk-java/src/main/java/com/volcengine/service/livesaas/LivesaasService.java

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ public interface LivesaasService extends IBaseService {
141141
/**
142142
* GetStreamsAPI
143143
*
144-
* @param commonRequest CommonRequest
144+
* @param getStreamsAPIRequest GetStreamsAPIRequest
145145
* @return GetStreamsAPIResponse
146146
* @throws Exception the exception
147147
*/
148-
GetStreamsAPIResponse getStreamsAPI(CommonRequest commonRequest) throws Exception;
148+
GetStreamsAPIResponse getStreamsAPI(GetStreamsAPIRequest getStreamsAPIRequest) throws Exception;
149149

150150
/**
151151
* UpdateActivityBasicConfigAPI
@@ -2294,6 +2294,59 @@ public interface LivesaasService extends IBaseService {
22942294
*/
22952295
SendProductOrderMessageResponse sendProductOrderMessage(SendProductOrderMessageRequest sendProductOrderMessageRequest) throws Exception;
22962296

2297+
/**
2298+
* updateActivityUserBanStatus
2299+
*
2300+
* @param updateActivityUserBanStatusRequest UpdateActivityUserBanStatusRequest
2301+
* @return UpdateActivityUserBanStatusResponse
2302+
* @throws Exception the exception
2303+
*/
2304+
UpdateActivityUserBanStatusResponse updateActivityUserBanStatus(UpdateActivityUserBanStatusRequest updateActivityUserBanStatusRequest) throws Exception;
2305+
2306+
/**
2307+
* getActivityBanUsers
2308+
*
2309+
* @param getActivityBanUsersRequest GetActivityBanUsersRequest
2310+
* @return GetActivityBanUsersResponse
2311+
* @throws Exception the exception
2312+
*/
2313+
GetActivityBanUsersResponse getActivityBanUsers(GetActivityBanUsersRequest getActivityBanUsersRequest) throws Exception;
2314+
2315+
/**
2316+
* updateActivityIpBanStatus
2317+
*
2318+
* @param updateActivityIpBanStatusRequest UpdateActivityIpBanStatusRequest
2319+
* @return UpdateActivityIpBanStatusResponse
2320+
* @throws Exception the exception
2321+
*/
2322+
UpdateActivityIpBanStatusResponse updateActivityIpBanStatus(UpdateActivityIpBanStatusRequest updateActivityIpBanStatusRequest) throws Exception;
2323+
2324+
/**
2325+
* getActivityBanIps
2326+
*
2327+
* @param getActivityBanIpsRequest GetActivityBanIpsRequest
2328+
* @return GetActivityBanIpsResponse
2329+
* @throws Exception the exception
2330+
*/
2331+
GetActivityBanIpsResponse getActivityBanIps(GetActivityBanIpsRequest getActivityBanIpsRequest) throws Exception;
2332+
/**
2333+
* updateProductReminderInfo
2334+
*
2335+
* @param updateProductReminderInfoRequest UpdateProductReminderInfoRequest
2336+
* @return UpdateProductReminderInfoResponse
2337+
* @throws Exception the exception
2338+
*/
2339+
UpdateProductReminderInfoResponse updateProductReminderInfo(UpdateProductReminderInfoRequest updateProductReminderInfoRequest) throws Exception;
2340+
2341+
/**
2342+
* sendProductOrderMessage
2343+
*
2344+
* @param sendProductOrderMessageRequest SendProductOrderMessageRequest
2345+
* @return SendProductOrderMessageResponse
2346+
* @throws Exception the exception
2347+
*/
2348+
SendProductOrderMessageResponse sendProductOrderMessage(SendProductOrderMessageRequest sendProductOrderMessageRequest) throws Exception;
2349+
22972350
/**
22982351
* getActivityReplayPlayerConfig
22992352
*

0 commit comments

Comments
 (0)