For Babelfish Release 1.11.1.3

ResultCOF Class

Result COF format for (JSONVersion) "2022-04-09"

Definition

Namespace: Scopos.BabelFish.DataModel.OrionMatch
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
[SerializableAttribute]
public class ResultCOF : IEventScoreProjection, IEventScores, 
	IParticipant
Inheritance
Object    ResultCOF
Implements
IEventScoreProjection, IEventScores, IParticipant

Constructors

Properties

AccountNumberObsolete
CourseOfFireDef SetName of the Course Of Fire definition
Creator String holding the software (Orion Scoring System) and Version number of the software.
DefaultTargetDefinition The name of the Target definition to use as the default when creating a new Course of Fire. Must be a value specified in the TargetCollectionDef.
Delta Boolean indicating if this is a partial Result COF that contains only delta (Delta is true), or a Result COF that has all of the EventScores and Shots (Delta is false). ResultCOF pulled from the REST API, this value should be false. ResultCOF pushed from the IoT Topic, this value should be true.
EventScores Scores for each composite Event. The Key of the Dictionary is the Event Name. the Value is the Event Score
FiringPointNumber The Firing Point Label of the current match, this is a string because it could not be a number
GenerativeEvent The event that caused the publication of this Result COF. Current known values are an empty string, ShotDetected, and NotSureButWasntAShot
JSONVersion The Version string of the JSON document. Should be "2022-04-09"
LastShot Returns the last shot fired, to include both competition and sighting shots.

Value should only be set when shooting on ESTs. On paper, its not practically possible to know what the last shot was.

LastUpdated The GMT time this ResultCOF was last updated
LiveDisplay Describes how to display shot graphics and (text) scores to spectators, during a Live event. LAE: Changed to ShotGraphicDisplays from Show. was not functioning properly.
LiveTopic The IoT Topic to monitor to receive live updates to this Result Course of Fire. Note if the Result COF is completed, no updated will be provided on this topic.
LocalDate The Local Date that this score was shot. NOTE Local Date is not necessarily the same as the GMT date.
MatchID Unique ID for the match.
MatchLocation City, state, and possible country of the location of the match
MatchName Human readable name of the match.
MatchType 
Owner The Owner of this data. If it starts with "OrionAcct" this it is owned by a club, and the data is considered public. If it is a GUID, this it is the User ID of the person who owns the data, and is considered protected.
Obsolete
OwnerId The Owner of this data. If it starts with "OrionAcct" this it is owned by a club, and the data is considered public. If it is a GUID, this it is the User ID of the person who owns the data, and is considered protected.
ParentID Unique ID for the parent of this match, if this is a Virtual Match. If this is not a Virtual Match, then it will be the same value as MatchID.
Participant Data on the person or team who shot this score.
PostDisplay Describes how to display shot graphics and (text) scores to spectators, after an event is completed.
ResultCOFID GUID assigned to this result
ResultCofScores Scores from Merged matches (e.g. tournaments, e.g. match groups) Key is (not sure yet) $"{MatchID}: {EventName}"
ScoreConfigName SetName of the ScoreConfig used in this match. NOTE: The name of the ScoreFormatCollection is specified in the Course of Fire
Shots Scores for each Singular Event (usually a Shot). The Key is the sequence number, which is represented here as a string, but is really a float. The Value is the Shot object. To get a dictionary of Shots by their EventName, use GetShotsByEventName()
Status The status of this Result COF. It is generally best to call .GetStatus() instead of reading the value from .Status, as the status may be updated if the last updated time is more than an hour old.
  • FUTURE
  • INTERMEDIATE
  • UNOFFICIAL
  • OFFICIAL
TargetCollectionName Name of the TargetCollection used in this match.
UserID The GUID of the orion app user who shot this score. Is blank if not known.

Methods

CurrentlyCompetingOrRecentlyDone Returns a boolean indicating if the participant is currently competing (same as Status == INTERMEDIATE) or they are recently done. Recently done is determined by the age of the last shot.
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)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLastCompetitionShot Returns the last shot fired from the Shots Property, which only includes competition shots, if no shots have been fired, will return NULL
GetShotsByEventName Returns a copy of the Shots dictionary, but with the key being the Singular's EventName.
GetStatus Returns the Status of the top level Event (Event Type Event).
GetTeamMembersAsIEventScoreProjection 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ProjectScores Project the scores in the .EventScores dictionary, using the passed in ProjectorOfScores.
SetTeamMembersFromIEventScoreProjection 
ShouldSerializeResultCofScores 
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)

See Also