Click or drag to resize

ResultDTO Class

This class carries information on the result of a board that was played in a specific round on a specific table. The Level property is also used to express "No Play" and artificial results (using negative values).
Inheritance Hierarchy
SystemObject
  BridgeSystems.Bridgemate.DataConnectorClasses.SharedDTOResultDTO

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 ResultDTO

The ResultDTO type exposes the following members.

Constructors
 NameDescription
Public methodResultDTOInitializes a new instance of the ResultDTO class
Top
Properties
 NameDescription
Public propertyBoardNumber Required, must be greater than zero. The board must exist, i.e.: it must have been specified in the RoundDTO's LowBoardNumber and HighBoardNumber properties.
Public propertyDeclarerDirection The direction of the declarer: 0: NA 1: North or NorthSouth 2: East or EastWest 3: South 4: West
Public propertyDeclaringPair Required: either the PairNorthSouth or the PairEastwest number.
Public propertyDenomination The denomination: 0: NA 1: Clubs 2: Diamonds 3: Hearts 4: Spades 5: NoTrump
Public propertyIsDeleted Marks the result as deleted. All properties below will be ignored.
Public propertyLeadCardRank Optional: 2-10: the card value 11: Jack 12: Queen 13: King 14: Ace
Public propertyLeadCardSuit Required when LeadCardRank > 0 1: Clubs 2: Diamonds 3: Hearts 4: Spades
Public propertyLevel The contract level: 1-7 natural contract 0 Pass -1 Avg-/Avg- -2 Avg-/Avg -3 Avg-/Av+ -4 Avg/Avg- -5 Avg/Avg -6 Avg/Avg+ -7 Avg+/Avg- -8 Avg+/Avg -9 Avg+/Avg+ -10 No play
Public propertyPairEastWest Required:The pairnumber for EastWest
Public propertyPairNorthSouth Required: The pairnumber for NorthSouth
Public propertyRoundNumber Required, must be greater than zero. The round must exist.
Public propertyScoringDirection Required. The pair for which the result will count towards their result. 1: NortSouth 2: EastWest 3: For NorthSouth as wel as for EastWest Note: currently split scores (scores different for NS and EW) are not supported. BCS will work with the NS value.
Public propertySectionLetters Required, the letters of the section in which the result was obtained. The section must exist.
Public propertySessionGuid Required.The guid of the session the result belongs to.
Public propertyStake The stake of the contract: 0: normal 1: doubled 2: redoubled
Public propertyTableNumber Required, must be greater than zero. The table must exist.
Public propertyTotalTricks A number between 0 and 13 describing the number of tricks made. Zero tricks can also mean: pass, or artificial result (see Level)
Public propertyValidationMessages An array of messages describing problems in data integrity and invalid values.
Top
Methods
 NameDescription
Public methodIsSwitched Calculates if the board was played int the NS direction by the EW pair or vice versa.
Public methodToString
(Overrides ObjectToString)
Public methodValidate Validates the DTO. Produces validation messages if there are problems.
Top
Fields
 NameDescription
Public fieldStatic memberAvgAvgAvg An artificial score of Average for the North-South pair and Average for the East-West pair.
Public fieldStatic memberAvgAvgMin An artificial score of Average for the North-South pair and Average Minus for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgAvgPlus An artificial score of Average for the North-South pair and Average Plus for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgMinAvg An artificial score of Average Minus for the North-South pair and Average for the East-West pair.
Public fieldStatic memberAvgMinMin An artificial score of Average Minus for the North-South pair and Average Minus for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgMinPlus An artificial score of Average Minus for the North-South pair and Average Plus for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgPlusAvg An artificial score of Average Plus for the North-South pair and Average for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgPlusMin An artificial score of Average Plus for the North-South pair and Average Minus for the East-West pair if the ScoringDirection property is ScoringDirection_NS or ScoringDirection_NSEW. If the ScoringDirection is ScoringDirection_EW then the values are reversed.
Public fieldStatic memberAvgPlusPlus An artificial score of Average Plus for the North-South pair and Average Plus for the East-West pair.
Public fieldStatic memberContractLevel_NoPLay The board was not played.
Public fieldStatic memberContractLevel_Pass The contract of the board was "Pass".
Public fieldStatic memberDenomination_Clubs The denomination of the contract is Clubs.
Public fieldStatic memberDenomination_Diamonds The denomination of the contract is Diamonds.
Public fieldStatic memberDenomination_Hearts The denomination of the contract is Hearts.
Public fieldStatic memberDenomination_NoTrump The denomination of the contract is No Trump.
Public fieldStatic memberDenomination_Spades The denomination of the contract is Spades.
Public fieldStatic memberDirection_East Declarer is the player on the East seat.
Public fieldStatic memberDirection_North Declarer is the player on the North seat.
Public fieldStatic memberDirection_South Declarer is the player on the South seat.
Public fieldStatic memberDirection_West Declarer is the player on the West seat.
Public fieldStatic memberScoringDirection_EW The result pertains to East-West only. i.e.: The North-South pair may have a different result and a ResultDTO with its ScoringDirection property set to ScoringDirection_NS must be provided.
Public fieldStatic memberScoringDirection_NS The result pertains to North-South only. i.e.: The East-West pair may have a different result and a ResultDTO with its ScoringDirection property set to ScoringDirection_EW must be provided.
Public fieldStatic memberScoringDirection_NSEW The result pertains to both North-South and East-West.
Public fieldStatic memberStake_Doubled The contract was doubled.
Public fieldStatic memberStake_Normal The contract was not doubled or redoubled.
Public fieldStatic memberStake_Redoubled The contract was redoubled.
Top
See Also