Added convenience methods back to TikTokLive and changed sing to sign where misspelled!

This commit is contained in:
kohlerpop1
2024-01-05 13:57:29 -05:00
committed by Jacek W
parent 548a585e90
commit 4801de58cb
2 changed files with 54 additions and 8 deletions

View File

@@ -50,14 +50,14 @@ public class TikTokLiveHttpClient implements LiveHttpClient {
private final HttpClientFactory httpFactory;
private final LiveUserDataMapper liveUserDataMapper;
private final LiveDataMapper liveDataMapper;
private final SignServerResponseMapper singServerResponseMapper;
private final SignServerResponseMapper signServerResponseMapper;
private final GiftsDataMapper giftsDataMapper;
public TikTokLiveHttpClient(HttpClientFactory factory) {
this.httpFactory = factory;
liveUserDataMapper = new LiveUserDataMapper();
liveDataMapper = new LiveDataMapper();
singServerResponseMapper = new SignServerResponseMapper();
signServerResponseMapper = new SignServerResponseMapper();
giftsDataMapper = new GiftsDataMapper();
}
@@ -180,7 +180,7 @@ public class TikTokLiveHttpClient implements LiveHttpClient {
}
var json = optional.get();
return singServerResponseMapper.map(json);
return signServerResponseMapper.map(json);
}
HttpResponse<byte[]> getWebsocketCredentialsResponse(String signedUrl) {
@@ -194,4 +194,4 @@ public class TikTokLiveHttpClient implements LiveHttpClient {
return optionalResponse.get();
}
}
}