public IBaseEvent RecallEvent(uint eventId) { BaseEvent r; if (m_registry.TryGetValue(eventId, out r)) { return r; } return null; }
public EmotionDTO ToDto(AM am) { return new EmotionDTO { Type = this.EmotionType, Intensity = this.Intensity, CauseEventId = this.CauseId, CauseEventName = am.RecallEvent(this.CauseId).EventName.ToString(), }; }