For Babelfish Release 1.11.1.3

ResultEvent Class

A ResultEvent represents the score one participant earned in an Event. ResultEvents often contain the score not just for the top level Event, but for the children as well.

Definition

Namespace: Scopos.BabelFish.DataModel.OrionMatch
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public class ResultEvent : IEventScoreProjection, 
	IEventScores, IParticipant, IRLIFItem, ISquadding
Inheritance
Object    ResultEvent
Implements
IEventScoreProjection, IEventScores, IParticipant, IRLIFItem, ISquadding

Constructors

Properties

BottomRank For internal use only, to learn which ResultEvents to apply Command Automation to
EventScores 
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 UTC time this IEventScore was last updated.
LocalDate The Local Date that this score was shot. NOTE Local Date is not necessarily the same as the GMT date.
MatchID The local Match ID that generated this ResultEvent. Information on that match may be looked up in the ResultList's Metadata field.
Participant Data on the person or team who shot this score.
ProjectedRank The projected rank of this competitor, using projected scores.
ProjectedRankOrder ProjectedRankOrder is very nearly the same as ProjectedRank. The difference is if there is an unbreakable tie. In an unbreakable tie the two partjicipants are given the same ProjectedRank but different ProjectedRankOrder.
Rank The absolute ranking of this competitor, using actual (and not projected) scores fired.
RankDelta The change in this participant's result list ranking. A positive value means the participant has moved up in the ranking. A negative value means the participant has moved down.

A change in the ranking can only happen when the participant is shooting (INTERMEDIATE Result Status), so there is no difference between an absolute and projected ranking change. They are all projected.

RankOrder RankOrder is very nearly the same as Rank. The difference is if there is an unbreakable tie. In an unbreakable tie the two partjicipants are given the same Rank but different RankOrder.
ResultCOFID 
ResultCofScores 
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() In the Result Event object, which is part of a Resuslt List, the Shots dictionary is purposefully not included to conserve length of data. It is included in ResultEvents because of the IEventScoreProjection interface.
SquaddingAssignment 
TeamMembers If this is a team score, the TeamMembers will be the scores of the team members.If this is an Individual value will be null.

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)
KeyForResultCofScore(MatchID, String) The idea of this name scheme for the key is to use matchId as a namespace. Since each event name within a match has to be unique, and each matchId is unique, then the key too will be unique.
KeyForResultCofScore(String, String) The idea of this name scheme for the key is to use matchId as a namespace. Since each event name within a match has to be unique, and each matchId is unique, then the key too will be unique.
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 
ShouldSerializeTeamMembers A Newtonsoft Conditional Property to only serialize TeamMembers when the list has something in it. https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)

See Also