//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.3053
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System.Xml.Serialization;
using System.Xml;
using System;
//
// This source code was auto-generated by xsd, Version=2.0.50727.3038.
//
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "EventInfo__1.0")]
[System.Xml.Serialization.XmlRootAttribute(ElementName = "XML", Namespace = "EventInfo__1.0", IsNullable = false)]
public partial class EventList
{
private EventInfo[] _itemsField;
public EventList()
{
_itemsField = new EventInfo[1];
_itemsField[0] = new EventInfo();
}
public EventList(int count)
{
_itemsField = new EventInfo[count];
for (int i = 0; i < count; i++)
_itemsField[i] = new EventInfo();
}
public EventList(string xml)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
//Assuming doc is an XML document containing a serialized object and objType is a System.Type set to the type of the object.
if (doc.DocumentElement != null)
{
XmlNodeReader reader = new XmlNodeReader(doc.DocumentElement);
XmlSerializer ser = new XmlSerializer(typeof(EventList));
EventList obj = (EventList)ser.Deserialize(reader);
_itemsField = obj.Items;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("EventInfo")]
public EventInfo[] Items
{
get
{
return this._itemsField;
}
set
{
this._itemsField = value;
}
}
public override string ToString()
{
EventList obj = new EventList {Items = this._itemsField};
XmlSerializer ser = new XmlSerializer(obj.GetType());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter writer = new System.IO.StringWriter(sb);
ser.Serialize(writer, obj);
return sb.ToString();
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
//[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLEventInfo", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class EventInfo
{
private EventInfoEventData[] _eventDataField;
private EventInfoPlayEventData[] _playEventDataField;
private SecondaryEvents _secondaryEventsField;
public EventInfo()
{
_eventDataField = new EventInfoEventData[1];
_eventDataField[0] = new EventInfoEventData();
_playEventDataField = new EventInfoPlayEventData[1];
_playEventDataField[0] = new EventInfoPlayEventData();
_secondaryEventsField = new SecondaryEvents();
}
public EventInfo(string xml)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
//Assuming doc is an XML document containing a serialized object and objType is a System.Type set to the type of the object.
if (doc.DocumentElement != null)
{
XmlNodeReader reader = new XmlNodeReader(doc.DocumentElement);
XmlSerializer ser = new XmlSerializer(typeof(EventInfo));
EventInfo obj = (EventInfo)ser.Deserialize(reader);
_eventDataField = obj.EventData;
_playEventDataField = obj.PlayEventData;
_secondaryEventsField = obj.SecondaryEvents;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("SecondaryEvents")]
public SecondaryEvents SecondaryEvents
{
get
{
return this._secondaryEventsField;
}
set
{
this._secondaryEventsField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("EventData")]
public EventInfoEventData[] EventData
{
get
{
return this._eventDataField;
}
set
{
this._eventDataField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("PlayEventData")]
public EventInfoPlayEventData[] PlayEventData
{
get
{
return this._playEventDataField;
}
set
{
this._playEventDataField = value;
}
}
public override string ToString()
{
EventInfo obj = new EventInfo {EventData = _eventDataField, PlayEventData = _playEventDataField, SecondaryEvents = _secondaryEventsField};
XmlSerializer ser = new XmlSerializer(obj.GetType());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter writer = new System.IO.StringWriter(sb);
ser.Serialize(writer, obj);
return sb.ToString();
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLEventInfoEventData", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class EventInfoEventData
{
private string _uuidField;
private string _childUuidField;
private string _eventTypeField;
private string _channelField;
private string _strUriField;
private string _triggerField;
private string _parentUuidField;
private string _eventStatusField;
private string _errorField;
private string _nameField;
private string _userNameField;
private string _trafficIdField;
private string _startDateField;
private string _startTimeField;
private string _durationField = "00:00:00:00";
private string _repeatModeField;
private string _purgeDateField;
private string _purgeTimeField;
private string _purgeCountField;
private string _completedField;
private string _commentField;
private string _lastStartDateField;
private string _lastStartTimeField;
private string _lastDurationField;
private string _lastErrorField;
private string _statusField;
private string _EtoE;
private string _repeatDate;
private string _repeatTime;
private string _repeatEndDate;
private string _repeatEndTime;
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string uuid
{
get
{
return this._uuidField;
}
set
{
this._uuidField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string childUuid
{
get
{
return this._childUuidField;
}
set
{
this._childUuidField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string eventType
{
get
{
return this._eventTypeField;
}
set
{
this._eventTypeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string channel
{
get
{
return this._channelField;
}
set
{
this._channelField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string strUri
{
get
{
return this._strUriField;
}
set
{
this._strUriField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string trigger
{
get
{
return this._triggerField;
}
set
{
this._triggerField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string parentUuid
{
get
{
return this._parentUuidField;
}
set
{
this._parentUuidField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string eventStatus
{
get
{
return this._eventStatusField;
}
set
{
this._eventStatusField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string error
{
get
{
return this._errorField;
}
set
{
this._errorField = value;
}
}
//movie masks set in eventinfo.error data
//#define EVTSRV_MASK_MMOVIE_DOESNOT_EXIST ((long) (1<<0))//0x1
//#define EVTSRV_MASK_MMOVIE_DURATION ((long) (1<<1))//0x2
//#define EVTSRV_MASK_AMOVIE_DOESNOT_EXIST ((long) (1<<2))//0x4
//#define EVTSRV_MASK_AMOVIE_DURATION ((long) (1<<3))//0x8
//#define EVTSRV_MASK_INVALID_RESOURCE ((long) (1<<4))//0x10
//#define EVTSRV_MASK_RESOURCE_CONFLICT ((long) (1<<5))//0x20
//#define EVTSRV_MASK_MOVIE_TIMECODE_NOT_FOUND ((long) (1<<6))//0x40
//#define EVTSRV_MASK_AMOVIE_TIMECODE_NOT_FOUND ((long) (1<<7))//0x80
//#define EVTSRV_MASK_INCORRECT_MMOVIE_FORMAT ((long) (1<<8))//0x100
//#define EVTSRV_MASK_INCORRECT_AMOVIE_FORMAT ((long) (1<<9))//0x200
public string errorStr
{
get
{
string response;
int iError = Convert.ToInt32(this._errorField);
if (iError == 0)
response = "";
else if (iError == 1)
response = "EVTSRV_MASK_MMOVIE_DOESNOT_EXIST";
else if (iError == 2)
response = "EVTSRV_MASK_MMOVIE_DURATION";
else if (iError == 4)
response = "EVTSRV_MASK_AMOVIE_DOESNOT_EXIST";
else if (iError == 8)
response = "EVTSRV_MASK_AMOVIE_DURATION";
else if (iError == 10)
response = "EVTSRV_MASK_INVALID_RESOURCE";
else if (iError == 20)
response = "EVTSRV_MASK_RESOURCE_CONFLICT";
else if (iError == 40)
response = "EVTSRV_MASK_MOVIE_TIMECODE_NOT_FOUND";
else if (iError == 80)
response = "EVTSRV_MASK_AMOVIE_TIMECODE_NOT_FOUND";
else if (iError == 100)
response = "EVTSRV_MASK_INCORRECT_MMOVIE_FORMAT";
else if (iError == 200)
response = "EVTSRV_MASK_INCORRECT_AMOVIE_FORMAT";
else if (iError == 400)
response = "EVTSRV_MASK_INVALID_GPIO_NAME";
else
response = "Unknown";
return response;
}
}
public string status
{
get
{
return this._statusField;
}
set
{
this._statusField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string name
{
get
{
return this._nameField;
}
set
{
this._nameField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string userName
{
get
{
return this._userNameField;
}
set
{
this._userNameField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string trafficId
{
get
{
return this._trafficIdField;
}
set
{
this._trafficIdField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string startDate
{
get
{
return this._startDateField;
}
set
{
this._startDateField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string startTime
{
get
{
return this._startTimeField;
}
set
{
this._startTimeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string duration
{
get
{
return this._durationField;
}
set
{
this._durationField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string repeatMode
{
get
{
return this._repeatModeField;
}
set
{
this._repeatModeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string purgeDate
{
get
{
return this._purgeDateField;
}
set
{
this._purgeDateField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string purgeTime
{
get
{
return this._purgeTimeField;
}
set
{
this._purgeTimeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string purgeCount
{
get
{
return this._purgeCountField;
}
set
{
this._purgeCountField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string completed
{
get
{
return this._completedField;
}
set
{
this._completedField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string comment
{
get
{
return this._commentField;
}
set
{
this._commentField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string lastStartDate
{
get
{
return this._lastStartDateField;
}
set
{
this._lastStartDateField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string lastStartTime
{
get
{
return this._lastStartTimeField;
}
set
{
this._lastStartTimeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string lastDuration
{
get
{
return this._lastDurationField;
}
set
{
this._lastDurationField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string lastError
{
get
{
return this._lastErrorField;
}
set
{
this._lastErrorField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string EtoE
{
get
{
return this._EtoE;
}
set
{
this._EtoE = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string repeatDate
{
get
{
return _repeatDate;
}
set
{
_repeatDate = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string repeatTime
{
get
{
return _repeatTime;
}
set
{
_repeatTime = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string repeatEndDate
{
get
{
return _repeatEndDate;
}
set
{
_repeatEndDate = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string repeatEndTime
{
get
{
return _repeatEndTime;
}
set
{
_repeatEndTime = value;
}
}
public override string ToString()
{
EventInfoEventData obj = this;
XmlSerializer ser = new XmlSerializer(obj.GetType());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter writer = new System.IO.StringWriter(sb);
ser.Serialize(writer, obj);
return sb.ToString();
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "XMLEventInfoPlayEventData", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class EventInfoPlayEventData
{
private string _markInField;
private string _isMarkInAbsField;
private string _altUriField;
private string _altMarkInField;
private string _isAltMarkInAbsField;
public EventInfoPlayEventData()
{
_markInField = "00:00:00:00";
_isMarkInAbsField = "true";
_altMarkInField = "00:00:00:00";
_isAltMarkInAbsField = "true";
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string markIn
{
get
{
return this._markInField;
}
set
{
this._markInField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string isMarkInAbs
{
get
{
return this._isMarkInAbsField;
}
set
{
this._isMarkInAbsField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string altUri
{
get
{
return this._altUriField;
}
set
{
this._altUriField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string altMarkIn
{
get
{
return this._altMarkInField;
}
set
{
this._altMarkInField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string isAltMarkInAbs
{
get
{
return this._isAltMarkInAbsField;
}
set
{
this._isAltMarkInAbsField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "SecondaryEvents", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class SecondaryEvents
{
private SecondaryEvent[] _secondaryEvent;
public SecondaryEvents()
{
_secondaryEvent = new SecondaryEvent[5];
for (int i = 0; i < 5; i++)
_secondaryEvent[i] = new SecondaryEvent();
}
public bool IsGpiOutputEventPresent
{
get
{
for (int i = 0; i < 5; i++)
{
if (string.Compare(_secondaryEvent[i].type, "GpiOutput", true) == 0)
return true;
}
return false;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("SecondaryEvent")]
public SecondaryEvent[] SecondaryEvent
{
get
{
return this._secondaryEvent;
}
set
{
this._secondaryEvent = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "SecondaryEvent", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class SecondaryEvent
{
private string _uuidField;
private string _typeField;
private string _trafficIdField;
private string _errorField;
private string _lastErrorField;
private GpiOutput _gpiOutputField;
public SecondaryEvent()
{
_gpiOutputField = new GpiOutput();
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string uuid
{
get
{
return this._uuidField;
}
set
{
this._uuidField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string type
{
get
{
return this._typeField;
}
set
{
this._typeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string trafficId
{
get
{
return this._trafficIdField;
}
set
{
this._trafficIdField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string error
{
get
{
return this._errorField;
}
set
{
this._errorField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string lastError
{
get
{
return this._lastErrorField;
}
set
{
this._lastErrorField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("GpiOutput")]
public GpiOutput GpiOutput
{
get
{
return this._gpiOutputField;
}
set
{
this._gpiOutputField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "GpiOutput", AnonymousType = true, Namespace = "EventInfo__1.0")]
public partial class GpiOutput
{
private string _nameField;
private string _positionField;
private string _offsetField;
private string _typeField;
private string _durationField;
public GpiOutput()
{
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string name
{
get
{
return this._nameField;
}
set
{
this._nameField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string position
{
get
{
return this._positionField;
}
set
{
this._positionField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string offset
{
get
{
return this._offsetField;
}
set
{
this._offsetField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string type
{
get
{
return this._typeField;
}
set
{
this._typeField = value;
}
}
///
[System.Xml.Serialization.XmlAttributeAttribute()]
public string duration
{
get
{
return this._durationField;
}
set
{
this._durationField = value;
}
}
}