Something went wrong on our end
Select Git revision
BinaryOutputService.ts
-
Roman Ondráček authored
Signed-off-by:
Roman Ondráček <mail@romanondracek.cz>
Roman Ondráček authoredSigned-off-by:
Roman Ondráček <mail@romanondracek.cz>
BinaryOutputService.ts 1.36 KiB
import { StandardBinaryOutputMessages } from '../../enums';
import { type EmbedSharedParams } from '../../types';
import { type SetOutputParams } from '../../types/standard';
import { type DaemonMessageOptions } from '../../utils';
import { BaseEmbedService } from '../BaseEmbedService';
/**
* Standard BinaryOutput API service
*/
export class BinaryOutputService extends BaseEmbedService {
/**
* Enumerate binary outputs
* @param {EmbedSharedParams} shared Shared request parameters
* @param {DaemonMessageOptions} options Message options
* @return {DaemonMessageOptions} Message options with request
*/
public static enumerate(shared: EmbedSharedParams, options: DaemonMessageOptions): DaemonMessageOptions {
return this.buildOptionsWithRequest(
StandardBinaryOutputMessages.Enumerate,
shared,
null,
options,
);
}
/**
* Set binary outputs
* @param {EmbedSharedParams} shared Shared request parameters
* @param {SetOutputParams} params SetOutput request parameters
* @param {DaemonMessageOptions} options Message options
* @return {DaemonMessageOptions} Message options with request
*/
public static setOutput(shared: EmbedSharedParams, params: SetOutputParams, options: DaemonMessageOptions): DaemonMessageOptions {
return this.buildOptionsWithRequest(
StandardBinaryOutputMessages.SetOutput,
shared,
params,
options,
);
}
}