@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
47 lines • 5.64 kB
JavaScript
import { Injectable } from '@angular/core';
import { NotificationConnection } from '@microsoft/windows-admin-center-sdk/core/notification/notification-connection';
import { RpcService } from './rpc.service';
import * as i0 from "@angular/core";
import * as i1 from "./rpc.service";
/**
*
* @smeDoc {@label Notifications @id sme-dev-guide-shell-services-notifications}
*
* @overview
* @file {@filepath ./notifications/examples/overview.md}
*
* @example {@label In progress notification @id in-progress-notification}
* @file {@filename notifications-in-progress.ts @filepath ./notifications/examples/notifications-in-progress.ts}
*
* @example {@label Alert notification @id alert-notifications}
* @file {@filename notifications-alert.ts @filepath ./notifications/examples/notifications-alert.ts}
*
* @example {@label Information notification @id information-notification}
* @file {@filename notifications-information.ts @filepath ./notifications/examples/notifications-information.ts}
*
* @example {@label Long running notification @id long-running-notification}
* @file {@filename notifications-long-running.ts @filepath ./notifications/examples/notifications-long-running.ts}
*
* @example {@label Long running with disabled notification @id long-running-disable-notification}
* @file {@filename notifications-long-running-disable.ts @filepath ./notifications/examples/notifications-long-running-disable.ts}
*/
/**
* Notification service class.
*/
export class NotificationService extends NotificationConnection {
/**
* Initializes a new instance of the NotificationConnectionService class.
*
* @param rpcService the RPC service.
* @param connectionService the connection service.
*/
constructor(rpcService) {
super(rpcService);
}
}
/** @nocollapse */ NotificationService.ɵfac = function NotificationService_Factory(t) { return new (t || NotificationService)(i0.ɵɵinject(i1.RpcService)); };
/** @nocollapse */ NotificationService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: NotificationService, factory: NotificationService.ɵfac });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NotificationService, [{
type: Injectable
}], function () { return [{ type: i1.RpcService }]; }, null); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNl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