public TrackingEvent(TrackingEventType type, Vector3 position, Quaternion rotation, float time) { this.type = type; this.time = time; pos = new Position(position); rot = new Rotation(rotation); }
protected Event(int agentId, TrackingEventType eventType, DateTime occurredAt) { EventType = eventType; OccurredAt = occurredAt; AgentId = agentId; Seen = false; IsAlarm = TrackingEvent.AlarmTrackingEventTypes.Contains(EventType); }
internal TrackingEventRow(TrackingEventType trackingEvent, DateTime eventDateTime, string eventTypeDescription, string eventDescription, string server, string[] eventData) { this.TrackingEvent = trackingEvent; this.EventDateTime = ((eventDateTime == DateTime.MinValue) ? string.Empty : eventDateTime.UtcToUserDateTimeString()); this.EventTypeDescription = eventTypeDescription; this.EventDescription = eventDescription; this.Server = server; this.EventData = eventData; }
public DriverEventQueue Add(TrackingEventType action, int minutes = 0) { Mark = Mark.AddMinutes(minutes); _queue.Enqueue(new DriverEvent { Action = action, When = Mark, RouteSymbol = _routeSymbol }); return(this); }
protected TrackingEvent(TrackingEventType eventType, int agentId, [NotNull] string name , bool isValidLocation, DateTime time, Location agentLocation = null) : base(name, time) { EventType = eventType; AgentId = agentId; IsValidLocation = isValidLocation; AgentLocation = agentLocation; IsMissionEvent = MissionTrackingEventTypes.Contains(EventType); IsUserEvent = UserTrackingEventTypes.Contains(EventType); IsAlarm = AlarmTrackingEventTypes.Contains(EventType); }
public DriverEvent AddDriverEvent(TrackingEventType action, Visit visit, int minutes = 0) { Mark = Mark.AddMinutes(minutes); var ev = new DriverEvent { Action = action, When = Mark, Visit = visit, RouteSymbol = _routeSymbol }; _queue.Enqueue(ev); return(ev); }
public IncomingSMSFromWhitelist(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.IncomingSMSFromWhitelist, isValidLocation, time, agentLocation) { }
public InvalidOutgoingSMS(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.InvalidOutgoingSMS, isValidLocation, time, agentLocation) { }
public AgentCameBackToTheDepo(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.AgentCameBackToTheDepo, isValidLocation, time, agentLocation) { }
public GotOutOfDepoZone(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.GotOutOfDepoZone, isValidLocation, time, agentLocation) { }
public MissionEvent(int missionId, int agentId, TrackingEventType eventType, DateTime occurredAt) : base(agentId, eventType, occurredAt) { MissionId = missionId; }
public void addTrackingEvent(TrackingEventType type, string data) { //Adds event with wanted type and data addTrackingEvent(new TrackingEvent(type, transform.position, transform.rotation, Time.time)); }
public TrackingEvent(TrackingEventType type, float time) { this.type = type; this.time = time; }
public MissionCanceledFromServer(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.MissionCanceledFromServer, isValidLocation, time, agentLocation) { }
public static ItemDto FromEventType(TrackingEventType eventType) => new ItemDto((int)eventType,eventType.ToString(),eventType.GetDescription(), EventImageUrlResolver.Resolve(eventType.ToString(),true), EventImageUrlResolver.Resolve(eventType.ToString()));
public TheFailureLocationDetectedAutomatically(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.TheFailureLocationDetectedAutomatically, isValidLocation, time, agentLocation) { }
public AgentEvent(int agentId, TrackingEventType eventType, DateTime occurredAt) : base(agentId, eventType, occurredAt) { }
public TheAgentIsInFailureZone(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.TheAgentIsInFailureZone, isValidLocation, time, agentLocation) { }
public AgentLoggedIn(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.AgentLoggedIn, isValidLocation, time, agentLocation) { }
public GpsIsTurnedOn(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.GpsIsTurnedOn, isValidLocation, time, agentLocation) { }
public OutgoingCallToWhitelist(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.OutgoingCallToWhitelist, isValidLocation, time, agentLocation) { }
public TheAgentStartMoving(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.TheAgentStartMoving, isValidLocation, time, agentLocation) { }
public OTDRTestCaptured(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.OTDRTestCaptured, isValidLocation, time, agentLocation) { }
public MissionFinished(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.MissionFinished, isValidLocation, time, agentLocation) { }
public ResumedAfterPhoneRestart(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.ResumedAfterPhoneRestart, isValidLocation, time, agentLocation) { }
private void RenderEventDetails(PowerShellResults <RecipientTrackingEventRow> results) { RecipientTrackingEventRow recipientTrackingEventRow = results.Output[0]; TrackingEventType trackingEventType = TrackingEventType.None; foreach (TrackingEventRow trackingEventRow in recipientTrackingEventRow.Events) { if (trackingEventType != TrackingEventType.None) { if (trackingEventType != trackingEventRow.TrackingEvent) { HtmlGenericControl child = new HtmlGenericControl("p"); this.deliveryReportDetailsPane.Controls.Add(child); } else { this.AddHtmlBreaks(2); } } if (trackingEventType != trackingEventRow.TrackingEvent) { EncodingLabel encodingLabel = new EncodingLabel(); encodingLabel.Text = trackingEventRow.EventTypeDescription; this.deliveryReportDetailsPane.Controls.Add(encodingLabel); this.AddHtmlBreaks(1); } if (!string.IsNullOrEmpty(trackingEventRow.EventDateTime) || !string.IsNullOrEmpty(trackingEventRow.Server)) { StringBuilder stringBuilder = new StringBuilder(); EncodingLabel encodingLabel2 = new EncodingLabel(); if (!string.IsNullOrEmpty(trackingEventRow.EventDateTime)) { stringBuilder.Append(trackingEventRow.EventDateTime); } if (!string.IsNullOrEmpty(trackingEventRow.Server)) { if (stringBuilder.Length > 0) { stringBuilder.AppendFormat(" {0}", trackingEventRow.Server); } else { stringBuilder.Append(trackingEventRow.Server); } } encodingLabel2.Text = stringBuilder.ToString(); this.deliveryReportDetailsPane.Controls.Add(encodingLabel2); this.AddHtmlBreaks(1); } EncodingLabel encodingLabel3 = new EncodingLabel(); encodingLabel3.Text = trackingEventRow.EventDescription; this.deliveryReportDetailsPane.Controls.Add(encodingLabel3); if (trackingEventRow.TrackingEvent == TrackingEventType.Fail) { encodingLabel3.CssClass = "ErrorText"; if (trackingEventRow.EventData != null && trackingEventRow.EventData.Length > 0) { this.AddHtmlBreaks(1); HtmlGenericControl htmlGenericControl = new HtmlGenericControl("p"); htmlGenericControl.Attributes.Add("class", "failedDeliveryDetailText"); EncodingLabel encodingLabel4 = new EncodingLabel(); encodingLabel4.Text = trackingEventRow.EventData.StringArrayJoin("\n"); htmlGenericControl.Controls.Add(encodingLabel4); this.deliveryReportDetailsPane.Controls.Add(htmlGenericControl); } } if (trackingEventRow.TrackingEvent == TrackingEventType.Expand && trackingEventRow.EventData.Length > 0) { this.AddEditGroupLink(trackingEventRow.EventData[0]); } trackingEventType = trackingEventRow.TrackingEvent; } }
public LowBattery(TrackingEventType eventType, int agentId , bool isValidLocation, DateTime time, Location agentLocation = null) : base(eventType, agentId, Dic.AgentEventNames.LowBattery, isValidLocation, time, agentLocation) { }