This MVP release provides a complete full-stack solution for managing action mappings in Geutebruck's GeViScope and GeViSoft video surveillance systems. ## Features ### Flutter Web Application (Port 8081) - Modern, responsive UI for managing action mappings - Action picker dialog with full parameter configuration - Support for both GSC (GeViScope) and G-Core server actions - Consistent UI for input and output actions with edit/delete capabilities - Real-time action mapping creation, editing, and deletion - Server categorization (GSC: prefix for GeViScope, G-Core: prefix for G-Core servers) ### FastAPI REST Backend (Port 8000) - RESTful API for action mapping CRUD operations - Action template service with comprehensive action catalog (247 actions) - Server management (G-Core and GeViScope servers) - Configuration tree reading and writing - JWT authentication with role-based access control - PostgreSQL database integration ### C# SDK Bridge (gRPC, Port 50051) - Native integration with GeViSoft SDK (GeViProcAPINET_4_0.dll) - Action mapping creation with correct binary format - Support for GSC and G-Core action types - Proper Camera parameter inclusion in action strings (fixes CrossSwitch bug) - Action ID lookup table with server-specific action IDs - Configuration reading/writing via SetupClient ## Bug Fixes - **CrossSwitch Bug**: GSC and G-Core actions now correctly display camera/PTZ head parameters in GeViSet - Action strings now include Camera parameter: `@ PanLeft (Comment: "", Camera: 101028)` - Proper filter flags and VideoInput=0 for action mappings - Correct action ID assignment (4198 for GSC, 9294 for G-Core PanLeft) ## Technical Stack - **Frontend**: Flutter Web, Dart, Dio HTTP client - **Backend**: Python FastAPI, PostgreSQL, Redis - **SDK Bridge**: C# .NET 8.0, gRPC, GeViSoft SDK - **Authentication**: JWT tokens - **Configuration**: GeViSoft .set files (binary format) ## Credentials - GeViSoft/GeViScope: username=sysadmin, password=masterkey - Default admin: username=admin, password=admin123 ## Deployment All services run on localhost: - Flutter Web: http://localhost:8081 - FastAPI: http://localhost:8000 - SDK Bridge gRPC: localhost:50051 - GeViServer: localhost (default port) Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
91 lines
3.2 KiB
C#
91 lines
3.2 KiB
C#
using System;
|
|
using System.Reflection;
|
|
using System.Linq;
|
|
|
|
class InspectGeViSDK
|
|
{
|
|
static void Main()
|
|
{
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine("GeViSoft SDK .NET API Inspector");
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine();
|
|
|
|
// Load the assembly
|
|
string dllPath = @"C:\GEVISOFT\GeViProcAPINET_4_0.dll";
|
|
Assembly assembly = Assembly.LoadFrom(dllPath);
|
|
|
|
Console.WriteLine($"Loaded: {assembly.FullName}");
|
|
Console.WriteLine();
|
|
|
|
// Get all public types
|
|
var types = assembly.GetTypes()
|
|
.Where(t => t.IsPublic)
|
|
.OrderBy(t => t.FullName);
|
|
|
|
Console.WriteLine($"Found {types.Count()} public types");
|
|
Console.WriteLine();
|
|
|
|
// Focus on GeViDatabase class
|
|
var geviDatabaseType = types.FirstOrDefault(t => t.Name == "GeViDatabase");
|
|
|
|
if (geviDatabaseType != null)
|
|
{
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine("GeViDatabase Class Methods");
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine();
|
|
|
|
var methods = geviDatabaseType.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
|
|
.Where(m => !m.IsSpecialName) // Exclude property getters/setters
|
|
.OrderBy(m => m.Name);
|
|
|
|
foreach (var method in methods)
|
|
{
|
|
var parameters = method.GetParameters();
|
|
var paramString = string.Join(", ", parameters.Select(p => $"{p.ParameterType.Name} {p.Name}"));
|
|
|
|
Console.WriteLine($"{method.ReturnType.Name} {method.Name}({paramString})");
|
|
}
|
|
|
|
Console.WriteLine();
|
|
Console.WriteLine($"Total methods: {methods.Count()}");
|
|
Console.WriteLine();
|
|
}
|
|
|
|
// Look for Setup-related types
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine("Setup-Related Types");
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine();
|
|
|
|
var setupTypes = types.Where(t =>
|
|
t.Name.Contains("Setup") ||
|
|
t.Name.Contains("Alarm") ||
|
|
t.Name.Contains("Config") ||
|
|
t.Name.Contains("Enumerate"));
|
|
|
|
foreach (var type in setupTypes)
|
|
{
|
|
Console.WriteLine($"- {type.FullName}");
|
|
|
|
if (type.IsClass && !type.IsAbstract)
|
|
{
|
|
var setupMethods = type.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)
|
|
.Where(m => !m.IsSpecialName)
|
|
.Take(5);
|
|
|
|
foreach (var method in setupMethods)
|
|
{
|
|
Console.WriteLine($" {method.Name}()");
|
|
}
|
|
}
|
|
}
|
|
|
|
Console.WriteLine();
|
|
Console.WriteLine("===========================================");
|
|
Console.WriteLine("Inspection Complete");
|
|
Console.WriteLine("===========================================");
|
|
}
|
|
}
|