Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / motif-web-admin-core   js

Repository URL to install this package:

Version: 0.3.1 

/ lib / sections / WebContent / components / update-poller / UpdatePoller.d.ts

import { BundlesService, BundleStatus } from '@wa-motif-open-api/web-content-service';
import { NGXLogger } from 'ngx-logger';
import { Observable } from "rxjs";
export declare enum UpdatePollerEventStatus {
    Complete = "Complete",
    Stopped = "Stopped",
    Error = "Error"
}
export interface UpdatePollerEvent {
    source: UpdatePoller;
    status: UpdatePollerEventStatus;
    bundleStatus: BundleStatus;
}
export declare class UpdatePoller {
    readonly bundleName: string;
    readonly bundleVersion: string;
    private webContentService;
    private logger;
    private _userData;
    private _bundleStatus;
    private _interval;
    private _pollCount;
    private _pollTime;
    private _currentPollCount;
    constructor(bundleName: string, bundleVersion: string, webContentService: BundlesService, logger: NGXLogger);
    start(pollcount: number, polltime: number, userData: any): Observable<UpdatePollerEvent>;
    stop(): void;
    readonly userData: any;
    readonly pollCount: number;
    readonly pollTime: number;
    readonly currentPollCount: number;
}