public EmotionDTO ToDto(AM am) { return new EmotionDTO { Type = this.EmotionType, Intensity = this.Intensity, CauseEventId = this.CauseId, CauseEventName = am.RecallEvent(this.CauseId).EventName.ToString(), }; }
public string ToString(AM am) { StringBuilder builder = ObjectPool<StringBuilder>.GetObject(); builder.AppendFormat("{0}: {1}", EmotionType, am.RecallEvent(CauseId).EventName); if (this.Direction != null) builder.AppendFormat(" {0}", Direction); var result = builder.ToString(); builder.Length = 0; ObjectPool<StringBuilder>.Recycle(builder); return result; }
public IBaseEvent GetCause(AM am) { return am.RecallEvent(CauseId); }