Ejemplo n.º 1
0
 public BusinessProcessCaseAbortRequestBuilder(EventNotificationEventObjectType objectType, string objectId, int businessProcessStartNotificationTemplateId)
     : this()
 {
     this.ObjectType = objectType;
     this.ObjectId   = objectId;
     this.BusinessProcessStartNotificationTemplateId = businessProcessStartNotificationTemplateId;
 }
 public HttpNotification(JToken node) : base(node)
 {
     if (node["object"] != null)
     {
         this._Object = ObjectFactory.Create <ObjectBase>(node["object"]);
     }
     if (node["eventObjectType"] != null)
     {
         this._EventObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), node["eventObjectType"].Value <string>());
     }
     if (node["eventNotificationJobId"] != null)
     {
         this._EventNotificationJobId = ParseLong(node["eventNotificationJobId"].Value <string>());
     }
     if (node["templateId"] != null)
     {
         this._TemplateId = ParseInt(node["templateId"].Value <string>());
     }
     if (node["templateName"] != null)
     {
         this._TemplateName = node["templateName"].Value <string>();
     }
     if (node["templateSystemName"] != null)
     {
         this._TemplateSystemName = node["templateSystemName"].Value <string>();
     }
     if (node["eventType"] != null)
     {
         this._EventType = (EventNotificationEventType)StringEnum.Parse(typeof(EventNotificationEventType), node["eventType"].Value <string>());
     }
 }
Ejemplo n.º 3
0
 public EventNotificationScope(JToken node) : base(node)
 {
     if (node["objectId"] != null)
     {
         this._ObjectId = node["objectId"].Value <string>();
     }
     if (node["scopeObjectType"] != null)
     {
         this._ScopeObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), node["scopeObjectType"].Value <string>());
     }
 }
Ejemplo n.º 4
0
        public EventNotificationScope(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "objectId":
                    this._ObjectId = propertyNode.InnerText;
                    continue;

                case "scopeObjectType":
                    this._ScopeObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), propertyNode.InnerText);
                    continue;
                }
            }
        }
        public HttpNotification(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "object":
                    this._Object = ObjectFactory.Create <ObjectBase>(propertyNode);
                    continue;

                case "eventObjectType":
                    this._EventObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), propertyNode.InnerText);
                    continue;

                case "eventNotificationJobId":
                    this._EventNotificationJobId = ParseLong(propertyNode.InnerText);
                    continue;

                case "templateId":
                    this._TemplateId = ParseInt(propertyNode.InnerText);
                    continue;

                case "templateName":
                    this._TemplateName = propertyNode.InnerText;
                    continue;

                case "templateSystemName":
                    this._TemplateSystemName = propertyNode.InnerText;
                    continue;

                case "eventType":
                    this._EventType = (EventNotificationEventType)StringEnum.Parse(typeof(EventNotificationEventType), propertyNode.InnerText);
                    continue;
                }
            }
        }
Ejemplo n.º 6
0
 public static BusinessProcessCaseListRequestBuilder List(EventNotificationEventObjectType objectType, string objectId)
 {
     return(new BusinessProcessCaseListRequestBuilder(objectType, objectId));
 }
Ejemplo n.º 7
0
 public static BusinessProcessCaseAbortRequestBuilder Abort(EventNotificationEventObjectType objectType, string objectId, int businessProcessStartNotificationTemplateId)
 {
     return(new BusinessProcessCaseAbortRequestBuilder(objectType, objectId, businessProcessStartNotificationTemplateId));
 }
Ejemplo n.º 8
0
 public BusinessProcessCaseListRequestBuilder(EventNotificationEventObjectType objectType, string objectId)
     : this()
 {
     this.ObjectType = objectType;
     this.ObjectId   = objectId;
 }
        public EventNotificationTemplate(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "name":
                    this._Name = propertyNode.InnerText;
                    continue;

                case "systemName":
                    this._SystemName = propertyNode.InnerText;
                    continue;

                case "description":
                    this._Description = propertyNode.InnerText;
                    continue;

                case "type":
                    this._Type = (EventNotificationTemplateType)StringEnum.Parse(typeof(EventNotificationTemplateType), propertyNode.InnerText);
                    continue;

                case "status":
                    this._Status = (EventNotificationTemplateStatus)ParseEnum(typeof(EventNotificationTemplateStatus), propertyNode.InnerText);
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "manualDispatchEnabled":
                    this._ManualDispatchEnabled = ParseBool(propertyNode.InnerText);
                    continue;

                case "automaticDispatchEnabled":
                    this._AutomaticDispatchEnabled = ParseBool(propertyNode.InnerText);
                    continue;

                case "eventType":
                    this._EventType = (EventNotificationEventType)StringEnum.Parse(typeof(EventNotificationEventType), propertyNode.InnerText);
                    continue;

                case "eventObjectType":
                    this._EventObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), propertyNode.InnerText);
                    continue;

                case "eventConditions":
                    this._EventConditions = new List <Condition>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._EventConditions.Add(ObjectFactory.Create <Condition>(arrayNode));
                    }
                    continue;

                case "contentParameters":
                    this._ContentParameters = new List <EventNotificationParameter>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._ContentParameters.Add(ObjectFactory.Create <EventNotificationParameter>(arrayNode));
                    }
                    continue;

                case "userParameters":
                    this._UserParameters = new List <EventNotificationParameter>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._UserParameters.Add(ObjectFactory.Create <EventNotificationParameter>(arrayNode));
                    }
                    continue;
                }
            }
        }
 public EventNotificationTemplate(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["systemName"] != null)
     {
         this._SystemName = node["systemName"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["type"] != null)
     {
         this._Type = (EventNotificationTemplateType)StringEnum.Parse(typeof(EventNotificationTemplateType), node["type"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (EventNotificationTemplateStatus)ParseEnum(typeof(EventNotificationTemplateStatus), node["status"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["manualDispatchEnabled"] != null)
     {
         this._ManualDispatchEnabled = ParseBool(node["manualDispatchEnabled"].Value <string>());
     }
     if (node["automaticDispatchEnabled"] != null)
     {
         this._AutomaticDispatchEnabled = ParseBool(node["automaticDispatchEnabled"].Value <string>());
     }
     if (node["eventType"] != null)
     {
         this._EventType = (EventNotificationEventType)StringEnum.Parse(typeof(EventNotificationEventType), node["eventType"].Value <string>());
     }
     if (node["eventObjectType"] != null)
     {
         this._EventObjectType = (EventNotificationEventObjectType)StringEnum.Parse(typeof(EventNotificationEventObjectType), node["eventObjectType"].Value <string>());
     }
     if (node["eventConditions"] != null)
     {
         this._EventConditions = new List <Condition>();
         foreach (var arrayNode in node["eventConditions"].Children())
         {
             this._EventConditions.Add(ObjectFactory.Create <Condition>(arrayNode));
         }
     }
     if (node["contentParameters"] != null)
     {
         this._ContentParameters = new List <EventNotificationParameter>();
         foreach (var arrayNode in node["contentParameters"].Children())
         {
             this._ContentParameters.Add(ObjectFactory.Create <EventNotificationParameter>(arrayNode));
         }
     }
     if (node["userParameters"] != null)
     {
         this._UserParameters = new List <EventNotificationParameter>();
         foreach (var arrayNode in node["userParameters"].Children())
         {
             this._UserParameters.Add(ObjectFactory.Create <EventNotificationParameter>(arrayNode));
         }
     }
 }