Example #1
0
                public CommandEvent.Body.EventRec  setEventRec(EventRec value)
                {
                    m_EventID       = value.m_EventID;
                    m_CommandResult = value.m_CommandResult;

                    return(this);
                }
Example #2
0
                public Event.Body.EventRec  setEventRec(EventRec value)
                {
                    m_EventID        = value.m_EventID;
                    m_SequenceNumber = value.m_SequenceNumber;
                    m_ReportMessage  = value.getReportMessage();

                    return(this);
                }
Example #3
0
        public static EventRec Create(string name, EventFlags flags, int priority)
        {
            EventRec result = new EventRec();

            result.Name     = name;
            result.Flags    = flags;
            result.Priority = priority;
            return(result);
        }
Example #4
0
            public Body(Body value)
            {
                /// Initiliaze the protected variables
                m_EventRec = new EventRec();
                m_EventRec.setParent(this);

                /// Copy the values
                m_EventRec = value.getEventRec();
                m_EventRec.setParent(this);
                /// This code is currently not supported
            }
Example #5
0
                public EventRec(EventRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent        = null;
                    m_EventID       = 0;
                    m_CommandResult = 0;

                    /// Copy the values
                    m_EventID       = value.m_EventID;
                    m_CommandResult = value.m_CommandResult;
                }
Example #6
0
                public bool isEqual(EventRec value)
                {
                    if (this.getEventID() != value.getEventID())
                    {
                        return(false);
                    }
                    if (this.getCommandResult() != value.getCommandResult())
                    {
                        return(false);
                    }

                    return(true);
                }
Example #7
0
                public EventRec(EventRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent         = null;
                    m_EventID        = 0;
                    m_SequenceNumber = 0;
                    m_ReportMessage  = new ReportMessage();
                    m_ReportMessage.setParent(this);

                    /// Copy the values
                    m_EventID        = value.m_EventID;
                    m_SequenceNumber = value.m_SequenceNumber;
                    m_ReportMessage  = value.getReportMessage();
                }
Example #8
0
                public bool isEqual(EventRec value)
                {
                    if (this.getEventID() != value.getEventID())
                    {
                        return(false);
                    }
                    if (this.getSequenceNumber() != value.getSequenceNumber())
                    {
                        return(false);
                    }

                    if (!this.getReportMessage().isEqual(value.getReportMessage()))
                    {
                        return(false);
                    }

                    return(true);
                }
Example #9
0
        private static EventRecListViewModel GetEventRecListViewModelEventRecListViewModel(EventReq dynamicEventReq, JsonServiceClient ServiceClient)
        {
            var eventRecListViewModel = new EventRecListViewModel();
            var events = new Events {
                From = dynamicEventReq.From, To = dynamicEventReq.To
            };

            try
            {
                var response = ServiceClient.Get(events);
                foreach (var ev in response.EventRecords)
                {
                    var evViewR = new EventRec
                    {
                        Category     = ev.Category,
                        Server       = ev.ComputerName,
                        EventCode    = ev.EventCode,
                        EventType    = ev.EventType,
                        InsMessage   = ev.InsertionStrings,
                        Logfile      = ev.Logfile,
                        Msg          = ev.Message,
                        RecordNr     = ev.RecordNumber,
                        Source       = ev.SourceName,
                        Time         = ev.TimeGenerated.ToString("O"),
                        Type         = ev.Type,
                        SearchTermNr = ev.SearchTerm
                    };
                    eventRecListViewModel.EventList.Add(evViewR);
                }
            }
            catch (WebServiceException exception)
            {
                throw;
            }
            return(eventRecListViewModel);
        }
Example #10
0
                public bool isEqual(EventRec value)
                {
                    if (this.getEventID() != value.getEventID())
                    {
                    return false;
                    }
                    if (this.getSequenceNumber() != value.getSequenceNumber())
                    {
                    return false;
                    }

                    if (!this.getReportMessage().isEqual(value.getReportMessage()))
                    {
                    return false;
                    }

                    return true;
                }
Example #11
0
 public Body()
 {
     m_EventRec = new EventRec();
     m_EventRec.setParent(this);
 }
Example #12
0
                public EventRec(EventRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent = null;
                    m_EventID = 0;
                    m_CommandResult = 0;

                    /// Copy the values
                    m_EventID = value.m_EventID;
                    m_CommandResult = value.m_CommandResult;
                }
Example #13
0
                public bool isEqual(EventRec value)
                {
                    if (this.getEventID() != value.getEventID())
                    {
                    return false;
                    }
                    if (this.getCommandResult() != value.getCommandResult())
                    {
                    return false;
                    }

                    return true;
                }
Example #14
0
 public void setEventRec(EventRec value)
 {
     m_EventRec = value;
     setParentPresenceVector();
 }
Example #15
0
                public CommandEvent.Body.EventRec setEventRec(EventRec value)
                {
                    m_EventID = value.m_EventID;
                    m_CommandResult = value.m_CommandResult;

                    return this;
                }
Example #16
0
 public bool notEquals(EventRec value)
 {
     return(!this.isEqual(value));
 }
Example #17
0
 public void setParent(EventRec parent)
 {
     m_parent = parent;
 }
Example #18
0
 public Body()
 {
     m_EventRec = new EventRec();
     m_EventRec.setParent(this);
 }
Example #19
0
                public Event.Body.EventRec setEventRec(EventRec value)
                {
                    m_EventID = value.m_EventID;
                    m_SequenceNumber = value.m_SequenceNumber;
                    m_ReportMessage = value.getReportMessage();

                    return this;
                }
Example #20
0
 public void setParent(EventRec parent)
 {
     m_parent = parent;
 }
Example #21
0
 public bool notEquals(EventRec value)
 {
     return !this.isEqual(value);
 }
Example #22
0
            public Body(Body value)
            {
                /// Initiliaze the protected variables
                m_EventRec = new EventRec();
                m_EventRec.setParent(this);

                /// Copy the values
                m_EventRec = value.getEventRec();
                m_EventRec.setParent(this);
                /// This code is currently not supported
            }
Example #23
0
                public EventRec(EventRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent = null;
                    m_EventID = 0;
                    m_SequenceNumber = 0;
                    m_ReportMessage = new ReportMessage();
                    m_ReportMessage.setParent(this);

                    /// Copy the values
                    m_EventID = value.m_EventID;
                    m_SequenceNumber = value.m_SequenceNumber;
                    m_ReportMessage = value.getReportMessage();
                }
Example #24
0
 public void setEventRec(EventRec value)
 {
     m_EventRec = value;
     setParentPresenceVector();
 }
Example #25
0
            public Event.Body setBody(Body value)
            {
                m_EventRec = value.getEventRec();
                m_EventRec.setParent(this);
                /// This code is currently not supported

                return this;
            }