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)); }
public PushbulletNotifier(PushbulletOptions pushbulletOptions) { _pushbulletClient = new PushbulletClient(pushbulletOptions.AuthToken); TargetDeviceId = pushbulletOptions.TargetDeviceId; }