7-segment-timer.client
Version:
This is the client for the 7 Segment Timer.
14 lines (13 loc) • 626 B
TypeScript
import { Animations, RgbColor, Time } from '7-segment-timer.contracts';
export default class SevenSegmentTimerClient {
private httpClient;
constructor(baseUrl: string);
off(): Promise<void>;
showCurrentTime(colors?: RgbColor | Array<RgbColor>): Promise<void>;
startTimer(time: Time, colors?: RgbColor | Array<RgbColor>): Promise<void>;
cancelTimer(): Promise<void>;
changeColor(color: RgbColor): Promise<void>;
changeMultipleColors(colors: Array<RgbColor>): Promise<void>;
startAnimation(animation: Animations, colors: Array<RgbColor>): Promise<void>;
stopAnimation(): Promise<void>;
}