- Add GeViScope Bridge (C# .NET 8.0) on port 7720 - Full SDK wrapper for camera control, PTZ, actions/events - 17 REST API endpoints for GeViScope server interaction - Support for MCS (Media Channel Simulator) with 16 test channels - Real-time action/event streaming via PLC callbacks - Add GeViServer Bridge (C# .NET 8.0) on port 7710 - Integration with GeViSoft orchestration layer - Input/output control and event management - Update Python API with new routers - /api/geviscope/* - Proxy to GeViScope Bridge - /api/geviserver/* - Proxy to GeViServer Bridge - /api/excel/* - Excel import functionality - Add Flutter app GeViScope integration - GeViScopeRemoteDataSource with 17 API methods - GeViScopeBloc for state management - GeViScopeScreen with PTZ controls - App drawer navigation to GeViScope - Add SDK documentation (extracted from PDFs) - GeViScope SDK docs (7 parts + action reference) - GeViSoft SDK docs (12 chunks) - Add .mcp.json for Claude Code MCP server config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
138 lines
2.8 KiB
Dart
138 lines
2.8 KiB
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class GeViServerEvent extends Equatable {
|
|
const GeViServerEvent();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
/// Connect to GeViServer
|
|
class ConnectGeViServerEvent extends GeViServerEvent {
|
|
final String address;
|
|
final String username;
|
|
final String password;
|
|
|
|
const ConnectGeViServerEvent({
|
|
required this.address,
|
|
required this.username,
|
|
required this.password,
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [address, username, password];
|
|
}
|
|
|
|
/// Disconnect from GeViServer
|
|
class DisconnectGeViServerEvent extends GeViServerEvent {
|
|
const DisconnectGeViServerEvent();
|
|
}
|
|
|
|
/// Check connection status
|
|
class CheckStatusEvent extends GeViServerEvent {
|
|
const CheckStatusEvent();
|
|
}
|
|
|
|
/// Send CrossSwitch command
|
|
class SendCrossSwitchEvent extends GeViServerEvent {
|
|
final int videoInput;
|
|
final int videoOutput;
|
|
final int switchMode;
|
|
|
|
const SendCrossSwitchEvent({
|
|
required this.videoInput,
|
|
required this.videoOutput,
|
|
this.switchMode = 0,
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [videoInput, videoOutput, switchMode];
|
|
}
|
|
|
|
/// Clear video output
|
|
class ClearVideoOutputEvent extends GeViServerEvent {
|
|
final int videoOutput;
|
|
|
|
const ClearVideoOutputEvent({required this.videoOutput});
|
|
|
|
@override
|
|
List<Object?> get props => [videoOutput];
|
|
}
|
|
|
|
/// Close digital contact
|
|
class CloseContactEvent extends GeViServerEvent {
|
|
final int contactId;
|
|
|
|
const CloseContactEvent({required this.contactId});
|
|
|
|
@override
|
|
List<Object?> get props => [contactId];
|
|
}
|
|
|
|
/// Open digital contact
|
|
class OpenContactEvent extends GeViServerEvent {
|
|
final int contactId;
|
|
|
|
const OpenContactEvent({required this.contactId});
|
|
|
|
@override
|
|
List<Object?> get props => [contactId];
|
|
}
|
|
|
|
/// Send custom action
|
|
class SendCustomActionEvent extends GeViServerEvent {
|
|
final int typeId;
|
|
final String text;
|
|
|
|
const SendCustomActionEvent({
|
|
required this.typeId,
|
|
this.text = '',
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [typeId, text];
|
|
}
|
|
|
|
/// Send raw message
|
|
class SendMessageEvent extends GeViServerEvent {
|
|
final String message;
|
|
|
|
const SendMessageEvent({required this.message});
|
|
|
|
@override
|
|
List<Object?> get props => [message];
|
|
}
|
|
|
|
/// Start timer
|
|
class StartTimerEvent extends GeViServerEvent {
|
|
final int timerId;
|
|
final String timerName;
|
|
|
|
const StartTimerEvent({
|
|
this.timerId = 0,
|
|
this.timerName = '',
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [timerId, timerName];
|
|
}
|
|
|
|
/// Stop timer
|
|
class StopTimerEvent extends GeViServerEvent {
|
|
final int timerId;
|
|
final String timerName;
|
|
|
|
const StopTimerEvent({
|
|
this.timerId = 0,
|
|
this.timerName = '',
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [timerId, timerName];
|
|
}
|
|
|
|
/// Clear last action result (to dismiss success/error messages)
|
|
class ClearActionResultEvent extends GeViServerEvent {
|
|
const ClearActionResultEvent();
|
|
}
|