trade360-nodejs-sdk
Version:
LSports Trade360 SDK for Node.js
23 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SnapshotApiFactory = void 0;
const common_1 = require("../common");
const services_1 = require("../snapshot-api/services");
/**
* Factory class for creating snapshot HTTP client.
* @implements ISnapshotApiFactory interface for creating snapshot
* HTTP client.
* @see ISnapshotApiFactory interface for creating snapshot
*/
class SnapshotApiFactory {
createSnapshotApiInPlayHttpClient(httpServiceConfig) {
const mapper = new common_1.Mapper(httpServiceConfig.packageCredentials);
return new services_1.InPlaySnapshotApiClientImplementation(httpServiceConfig, mapper);
}
createSnapshotApiPrematchHttpClient(httpServiceConfig) {
const mapper = new common_1.Mapper(httpServiceConfig.packageCredentials);
return new services_1.PreMatchSnapshotApiClientImplementation(httpServiceConfig, mapper);
}
}
exports.SnapshotApiFactory = SnapshotApiFactory;
//# sourceMappingURL=snapshot-api.js.map