/// <summary> /// /// </summary> // ReSharper disable once ParameterHidesMember protected void InitNotifications(EndpointRouteDetails endpointRouteDetails) { this.endpointRouteDetails = endpointRouteDetails; if (string.IsNullOrWhiteSpace(this.endpointRouteDetails?.BaseServiceUrl)) { #if DEBUG Debug.WriteLine("You need to specify base service url before you initializing push notifications"); #endif return; } RegisterForPushNotifications(); TryCleaningToastNotificationHistory(); }
/// <summary> /// /// </summary> /// <param name="endpointRouteDetails"></param> public BotClientApplicationBase(EndpointRouteDetails endpointRouteDetails) { this.endpointRouteDetails = endpointRouteDetails; }
/// <summary> /// Route to the server is build from BaseServiceUrl, ServiceAffix and registerPushRoute variables, specified in the constructor. /// The route by default could look like this: [your_base_url]/api/registerpush /// </summary> /// <param name="endpointRouteDetails"></param> public BotClientMobileAppClient(EndpointRouteDetails endpointRouteDetails) { this.endpointRouteDetails = endpointRouteDetails; }