BuildIt.Bot.Client.Impl.Droid.Utilities.GcmService.GcmService C# (CSharp) Method

GcmService() public method

public GcmService ( ) : System
return System
        public GcmService()
            : base(PushHandlerBroadcastReceiver.GoogleApiConsoleAppProjectNumber)
        {
            if (string.IsNullOrWhiteSpace(Settings.Instance.PushNotificationSettings?.EndpointRouteDetails?.BaseServiceUrl))
            {
#if DEBUG
                throw new Exception("You need to set the BaseServiceUrl, in Settings.Instance.EndpointRouteDetails, before working with Push Notifications");
#endif
            }
            else
            {
                this.botClientMobileApp = new BotClientMobileAppClient(Settings.Instance.PushNotificationSettings.EndpointRouteDetails);
            }
        }