Breaking changes:

'Gift': changed from class to enum, so now you can handle
incoming gifts in switch

`Events`
- new:
     onGiftComboFinished
- Removed:
      onGiftBrodcast
- Rename:
     onGiftMessage -> onGift
     onRoomPinMessage -> onRoomPin
     onRoomMessage -> onRoom
     onLinkMessage -> onLink
     onBarrageMessage -> onBarrage
     onPollMessage -> onPoll
     onShopMessage -> onShop
     onDetectMessage -> onDetect

`GiftManager`
   added:
      registerGift
      findById
      findByName
      getGifts
   removed:
      getActiveGifts
This commit is contained in:
JW
2023-10-11 01:20:07 +02:00
parent 043dfe95d8
commit de27e71e93
64 changed files with 548 additions and 630 deletions

View File

@@ -46,7 +46,7 @@ public class ApiServiceMock extends TikTokApiService {
public LiveRoomMeta fetchRoomInfo()
{
var meta = new LiveRoomMeta();
meta.setStatus(1);
meta.setStatus(LiveRoomMeta.LiveRoomStatus.HostOnline);
return meta;
}

View File

@@ -34,13 +34,6 @@ public class TemplateUtility
return template;
}
public static String generateTemplate2(String template, Map<String, Object> values) {
for(var entry : values.entrySet())
{
template = doReplacement2(template,entry.getKey(), entry.getValue().toString());
}
return template;
}
private static String doReplacement(String template, String keyword, String value)
{
@@ -48,9 +41,5 @@ public class TemplateUtility
return template.replaceAll(key, value);
}
private static String doReplacement2(String template, String keyword, String value)
{
var key = "(\\$)("+keyword+")(\\$)";
return template.replaceAll(key, value);
}
}