import { ServiceRequestType } from "./ServiceRequestType"; import { StorageSasConfig } from "../../../Storage/StorageSasConfig"; export class ServiceRequest { payload: string; blobPayload: StorageSasConfig; type: ServiceRequestType; constructor(payload: string, type: ServiceRequestType, blobPayload?: StorageSasConfig) { if (payload == null) { throw new Error("payload cannot be null"); } this.payload = payload; this.type = type; this.blobPayload = blobPayload; } }