AutobiographicMemory.AM.RecallEvent C# (CSharp) Method

RecallEvent() public method

public RecallEvent ( uint eventId ) : IBaseEvent
eventId uint
return IBaseEvent
        public IBaseEvent RecallEvent(uint eventId)
        {
            BaseEvent r;
            if (m_registry.TryGetValue(eventId, out r))
            {
                return r;
            }
            return null;
        }

Usage Example

 public EmotionDTO ToDto(AM am)
 {
     return new EmotionDTO
     {
         Type = this.EmotionType,
         Intensity = this.Intensity,
         CauseEventId =  this.CauseId,
         CauseEventName = am.RecallEvent(this.CauseId).EventName.ToString(),
     };
 }
All Usage Examples Of AutobiographicMemory.AM::RecallEvent