public TransactionHistoryFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "entityReferenceEqual": this._EntityReferenceEqual = (EntityReferenceBy)StringEnum.Parse(typeof(EntityReferenceBy), propertyNode.InnerText); continue; case "startDateGreaterThanOrEqual": this._StartDateGreaterThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "endDateLessThanOrEqual": this._EndDateLessThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (TransactionHistoryOrderBy)StringEnum.Parse(typeof(TransactionHistoryOrderBy), propertyNode.InnerText); continue; } } }
public EntitlementFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "entitlementTypeEqual": this._EntitlementTypeEqual = (TransactionType)StringEnum.Parse(typeof(TransactionType), propertyNode.InnerText); continue; case "entityReferenceEqual": this._EntityReferenceEqual = (EntityReferenceBy)StringEnum.Parse(typeof(EntityReferenceBy), propertyNode.InnerText); continue; case "isExpiredEqual": this._IsExpiredEqual = ParseBool(propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (EntitlementOrderBy)StringEnum.Parse(typeof(EntitlementOrderBy), propertyNode.InnerText); continue; } } }
public UserAssetRule(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = ParseLong(propertyNode.InnerText); continue; case "ruleType": this._RuleType = (RuleType)StringEnum.Parse(typeof(RuleType), propertyNode.InnerText); continue; case "name": this._Name = propertyNode.InnerText; continue; case "description": this._Description = 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; } } }
public Tag(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = ParseInt(propertyNode.InnerText); continue; case "tag": this._Tag = propertyNode.InnerText; continue; case "taggedObjectType": this._TaggedObjectType = (TaggedObjectType)StringEnum.Parse(typeof(TaggedObjectType), propertyNode.InnerText); continue; case "partnerId": this._PartnerId = ParseInt(propertyNode.InnerText); continue; case "instanceCount": this._InstanceCount = ParseInt(propertyNode.InnerText); continue; case "createdAt": this._CreatedAt = ParseInt(propertyNode.InnerText); continue; case "updatedAt": this._UpdatedAt = ParseInt(propertyNode.InnerText); continue; } } }
public CaptionAssetBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "captionParamsIdEqual": this._CaptionParamsIdEqual = ParseInt(propertyNode.InnerText); continue; case "captionParamsIdIn": this._CaptionParamsIdIn = propertyNode.InnerText; continue; case "formatEqual": this._FormatEqual = (CaptionType)StringEnum.Parse(typeof(CaptionType), propertyNode.InnerText); continue; case "formatIn": this._FormatIn = propertyNode.InnerText; continue; case "statusEqual": this._StatusEqual = (CaptionAssetStatus)ParseEnum(typeof(CaptionAssetStatus), propertyNode.InnerText); continue; case "statusIn": this._StatusIn = propertyNode.InnerText; continue; case "statusNotIn": this._StatusNotIn = propertyNode.InnerText; continue; } } }
public HouseholdDevice(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "householdId": this._HouseholdId = ParseInt(propertyNode.InnerText); continue; case "udid": this._Udid = propertyNode.InnerText; continue; case "name": this._Name = propertyNode.InnerText; continue; case "brand": this._Brand = propertyNode.InnerText; continue; case "brandId": this._BrandId = ParseInt(propertyNode.InnerText); continue; case "activatedOn": this._ActivatedOn = ParseLong(propertyNode.InnerText); continue; case "status": this._Status = (DeviceStatus)StringEnum.Parse(typeof(DeviceStatus), propertyNode.InnerText); continue; } } }
public ProductPrice(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "productId": this._ProductId = propertyNode.InnerText; continue; case "productType": this._ProductType = (TransactionType)StringEnum.Parse(typeof(TransactionType), propertyNode.InnerText); continue; case "price": this._Price = ObjectFactory.Create <Price>(propertyNode); continue; case "purchaseStatus": this._PurchaseStatus = (PurchaseStatus)StringEnum.Parse(typeof(PurchaseStatus), propertyNode.InnerText); continue; } } }
/// <summary> /// Processes the events. /// </summary> private void ProcessEvents() { while (true) { EventAction action = null; lock (eventLock) { if (eventQueue.Count > 0) { PriorityQueueItem <EventAction, EventPriority> eventItem = eventQueue.Dequeue(); action = eventItem.Value; if (action == null) { return; } } } if (action != null) { log.Info(string.Format("Processing events {0} from {1}", action.Notification, action.Computer)); // Start processing events EventNotificationType notificationType = (EventNotificationType)StringEnum.Parse(typeof(EventNotificationType), action.Notification); if (notificationType == EventNotificationType.NewMessage) { log.Info("New messages arrived"); RefreshMessageView(ViewAction.RefreshInbox); } } else { eventTrigger.WaitOne(); // wait for events } } }
public CategoryUserFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "categoryDirectMembers": this._CategoryDirectMembers = ParseBool(propertyNode.InnerText); continue; case "freeText": this._FreeText = propertyNode.InnerText; continue; case "relatedGroupsByUserId": this._RelatedGroupsByUserId = propertyNode.InnerText; continue; case "orderBy": this._OrderBy = (CategoryUserOrderBy)StringEnum.Parse(typeof(CategoryUserOrderBy), propertyNode.InnerText); continue; } } }
public AssetStatisticsQuery(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "assetIdIn": this._AssetIdIn = propertyNode.InnerText; continue; case "assetTypeEqual": this._AssetTypeEqual = (AssetType)StringEnum.Parse(typeof(AssetType), propertyNode.InnerText); continue; case "startDateGreaterThanOrEqual": this._StartDateGreaterThanOrEqual = ParseLong(propertyNode.InnerText); continue; case "endDateGreaterThanOrEqual": this._EndDateGreaterThanOrEqual = ParseLong(propertyNode.InnerText); continue; } } }
public BulkUploadBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "uploadedOnGreaterThanOrEqual": this._UploadedOnGreaterThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "uploadedOnLessThanOrEqual": this._UploadedOnLessThanOrEqual = ParseInt(propertyNode.InnerText); continue; case "uploadedOnEqual": this._UploadedOnEqual = ParseInt(propertyNode.InnerText); continue; case "statusIn": this._StatusIn = propertyNode.InnerText; continue; case "statusEqual": this._StatusEqual = (BatchJobStatus)ParseEnum(typeof(BatchJobStatus), propertyNode.InnerText); continue; case "bulkUploadObjectTypeEqual": this._BulkUploadObjectTypeEqual = (BulkUploadObjectType)StringEnum.Parse(typeof(BulkUploadObjectType), propertyNode.InnerText); continue; case "bulkUploadObjectTypeIn": this._BulkUploadObjectTypeIn = propertyNode.InnerText; continue; } } }
public EntryScheduleEventFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "parentCategoryIdsLike": this._ParentCategoryIdsLike = propertyNode.InnerText; continue; case "parentCategoryIdsMultiLikeOr": this._ParentCategoryIdsMultiLikeOr = propertyNode.InnerText; continue; case "parentCategoryIdsMultiLikeAnd": this._ParentCategoryIdsMultiLikeAnd = propertyNode.InnerText; continue; case "orderBy": this._OrderBy = (EntryScheduleEventOrderBy)StringEnum.Parse(typeof(EntryScheduleEventOrderBy), propertyNode.InnerText); continue; } } }
public AssetHistoryFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "typeIn": this._TypeIn = propertyNode.InnerText; continue; case "assetIdIn": this._AssetIdIn = propertyNode.InnerText; continue; case "statusEqual": this._StatusEqual = (WatchStatus)StringEnum.Parse(typeof(WatchStatus), propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (AssetHistoryOrderBy)StringEnum.Parse(typeof(AssetHistoryOrderBy), propertyNode.InnerText); continue; } } }
public LiveEntryFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "isLive": this._IsLive = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "isRecordedEntryIdEmpty": this._IsRecordedEntryIdEmpty = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "hasMediaServerHostname": this._HasMediaServerHostname = propertyNode.InnerText; continue; case "orderBy": this._OrderBy = (LiveEntryOrderBy)StringEnum.Parse(typeof(LiveEntryOrderBy), propertyNode.InnerText); continue; } } }
public YahooSyndicationFeed(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "category": this._Category = (YahooSyndicationFeedCategories)StringEnum.Parse(typeof(YahooSyndicationFeedCategories), propertyNode.InnerText); continue; case "adultContent": this._AdultContent = (YahooSyndicationFeedAdultValues)StringEnum.Parse(typeof(YahooSyndicationFeedAdultValues), propertyNode.InnerText); continue; case "feedDescription": this._FeedDescription = propertyNode.InnerText; continue; case "feedLandingPage": this._FeedLandingPage = propertyNode.InnerText; continue; } } }
public CuePointFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "freeText": this._FreeText = propertyNode.InnerText; continue; case "userIdEqualCurrent": this._UserIdEqualCurrent = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "userIdCurrent": this._UserIdCurrent = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (CuePointOrderBy)StringEnum.Parse(typeof(CuePointOrderBy), propertyNode.InnerText); continue; } } }
public HouseholdPaymentGateway(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = ParseInt(propertyNode.InnerText); continue; case "name": this._Name = propertyNode.InnerText; continue; case "isDefault": this._IsDefault = ParseBool(propertyNode.InnerText); continue; case "selectedBy": this._SelectedBy = (HouseholdPaymentGatewaySelectedBy)StringEnum.Parse(typeof(HouseholdPaymentGatewaySelectedBy), propertyNode.InnerText); continue; } } }
public TranscriptAsset(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "accuracy": this._Accuracy = ParseFloat(propertyNode.InnerText); continue; case "humanVerified": this._HumanVerified = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "language": this._Language = (Language)StringEnum.Parse(typeof(Language), propertyNode.InnerText); continue; case "providerType": this._ProviderType = (TranscriptProviderType)StringEnum.Parse(typeof(TranscriptProviderType), propertyNode.InnerText); continue; } } }
/// <summary> /// Handles the SelectedIndexChanged event of the lvwMessages control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void lvwMessages_SelectedIndexChanged(object sender, EventArgs e) { OutgoingMessage selectedMessage = (OutgoingMessage)lvwMessages.SelectedObject; if (selectedMessage != null) { OutgoingMessageType messageType = (OutgoingMessageType)StringEnum.Parse(typeof(OutgoingMessageType), selectedMessage.MessageType); lblTo.Text = selectedMessage.Recipient; lblStatus.Text = selectedMessage.Status; lblID.Text = selectedMessage.Id; lblFrom.Text = selectedMessage.Originator; lblPriority.Text = selectedMessage.Priority; lblMessageType.Text = selectedMessage.MessageType; lblGatewayID.Text = selectedMessage.GatewayId; lblLastUpdate.Text = selectedMessage.LastUpdate.ToString(); rtbContent.Text = selectedMessage.Message; if (messageType == OutgoingMessageType.SMS) { lblURL.Text = string.Empty; } else if (messageType == OutgoingMessageType.WAPPush) { lblURL.Text = selectedMessage.WapUrl; } if (selectedMessage.ScheduledDate.HasValue) { lblScheduled.Text = selectedMessage.ScheduledDate.ToString(); } else { lblScheduled.Text = Resources.MsgNow; } } }
public InboxMessageFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "typeIn": this._TypeIn = propertyNode.InnerText; continue; case "createdAtGreaterThanOrEqual": this._CreatedAtGreaterThanOrEqual = ParseLong(propertyNode.InnerText); continue; case "createdAtLessThanOrEqual": this._CreatedAtLessThanOrEqual = ParseLong(propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (InboxMessageOrderBy)StringEnum.Parse(typeof(InboxMessageOrderBy), propertyNode.InnerText); continue; } } }
public AttachmentAsset(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "filename": this._Filename = propertyNode.InnerText; continue; case "title": this._Title = propertyNode.InnerText; continue; case "format": this._Format = (AttachmentType)StringEnum.Parse(typeof(AttachmentType), propertyNode.InnerText); continue; case "status": this._Status = (AttachmentAssetStatus)ParseEnum(typeof(AttachmentAssetStatus), propertyNode.InnerText); continue; } } }
public ExternalMediaEntryBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "externalSourceTypeEqual": this._ExternalSourceTypeEqual = (ExternalMediaSourceType)StringEnum.Parse(typeof(ExternalMediaSourceType), propertyNode.InnerText); continue; case "externalSourceTypeIn": this._ExternalSourceTypeIn = propertyNode.InnerText; continue; case "assetParamsIdsMatchOr": this._AssetParamsIdsMatchOr = propertyNode.InnerText; continue; case "assetParamsIdsMatchAnd": this._AssetParamsIdsMatchAnd = propertyNode.InnerText; continue; } } }
public CategoryEntryAdvancedFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "categoriesMatchOr": this._CategoriesMatchOr = propertyNode.InnerText; continue; case "categoryEntryStatusIn": this._CategoryEntryStatusIn = propertyNode.InnerText; continue; case "orderBy": this._OrderBy = (CategoryEntryAdvancedOrderBy)StringEnum.Parse(typeof(CategoryEntryAdvancedOrderBy), propertyNode.InnerText); continue; case "categoryIdEqual": this._CategoryIdEqual = ParseInt(propertyNode.InnerText); continue; } } }
/// <summary> /// Remove a field from the current list. /// </summary> /// <param name="fieldName">The name of the field.</param> /// <param name="fieldLevel">The level of the field (<see cref="Enumerations.Level"/>).</param> /// <param name="valueType">The type of the field (<see cref="Enumerations.ValueType"/>).</param> /// <returns></returns> public IshFields RemoveField(string fieldName, string fieldLevel, string valueType) { return(RemoveField(fieldName, (Enumerations.Level)StringEnum.Parse(typeof(Enumerations.Level), fieldLevel), (Enumerations.ValueType)StringEnum.Parse(typeof(Enumerations.ValueType), valueType))); }
public PagingList <EmailTransferUser> GetAll(pagination pagination, sort sort, string search, string search_operator, string filter) { dynamic searchFilter = string.Empty; var operater = string.IsNullOrEmpty(search_operator) ? null : JObject.Parse(search_operator); IQueryable <EmailTransferUser> query = _context.Set <EmailTransferUser>(); if (!string.IsNullOrEmpty(filter) && filter.Length > 2) { searchFilter = JObject.Parse(filter); foreach (var _filter in searchFilter) { string fitlterstr = (string)_filter.Value; var result = fitlterstr.Split(',').Where(r => !string.IsNullOrEmpty(r)).ToList(); if (result.Count() > 1) { int count = 0; result.ForEach(s => { string op = operater.Descendants().OfType <JProperty>().Where(p => p.Name == _filter.Key).Count() > 0 ? (string)operater.Descendants().OfType <JProperty>().Where(p => p.Name == _filter.Key).FirstOrDefault().Value : "eq"; switch ((string)_filter.Key) { case "": //query = query.Where(a=>a.Sector == Se) break; default: var tempQuery = query; query = count == 0 ? query.Where <EmailTransferUser>( (object)_filter.Key, (object)s, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op)) : query.Concat <EmailTransferUser>(tempQuery.Where <EmailTransferUser>( (object)_filter.Key, (object)s, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op))); count = count + 1; break; } }); } else if (!string.IsNullOrEmpty(_filter.Value)) { string op = operater.Descendants().OfType <JProperty>().Where(p => p.Name == _filter.Key).Count() > 0 ? (string)operater.Descendants().OfType <JProperty>().Where(p => p.Name == _filter.Key).FirstOrDefault().Value : "eq"; query = query.Where <EmailTransferUser>( (object)_filter.Key, (object)result.FirstOrDefault(), (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op)); } } } if (!string.IsNullOrEmpty(search) && search.Length > 2) { searchFilter = JObject.Parse(search); foreach (var _search in searchFilter) { if (!string.IsNullOrEmpty(_search.Value)) { string op = operater.Descendants().OfType <JProperty>().Where(p => p.Name == _search.Key).Count() > 0 ? (string)operater.Descendants().OfType <JProperty>().Where(p => p.Name == _search.Key).FirstOrDefault().Value : "eq"; string checkCurrentKey = Convert.ToString(_search.Value); if (checkCurrentKey.Split(',').Count() > 1) { int i; if (!(int.TryParse(checkCurrentKey.Split(',')[0].ToString(), out i))) { query = query.Where <EmailTransferUser>( (object)_search.Key, (object)_search.Value, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op)); } else { int count = 0; foreach (var _tempSearchKey in checkCurrentKey.Split(',').ToList()) { if (!string.IsNullOrEmpty(_tempSearchKey)) { var tempQuery = query; query = count == 0 ? query.Where <EmailTransferUser>( (object)_search.Key, (object)_tempSearchKey, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op)) : query.Concat <EmailTransferUser>(tempQuery.Where <EmailTransferUser>( (object)_search.Key, (object)_tempSearchKey, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op))); count = count + 1; } } } } else { string strFk = (string)_search.Value; switch ((string)_search.Key) { default: query = query.Where <EmailTransferUser>( (object)_search.Key, (object)_search.Value, (WhereOperation)StringEnum.Parse(typeof(WhereOperation), op)); break; } } } } } query = query.OrderBy <EmailTransferUser>(sort.predicate, !sort.reverse ? "asc" : ""); return(new PagingList <EmailTransferUser>(query, pagination.start / 10, pagination.Count == 0 ? 10 : pagination.Count)); }
public MetadataProfile(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["metadataObjectType"] != null) { this._MetadataObjectType = (MetadataObjectType)StringEnum.Parse(typeof(MetadataObjectType), node["metadataObjectType"].Value <string>()); } if (node["version"] != null) { this._Version = ParseInt(node["version"].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["createdAt"] != null) { this._CreatedAt = ParseInt(node["createdAt"].Value <string>()); } if (node["updatedAt"] != null) { this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>()); } if (node["status"] != null) { this._Status = (MetadataProfileStatus)ParseEnum(typeof(MetadataProfileStatus), node["status"].Value <string>()); } if (node["xsd"] != null) { this._Xsd = node["xsd"].Value <string>(); } if (node["views"] != null) { this._Views = node["views"].Value <string>(); } if (node["xslt"] != null) { this._Xslt = node["xslt"].Value <string>(); } if (node["createMode"] != null) { this._CreateMode = (MetadataProfileCreateMode)ParseEnum(typeof(MetadataProfileCreateMode), node["createMode"].Value <string>()); } if (node["disableReIndexing"] != null) { this._DisableReIndexing = ParseBool(node["disableReIndexing"].Value <string>()); } }
public PPVItemPriceDetails(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "ppvModuleId": this._PpvModuleId = propertyNode.InnerText; continue; case "isSubscriptionOnly": this._IsSubscriptionOnly = ParseBool(propertyNode.InnerText); continue; case "price": this._Price = ObjectFactory.Create <Price>(propertyNode); continue; case "fullPrice": this._FullPrice = ObjectFactory.Create <Price>(propertyNode); continue; case "purchaseStatus": this._PurchaseStatus = (PurchaseStatus)StringEnum.Parse(typeof(PurchaseStatus), propertyNode.InnerText); continue; case "subscriptionId": this._SubscriptionId = propertyNode.InnerText; continue; case "collectionId": this._CollectionId = propertyNode.InnerText; continue; case "prePaidId": this._PrePaidId = propertyNode.InnerText; continue; case "ppvDescriptions": this._PpvDescriptions = new List <TranslationToken>(); foreach (XmlElement arrayNode in propertyNode.ChildNodes) { this._PpvDescriptions.Add(ObjectFactory.Create <TranslationToken>(arrayNode)); } continue; case "purchaseUserId": this._PurchaseUserId = propertyNode.InnerText; continue; case "purchasedMediaFileId": this._PurchasedMediaFileId = ParseInt(propertyNode.InnerText); continue; case "relatedMediaFileIds": this._RelatedMediaFileIds = new List <IntegerValue>(); foreach (XmlElement arrayNode in propertyNode.ChildNodes) { this._RelatedMediaFileIds.Add(ObjectFactory.Create <IntegerValue>(arrayNode)); } continue; case "startDate": this._StartDate = ParseLong(propertyNode.InnerText); continue; case "endDate": this._EndDate = ParseLong(propertyNode.InnerText); continue; case "discountEndDate": this._DiscountEndDate = ParseLong(propertyNode.InnerText); continue; case "firstDeviceName": this._FirstDeviceName = propertyNode.InnerText; continue; case "isInCancelationPeriod": this._IsInCancelationPeriod = ParseBool(propertyNode.InnerText); continue; case "ppvProductCode": this._PpvProductCode = propertyNode.InnerText; continue; } } }
public DropFolderFile(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["dropFolderId"] != null) { this._DropFolderId = ParseInt(node["dropFolderId"].Value <string>()); } if (node["fileName"] != null) { this._FileName = node["fileName"].Value <string>(); } if (node["fileSize"] != null) { this._FileSize = ParseFloat(node["fileSize"].Value <string>()); } if (node["fileSizeLastSetAt"] != null) { this._FileSizeLastSetAt = ParseInt(node["fileSizeLastSetAt"].Value <string>()); } if (node["status"] != null) { this._Status = (DropFolderFileStatus)ParseEnum(typeof(DropFolderFileStatus), node["status"].Value <string>()); } if (node["type"] != null) { this._Type = (DropFolderType)StringEnum.Parse(typeof(DropFolderType), node["type"].Value <string>()); } if (node["parsedSlug"] != null) { this._ParsedSlug = node["parsedSlug"].Value <string>(); } if (node["parsedFlavor"] != null) { this._ParsedFlavor = node["parsedFlavor"].Value <string>(); } if (node["parsedUserId"] != null) { this._ParsedUserId = node["parsedUserId"].Value <string>(); } if (node["leadDropFolderFileId"] != null) { this._LeadDropFolderFileId = ParseInt(node["leadDropFolderFileId"].Value <string>()); } if (node["deletedDropFolderFileId"] != null) { this._DeletedDropFolderFileId = ParseInt(node["deletedDropFolderFileId"].Value <string>()); } if (node["entryId"] != null) { this._EntryId = node["entryId"].Value <string>(); } if (node["errorCode"] != null) { this._ErrorCode = (DropFolderFileErrorCode)StringEnum.Parse(typeof(DropFolderFileErrorCode), node["errorCode"].Value <string>()); } if (node["errorDescription"] != null) { this._ErrorDescription = node["errorDescription"].Value <string>(); } if (node["lastModificationTime"] != null) { this._LastModificationTime = node["lastModificationTime"].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["uploadStartDetectedAt"] != null) { this._UploadStartDetectedAt = ParseInt(node["uploadStartDetectedAt"].Value <string>()); } if (node["uploadEndDetectedAt"] != null) { this._UploadEndDetectedAt = ParseInt(node["uploadEndDetectedAt"].Value <string>()); } if (node["importStartedAt"] != null) { this._ImportStartedAt = ParseInt(node["importStartedAt"].Value <string>()); } if (node["importEndedAt"] != null) { this._ImportEndedAt = ParseInt(node["importEndedAt"].Value <string>()); } if (node["batchJobId"] != null) { this._BatchJobId = ParseInt(node["batchJobId"].Value <string>()); } }
public DeliveryProfile(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["type"] != null) { this._Type = (DeliveryProfileType)StringEnum.Parse(typeof(DeliveryProfileType), node["type"].Value <string>()); } if (node["systemName"] != null) { this._SystemName = node["systemName"].Value <string>(); } if (node["description"] != null) { this._Description = node["description"].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["streamerType"] != null) { this._StreamerType = (PlaybackProtocol)StringEnum.Parse(typeof(PlaybackProtocol), node["streamerType"].Value <string>()); } if (node["url"] != null) { this._Url = node["url"].Value <string>(); } if (node["hostName"] != null) { this._HostName = node["hostName"].Value <string>(); } if (node["status"] != null) { this._Status = (DeliveryStatus)ParseEnum(typeof(DeliveryStatus), node["status"].Value <string>()); } if (node["recognizer"] != null) { this._Recognizer = ObjectFactory.Create <UrlRecognizer>(node["recognizer"]); } if (node["tokenizer"] != null) { this._Tokenizer = ObjectFactory.Create <UrlTokenizer>(node["tokenizer"]); } if (node["isDefault"] != null) { this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isDefault"].Value <string>()); } if (node["parentId"] != null) { this._ParentId = ParseInt(node["parentId"].Value <string>()); } if (node["mediaProtocols"] != null) { this._MediaProtocols = node["mediaProtocols"].Value <string>(); } if (node["priority"] != null) { this._Priority = ParseInt(node["priority"].Value <string>()); } if (node["extraParams"] != null) { this._ExtraParams = node["extraParams"].Value <string>(); } if (node["supplementaryAssetsFilter"] != null) { this._SupplementaryAssetsFilter = ObjectFactory.Create <AssetFilter>(node["supplementaryAssetsFilter"]); } }