mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Fix messages
- WebcastSocialMessage - ImDeleteMessage
This commit is contained in:
@@ -29,11 +29,6 @@ public class ClientSettings {
|
||||
/// </summary>
|
||||
|
||||
private String clientLanguage;
|
||||
/// <summary>
|
||||
/// Size for Buffer for Socket-Connection
|
||||
/// </summary>
|
||||
|
||||
private int socketBufferSize;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to Retry if Connection Fails
|
||||
@@ -69,8 +64,16 @@ public class ClientSettings {
|
||||
/// </summary>
|
||||
private boolean checkForUnparsedData;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tiktok user name
|
||||
/// </summary>
|
||||
private String hostName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Parameters used in requests to tiktok api
|
||||
/// </summary>
|
||||
private Map<String, Object> clientParameters;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ public class Constants {
|
||||
clientSettings.setHandleExistingMessagesOnConnect(true);
|
||||
clientSettings.setDownloadGiftInfo(true);
|
||||
clientSettings.setRetryOnConnectionFailure(true);
|
||||
clientSettings.setSocketBufferSize(500_000);
|
||||
clientSettings.setPrintToConsole(true);
|
||||
clientSettings.setLogLevel(Level.ALL);
|
||||
clientSettings.setCheckForUnparsedData(false);
|
||||
|
||||
@@ -6,12 +6,10 @@ import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class TikTokIMDeleteEvent extends TikTokEvent {
|
||||
private final String data1;
|
||||
private final String data2;
|
||||
private final byte[] data;
|
||||
|
||||
public TikTokIMDeleteEvent(WebcastImDeleteMessage msg) {
|
||||
super(msg.getHeader());;
|
||||
data1 = msg.getData1();
|
||||
data2 = msg.getData2();
|
||||
}
|
||||
public TikTokIMDeleteEvent(WebcastImDeleteMessage msg) {
|
||||
super(msg.getHeader());
|
||||
data = msg.getData().toByteArray();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -749,8 +749,7 @@ message WebcastHourlyRankMessage {
|
||||
// Message related to Chat-moderation?
|
||||
message WebcastImDeleteMessage {
|
||||
MessageHeader header = 1;
|
||||
string data1 = 2;
|
||||
string data2 = 3;
|
||||
bytes data = 3;
|
||||
}
|
||||
|
||||
message WebcastInRoomBannerMessage {
|
||||
|
||||
Reference in New Issue
Block a user