Ejemplo n.º 1
0
        public IOsbideEvent FromDict(Dictionary <string, object> values)
        {
            HelpfulMarkGivenEvent evt = new HelpfulMarkGivenEvent();

            if (values.ContainsKey("Id"))
            {
                evt.Id = (int)values["Id"];
            }
            if (values.ContainsKey("EventLogId"))
            {
                evt.EventLogId = (int)values["EventLogId"];
            }
            if (values.ContainsKey("EventLog"))
            {
                evt.EventLog = (EventLog)values["EventLog"];
            }
            if (values.ContainsKey("EventDate"))
            {
                evt.EventDate = (DateTime)values["EventDate"];
            }
            if (values.ContainsKey("SolutionName"))
            {
                evt.SolutionName = values["SolutionName"].ToString();
            }
            if (values.ContainsKey("LogCommentEvent"))
            {
                evt.LogCommentEvent = (LogCommentEvent)values["LogCommentEvent"];
            }
            if (values.ContainsKey("LogCommentEventId"))
            {
                evt.LogCommentEventId = (int)values["LogCommentEventId"];
            }
            return(evt);
        }
Ejemplo n.º 2
0
 public HelpfulMarkGivenEvent(HelpfulMarkGivenEvent other)
 {
     Id                = other.Id;
     EventLogId        = other.EventLogId;
     EventLog          = other.EventLog;
     LogCommentEventId = other.LogCommentEventId;
     LogCommentEvent   = other.LogCommentEvent;
     EventDate         = other.EventDate;
     SolutionName      = other.SolutionName;
 }