export class PgNotifyResponse { constructor ( public readonly status , public readonly data ? , public readonly error ? ) { } public static success ( data , status = 200 ) { return new PgNotifyResponse ( status , data ) ; } public static error ( error , status = 500 ) { return new PgNotifyResponse ( status , undefined , error ) ; } }