Click or drag to resize

InitDTO Class

Contains information on how to construct a new event, with its sessions, sections, tables and rounds. Optionally player data, participations and handrecords can be added. Doing this is more performant than adding them later. Is used as a parameter for the ScoringProgramPipeClient.Initialize or the ScoringProgramPipeClient.InitializeAsync method.
Inheritance Hierarchy
SystemObject
  BridgeSystems.Bridgemate.DataConnectorClasses.SharedDTOInitDTO

Namespace: BridgeSystems.Bridgemate.DataConnectorClasses.SharedDTO
Assembly: BridgeSystems.Bridgemate.DataConnector.ScoringProgramClient (in BridgeSystems.Bridgemate.DataConnector.ScoringProgramClient.dll) Version: 1.0.923.1+8676f6447fd14feb672ed9c066f2812915b8f069
Syntax
C#
public class InitDTO

The InitDTO type exposes the following members.

Constructors
 NameDescription
Public methodInitDTOInitializes a new instance of the InitDTO class
Top
Properties
 NameDescription
Public propertyAlternativeDataFolder Optional. Specifies a different directory for the BCS scoring file. Only use in advanced scenarios. If used make sure that the directory exists.
Public propertyBridgemate2Settings Optional. The settings for the Bridgemate 2 for all sections (if in use).
Public propertyBridgemate3Settings Optional. The settings for the Bridgemate 3 for all sections (if in use).
Public propertyCommands Instructions to BCS. Add up the values to combine.
1. Start BCS (if not already started).
2: Reset the Bridgemates (and App) and fill them with the provided data.
4: Start Reading from the Bridgemates, Data Connector (and App).
8: Upload the sessions to the app.
16: Minimize BCS
32:Close BCS when all results have been processed.
64: Lower the logging level from "Info" to "Debug".
128:Clear all previous data from the Data Connector queue.
Public propertyEventGuid Required if the number of sessions is greater than one. This signals that BCS should administer these sessions together.
Public propertyHandrecords Optional. The handrecords for each session.
Public propertyParticipations Optional. Each participation with its SessionGuid and PlayerNumber properties set must have a corresponding player data element that specifies at least its name.
Public propertyPlayerData Optional: the data of at least the players that will participate in the sessions. Player data is required for every participation that has its a SessionGuid and PlayerNumber properties set.
Public propertySessions Required, must be at least one.
Public propertyValidationMessages An array of messages describing problems in data integrity and invalid values.
Top
Methods
 NameDescription
Public methodValidate Validates the DTO. Produces validation messages if there are problems.
Top
Fields
 NameDescription
Public fieldStatic memberCommand_AutoShutDownBPC Instructs BCS to shut down after the last result has been processed.
Public fieldStatic memberCommand_ClearData Instructs the Data Connector to clear all its previous data and start with a clean slate.
Public fieldStatic memberCommand_LogLevel_Debug Sets the log level to "Debug" rather than "Info".
Public fieldStatic memberCommand_Minimize Instructs BCS to start minimized.
Public fieldStatic memberCommand_Reset Instructs BCS to create a new event from the data in this DTO.
Public fieldStatic memberCommand_ShowInApp Instructs BCS to upload the sessions to the Bridgemate App server.
Public fieldStatic memberCommand_StartReading Instructs BCS to start reading from the Data Connector.
Public fieldStatic memberStartBCS Instructs the Data Connector to start BCS.
Top
See Also