Skip to content

Commit

Permalink
Merge pull request #70 from Kentico/fix/69_samples_fix_assets
Browse files Browse the repository at this point in the history
#69 fix of asset samples
  • Loading branch information
tkrch authored Nov 6, 2024
2 parents d953821 + c4144bf commit 9610063
Show file tree
Hide file tree
Showing 34 changed files with 3,160 additions and 3,289 deletions.
31 changes: 31 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Auto detect text files and perform LF normalization
* text=auto

*.cs text=CRLF diff=csharp
*.html text diff=html
*.sql text
*.md text=CRLF

*.csproj text merge=union
*.sln text merge=union eol=crlf

# Ensure binary files are not treated as text https://stackoverflow.com/a/32278635/939634
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary
104 changes: 52 additions & 52 deletions docs/Class/IImportService.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
# Kentico.Xperience.UMT.Services.IImportService


## Methods
### SerializeToJson
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(Kentico.Xperience.UMT.Model.UmtModel, System.Text.Json.JsonSerializerOptions?)`
Serializes umt model to JSON
Parameters
|Name|Type|Summary|
|---|---|---|
|model|Kentico.Xperience.UMT.Model.UmtModel|
|options|System.Text.Json.JsonSerializerOptions?|
### SerializeToJson
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>, System.Text.Json.JsonSerializerOptions?)`
Serializes umt model to JSON
Parameters
|Name|Type|Summary|
|---|---|---|
|model|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>|
|options|System.Text.Json.JsonSerializerOptions?|
### FromJsonStream
`Kentico.Xperience.UMT.Services.IImportService.FromJsonStream(System.IO.Stream)`
Reads json from stream and returns enumerable of UmtModel
Parameters
|Name|Type|Summary|
|---|---|---|
|jsonStream|System.IO.Stream|Stream of data, content must be valid JSON array of UMT model
### FromJsonString
`Kentico.Xperience.UMT.Services.IImportService.FromJsonString(string)`
Reads model from json string and returns enumerable of UmtModel
Parameters
|Name|Type|Summary|
|---|---|---|
|jsonString|string|String that contains valid JSON UMT model
### StartImport
`Kentico.Xperience.UMT.Services.IImportService.StartImport(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)`
Starts import
Parameters
|Name|Type|Summary|
|---|---|---|
|importedObjects|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events
### StartImportAsync
`Kentico.Xperience.UMT.Services.IImportService.StartImportAsync(System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)`
Starts import
Parameters
|Name|Type|Summary|
|---|---|---|
|importedObjects|System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events


# Kentico.Xperience.UMT.Services.IImportService


## Methods
### SerializeToJson
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(Kentico.Xperience.UMT.Model.UmtModel, System.Text.Json.JsonSerializerOptions?)`
Serializes umt model to JSON
Parameters
|Name|Type|Summary|
|---|---|---|
|model|Kentico.Xperience.UMT.Model.UmtModel|
|options|System.Text.Json.JsonSerializerOptions?|
### SerializeToJson
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>, System.Text.Json.JsonSerializerOptions?)`
Serializes umt model to JSON
Parameters
|Name|Type|Summary|
|---|---|---|
|model|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>|
|options|System.Text.Json.JsonSerializerOptions?|
### FromJsonStream
`Kentico.Xperience.UMT.Services.IImportService.FromJsonStream(System.IO.Stream)`
Reads json from stream and returns enumerable of UmtModel
Parameters
|Name|Type|Summary|
|---|---|---|
|jsonStream|System.IO.Stream|Stream of data, content must be valid JSON array of UMT model
### FromJsonString
`Kentico.Xperience.UMT.Services.IImportService.FromJsonString(string)`
Reads model from json string and returns enumerable of UmtModel
Parameters
|Name|Type|Summary|
|---|---|---|
|jsonString|string|String that contains valid JSON UMT model
### StartImport
`Kentico.Xperience.UMT.Services.IImportService.StartImport(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)`
Starts import
Parameters
|Name|Type|Summary|
|---|---|---|
|importedObjects|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events
### StartImportAsync
`Kentico.Xperience.UMT.Services.IImportService.StartImportAsync(System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)`
Starts import
Parameters
|Name|Type|Summary|
|---|---|---|
|importedObjects|System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events


52 changes: 26 additions & 26 deletions docs/Class/ImportStateObserver.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Kentico.Xperience.UMT.Services.ImportStateObserver

## Properties
### ImportCompletedTask
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportCompletedTask`

Task completes when whole import processing ends, if not awaited undefined behavior may occur<br/> Property is set internally by IImportService when CreateImport is called


## Delegates
|Name|Summary|
|---|---|
|ImportedInfoDelegate|Delegate specifies callback method for event ImportedInfo|
|ModelValidationError|Delegate specifies callback method for event ValidationError|
|RaisedException|Delegate specifies callback method for event Exception|

## Events
### ImportedInfo
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportedInfo`
Invoked when Kentico API Info object is successfully created
### ValidationError
`Kentico.Xperience.UMT.Services.ImportStateObserver.ValidationError`
Invoked when format of model is incorrect
### Exception
`Kentico.Xperience.UMT.Services.ImportStateObserver.Exception`
Invoked when exception related to one model instance
# Kentico.Xperience.UMT.Services.ImportStateObserver

## Properties
### ImportCompletedTask
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportCompletedTask`

Task completes when whole import processing ends, if not awaited undefined behavior may occur<br/> Property is set internally by IImportService when CreateImport is called


## Delegates
|Name|Summary|
|---|---|
|ImportedInfoDelegate|Delegate specifies callback method for event ImportedInfo|
|ModelValidationError|Delegate specifies callback method for event ValidationError|
|RaisedException|Delegate specifies callback method for event Exception|

## Events
### ImportedInfo
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportedInfo`
Invoked when Kentico API Info object is successfully created
### ValidationError
`Kentico.Xperience.UMT.Services.ImportStateObserver.ValidationError`
Invoked when format of model is incorrect
### Exception
`Kentico.Xperience.UMT.Services.ImportStateObserver.Exception`
Invoked when exception related to one model instance
Loading

0 comments on commit 9610063

Please sign in to comment.