/// <summary> /// Initializes a new instance of the <see cref="StoryResult" /> class. /// </summary> /// <param name="Id">Id.</param> /// <param name="CreatedAt">CreatedAt.</param> /// <param name="UpdatedAt">UpdatedAt.</param> /// <param name="DeletedAt">DeletedAt.</param> /// <param name="ExternalStationId">ExternalStationId.</param> /// <param name="ModelTypeId">ModelTypeId (required).</param> /// <param name="Recommended">Recommended.</param> /// <param name="FieldValues">FieldValues.</param> /// <param name="Name">Name (required).</param> /// <param name="Description">Description.</param> /// <param name="Tags">Tags.</param> /// <param name="Items">Items.</param> /// <param name="ModelType">ModelType.</param> public StoryResult(long?Id = default(long?), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), long?ModelTypeId = default(long?), bool?Recommended = default(bool?), Object FieldValues = default(Object), string Name = default(string), string Description = default(string), StoryRelationsTags Tags = default(StoryRelationsTags), StoryRelationsItems Items = default(StoryRelationsItems), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { // to ensure "ModelTypeId" is required (not null) if (ModelTypeId == null) { throw new InvalidDataException("ModelTypeId is a required property for StoryResult and cannot be null"); } else { this.ModelTypeId = ModelTypeId; } // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for StoryResult and cannot be null"); } else { this.Name = Name; } this.Id = Id; this.CreatedAt = CreatedAt; this.UpdatedAt = UpdatedAt; this.DeletedAt = DeletedAt; this.ExternalStationId = ExternalStationId; this.Recommended = Recommended; this.FieldValues = FieldValues; this.Description = Description; this.Tags = Tags; this.Items = Items; this.ModelType = ModelType; }
/// <summary> /// Initializes a new instance of the <see cref="StoryRelations" /> class. /// </summary> /// <param name="Tags">Tags.</param> /// <param name="Items">Items.</param> /// <param name="ModelType">ModelType.</param> public StoryRelations(StoryRelationsTags Tags = default(StoryRelationsTags), StoryRelationsItems Items = default(StoryRelationsItems), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { this.Tags = Tags; this.Items = Items; this.ModelType = ModelType; }