For Babelfish Release 1.12.5.15

Score Class

Definition

Namespace: Scopos.BabelFish.DataModel.Athena
Assembly: BabelFish (in BabelFish.dll) Version: 1.12.5.15+bc7490f802416c9e774304c66372b6a26afede1d
C#
[SerializableAttribute]
public class Score : ICheckSum
Inheritance
Object    Score
Implements
ICheckSum

Constructors

ScoreInitializes a new instance of the Score class

Properties

CheckSum A hashed value that is unique to this instance. The value is calculated by the CalculateChecksum() method.
D Score in decimal value
I Score in integer value
IsZero Returns a boolean indicating if this Score is 0 (all values are zero).
J Special use case score. Value is displayed to one decimal place. Known to be used to hold a averaged integer score, or in Group Mode to display the Area of the shot group.
K Special use case score. Value is displayed to one decimal place. Known to be used to hold an averaged decimal score, or in Group Mode to display the Roundness of the shot group.
L Special use case score. Value is displayed to one decimal place. Known to be used to hold an averaged inner ten score, or in Group Mode to display the distance the center of the group is from the center of the target.
NumShotsFired This field is used internally to BabelFish only. Its value is neither written to or read from JSON.
S Special Sum score. Usually used in an Event to add the Integer value from one child Event with the Decimal value from a different child Event. ONly applicable to Scores from Event Stypes == EVENT.
X Number of inner tens.

Methods

Add 
CalculateChecksum Calculates a checksum value that represents the current state of the instance's properties, excluding the LastUpdated and CheckSum properties. Assuming the underlying data did not change, the value of this method should be the same across multiple serializations and deserializations of the same instance.

The intent of this method is two-fold. First to provide a way to verify the integrity of the instance's data after deserialization. If someone (or something) modified the serialized values then CalculateChecksum should return a different value. While we may not know what changed, we can at least detect something manipulated the data.

The second intent is to compare the value of the instance on the server to the local copy. If the value is the same (on the server and locally) then the server has the up to date instance value.

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAvgShotFired 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetScoreComponentScore 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ShouldSerializeJ 
ShouldSerializeK 
ShouldSerializeL 
ToString
(Overrides ObjectToString)
ToString(ScoreComponent) 
ToString(ScoreFormatCollection, String) 

Operators

See Also