Beispiel #1
0
        /// <summary>
        /// Starts the push bullet service.
        /// </summary>
        /// <returns>The <see cref="Core"/></returns>
        public Core InitPushbulletService()
        {
            if (string.IsNullOrEmpty(Config.PushBulletApiKey))
            {
                Logger.Trace("Push bullet API key is null or invalid.");
                return(this);
            }

            PushbulletClient.InitPushbulletClient(Config.PushBulletApiKey);
            Logger.Info("Push bullet notification service started.");
            return(this);
        }
Beispiel #2
0
        public Core StartPushBulletService()
        {
            if (!string.IsNullOrEmpty(Config.PushBulletApiKey))
            {
                Helpers.InBackground(() => {
                    if (PushbulletClient.InitPushbulletClient(Config.PushBulletApiKey) != null)
                    {
                        Logger.Log("Push bullet service started.", LogLevels.Trace);
                    }
                });
            }

            return(this);
        }