-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from GetStream/feature/refactor-stream-video-c…
…lient-to-allow-mocking Refactor the client to enable mocking in tests
- Loading branch information
Showing
6 changed files
with
75 additions
and
25 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
Packages/StreamVideo/Runtime/Core/IInternalStreamVideoClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using StreamVideo.Core.LowLevelClient; | ||
using StreamVideo.Core.StatefulModels; | ||
|
||
namespace StreamVideo.Core | ||
{ | ||
internal interface IInternalStreamVideoClient | ||
{ | ||
StreamVideoLowLevelClient InternalLowLevelClient { get; } | ||
|
||
Task LeaveCallAsync(IStreamCall call); | ||
|
||
Task EndCallAsync(IStreamCall call); | ||
|
||
Task StartHLSAsync(IStreamCall call); | ||
|
||
Task StopHLSAsync(IStreamCall call); | ||
|
||
Task GoLiveAsync(IStreamCall call); | ||
|
||
Task StopLiveAsync(IStreamCall call); | ||
|
||
Task StartRecordingAsync(IStreamCall call); | ||
|
||
Task StopRecordingAsync(IStreamCall call); | ||
|
||
Task MuteAllUsersAsync(IStreamCall call, bool audio, bool video, bool screenShare); | ||
|
||
Task BlockUserAsync(IStreamCall call, string userId); | ||
|
||
Task UnblockUserAsync(IStreamCall call, string userId); | ||
|
||
Task RequestPermissionAsync(IStreamCall call, List<string> capabilities); | ||
|
||
Task UpdateUserPermissions(IStreamCall call, string userId, List<string> grantPermissions, | ||
List<string> revokePermissions); | ||
|
||
Task RemoveMembersAsync(IStreamCall call, List<string> removeUsers); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Packages/StreamVideo/Runtime/Core/IInternalStreamVideoClient.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters