import { Serializable } from "./serializable" ; import { TrackerEventType } from "../utils/constants" ; export abstract class KeyValueSubscriptionEvent implements Serializable { private readonly _key : string ; private readonly _value : string ; private readonly _type : TrackerEventType ; protected constructor ( type , key , value ) { this . _type = type ; this . _key = key ; this . _value = value ; } public serialize ( ) { return this . _type + ";" + this . _key + this . _value ; } }