Skip to content
Snippets Groups Projects
Select Git revision
  • 3b4c6eeb6c9fb9d683b3f7d0de817d5ee0de6cb4
  • master default protected
  • weblate
  • feature/iqrf_db_v2.7
  • v2.99.x
  • weblate-update
  • release/v2.6.x
  • feature/v3-network
  • release/v2.5.x
  • feature/issue#387
  • refacoring/tsconfig
  • roman/wip
  • feature/vue3_vuetify3
  • v3-fixes
  • v2.4.x
  • feature/monit-rework
  • feature/php8.x
  • fix/nginx-caching
  • standard/reset_db_coordinator
  • feature/php8.1+
  • feature/request_abort
  • v2.99.1
  • v2.6.6
  • v2.6.5
  • v2.99.0
  • v2.99.0-rc1
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.6.0
  • v2.6.0-rc1
  • v2.5.22
  • v2.6.0-beta1
  • v2.5.21
  • v2.5.20
  • v2.5.19
  • v2.5.18
  • v2.5.17
  • v2.5.16
  • v2.4.18
  • v2.5.15
41 results

BinaryOutputService.ts

Blame
  • 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,
    		);
    	}
    }