Пример #1
0
        public GeneralOptions GetGeneralOptions()
        {
            var commonOptions = new CommonOptions
            {
                NotificationTitle = _notificationTitle,
                SucessText        = _sucessText,
                FailureText       = _failureText,
                NotifierType      = _notifierType
            };

            var pushbulletOptions = new PushbulletOptions
            {
                AuthToken      = _pushbulletAuthToken,
                TargetDeviceId = _pushbulletTargetDeviceId
            };

            return(new GeneralOptions
            {
                Common = commonOptions,
                Pushbullet = pushbulletOptions
            });
        }
 private bool IsValid(PushbulletOptions options)
 {
     return(!string.IsNullOrEmpty(options.Token));
 }
Пример #3
0
 public PushbulletNotifier(PushbulletOptions pushbulletOptions)
 {
     _pushbulletClient = new PushbulletClient(pushbulletOptions.AuthToken);
     TargetDeviceId    = pushbulletOptions.TargetDeviceId;
 }