fixed spacing and added todo
This commit is contained in:
@@ -33,8 +33,12 @@ public partial class MainPage : ContentPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
hybridWebView.SetInvokeJavaScriptTarget(this);
|
hybridWebView.SetInvokeJavaScriptTarget(this);
|
||||||
|
// hybridWebView.SetInvokeJavaScriptTarget(new RtcBridgeService());
|
||||||
|
//TODO: Need to not have parameters in constructor, protected flags on vars instead of private should make everything accessible
|
||||||
|
|
||||||
ServerAPI.setupClient();
|
ServerAPI.setupClient();
|
||||||
|
|
||||||
|
|
||||||
_socket = new RelaySocketClient(_username);
|
_socket = new RelaySocketClient(_username);
|
||||||
_rtc = new RtcBridgeService(
|
_rtc = new RtcBridgeService(
|
||||||
_username,
|
_username,
|
||||||
|
|||||||
@@ -13,12 +13,8 @@ public sealed class RtcBridgeService
|
|||||||
private readonly Func<string?> _getCurrentChannelId;
|
private readonly Func<string?> _getCurrentChannelId;
|
||||||
private readonly Action<string> _sendRawToWebView;
|
private readonly Action<string> _sendRawToWebView;
|
||||||
|
|
||||||
public RtcBridgeService(
|
public RtcBridgeService(string username, RelaySocketClient socket, HybridWebView hybridWebView,
|
||||||
string username,
|
Func<string?> getCurrentChannelId, Action<string> sendRawToWebView)
|
||||||
RelaySocketClient socket,
|
|
||||||
HybridWebView hybridWebView,
|
|
||||||
Func<string?> getCurrentChannelId,
|
|
||||||
Action<string> sendRawToWebView)
|
|
||||||
{
|
{
|
||||||
_username = username;
|
_username = username;
|
||||||
_socket = socket;
|
_socket = socket;
|
||||||
|
|||||||
Reference in New Issue
Block a user