import { WatchedList } from '@server/shared/src/core/domain/WatchedList' ; import { ContactSubscription } from './ContactSubscription' ; export class ContactSubscriptions extends WatchedList < ContactSubscription > { private constructor ( initialSubscriptions ) { super ( initialSubscriptions ) ; } public compareItems ( a , b ) { return a . equals ( b ) ; } public static create ( subscriptions ? ) { return new ContactSubscriptions ( subscriptions || [ ] ) ; } }