public static void LogEvent(string name, Dictionary <string, object> data = null) { if (data == null || data.Count == 0) { FirebaseProxy.LogEvent(name, null); } else { Dictionary <string, object> .Enumerator enumerator = data.GetEnumerator(); enumerator.MoveNext(); StringBuilder builder = new StringBuilder(); builder.Append(enumerator.Current.Key); builder.Append(SEPARATOR2); builder.Append(enumerator.Current.Value.ToString()); while (enumerator.MoveNext()) { builder.Append(SEPARATOR1); builder.Append(enumerator.Current.Key); builder.Append(SEPARATOR2); builder.Append(enumerator.Current.Value.ToString()); } FirebaseProxy.LogEvent(name, builder.ToString()); } }
public void IsSuccessfulRequest() { // todo use DI // Arrange var firebaseProxy = new FirebaseProxy(new TokenProvider()); // Act var response = firebaseProxy.SendTestNotification(); // Assert response.Wait(); Assert.True(response.Result.StatusCode == HttpStatusCode.OK); }
public NotificationsController(FirebaseProxy firebaseProxy) { _firebaseProxy = firebaseProxy; }
public static void Init() { FirebaseProxy.Init(); }
public static void SetUserProperty(string name, string value) { FirebaseProxy.SetUserProperty(name, value); }
public static void SetUserId(string userId) { FirebaseProxy.SetUserId(userId); }
public static void SetSessionTimeoutDuration(long milliseconds) { FirebaseProxy.SetSessionTimeoutDuration(milliseconds); }
public static void SetMinimumSessionDuration(long milliseconds) { FirebaseProxy.SetMinimumSessionDuration(milliseconds); }
public static void SetEnabled(bool enabled) { FirebaseProxy.SetEnabled(enabled); }