import { Subscribers } from '../../projects/shared-library/src/lib/shared/model' ; import { SubscriptionService } from '../services/subscription.service' ; import { Utils } from './utils' ; export class Subscription { static async getTotalSubscription ( ) { try { const subscribers = new Subscribers ( ) ; const snapshot = await SubscriptionService . getSubscriptions ( ) ; subscribers . count = snapshot . size ; return subscribers ; } catch ( error ) { return Utils . throwError ( error ) ; } } }