Skip to content

Commit

Permalink
Deploy motorro/RxLceModel to github.com/motorro/RxLceModel.git:master
Browse files Browse the repository at this point in the history
  • Loading branch information
traviscibot committed Feb 4, 2021
1 parent 76cf0af commit 5091108
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
- $ANDROID_SDK_ROOT/.android/build-cache

stages:
- name: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jvm

| Name| Summary|
|---|---|
| [catchToLce](../catch-to-lce.md)| [jvm] <br>Brief description <br><br><br><br><br>Runs transformation block catching any error and wrapping it to [LceState.Error](-error/index.md):<br><br><ul><li>The output data will be null</li><li>The data will be invalid</li></ul><br><br> <br>Content <br>inline fun <[DATA_1](../catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](../catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](index.md)<[DATA_1](../catch-to-lce.md)>.[catchToLce](../catch-to-lce.md)(block: [LceState](index.md)<[DATA_1](../catch-to-lce.md)>.() -> [LceState](index.md)<[DATA_2](../catch-to-lce.md)>): [LceState](index.md)<[DATA_2](../catch-to-lce.md)> <br><br><br>
| [combine](../combine.md)| [jvm] <br>Brief description <br><br><br>Combines two Lce states. Here is the result state matrix | Receiver | other | Result | |------------|------------|------------| | Loading | Loading | Loading | | Loading | Content | Loading | | Loading | Error | Error | | Loading | Terminated | Terminated | | Content | Loading | Loading | | Content | Content | Content* | | Content | Error | Error | | Content | Terminated | Terminated | | Error | Loading | Error | | Error | Content | Error | | Error | Error | Error | | Error | Terminated | Terminated | | Terminated | Loading | Terminated | | Terminated | Content | Terminated | | Terminated | Error | Terminated | | Terminated | Terminated | Terminated |<br><br> <br>Content <br>inline fun <[DATA_1](../combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](../combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_3](../combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](index.md)<[DATA_1](../combine.md)>.[combine](../combine.md)(other: [LceState](index.md)<[DATA_2](../combine.md)>, mapper: ([DATA_1](../combine.md)?, [DATA_2](../combine.md)?) -> [DATA_3](../combine.md)?): [LceState](index.md)<[DATA_3](../combine.md)> <br><br><br>
| [map](../map.md)| [jvm] <br>Brief description <br><br><br>Maps data in LceState<br><br> <br>Content <br>inline fun <[DATA_1](../map.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](../map.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](index.md)<[DATA_1](../map.md)>.[map](../map.md)(mapper: ([DATA_1](../map.md)) -> [DATA_2](../map.md)): [LceState](index.md)<[DATA_2](../map.md)> <br><br><br>

21 changes: 21 additions & 0 deletions docs/base/base/com.motorro.rxlcemodel.base/catch-to-lce.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//[base](../index.md)/[com.motorro.rxlcemodel.base](index.md)/[catchToLce](catch-to-lce.md)



# catchToLce
[jvm]
Brief description




Runs transformation block catching any error and wrapping it to [LceState.Error](-lce-state/-error/index.md):

<ul><li>The output data will be null</li><li>The data will be invalid</li></ul>


Content
inline fun <[DATA_1](catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](-lce-state/index.md)<[DATA_1](catch-to-lce.md)>.[catchToLce](catch-to-lce.md)(block: [LceState](-lce-state/index.md)<[DATA_1](catch-to-lce.md)>.() -> [LceState](-lce-state/index.md)<[DATA_2](catch-to-lce.md)>): [LceState](-lce-state/index.md)<[DATA_2](catch-to-lce.md)>



1 change: 1 addition & 0 deletions docs/base/base/com.motorro.rxlcemodel.base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Basic LceModel classes

| Name| Summary|
|---|---|
| [catchToLce](catch-to-lce.md)| [jvm] <br>Brief description <br><br><br><br><br>Runs transformation block catching any error and wrapping it to [LceState.Error](-lce-state/-error/index.md):<br><br><ul><li>The output data will be null</li><li>The data will be invalid</li></ul><br><br> <br>Content <br>inline fun <[DATA_1](catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](catch-to-lce.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](-lce-state/index.md)<[DATA_1](catch-to-lce.md)>.[catchToLce](catch-to-lce.md)(block: [LceState](-lce-state/index.md)<[DATA_1](catch-to-lce.md)>.() -> [LceState](-lce-state/index.md)<[DATA_2](catch-to-lce.md)>): [LceState](-lce-state/index.md)<[DATA_2](catch-to-lce.md)> <br><br><br>
| [combine](combine.md)| [jvm] <br>Brief description <br><br><br>Combines two Lce states. Here is the result state matrix | Receiver | other | Result | |------------|------------|------------| | Loading | Loading | Loading | | Loading | Content | Loading | | Loading | Error | Error | | Loading | Terminated | Terminated | | Content | Loading | Loading | | Content | Content | Content* | | Content | Error | Error | | Content | Terminated | Terminated | | Error | Loading | Error | | Error | Content | Error | | Error | Error | Error | | Error | Terminated | Terminated | | Terminated | Loading | Terminated | | Terminated | Content | Terminated | | Terminated | Error | Terminated | | Terminated | Terminated | Terminated |<br><br> <br>Content <br>inline fun <[DATA_1](combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_3](combine.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [LceState](-lce-state/index.md)<[DATA_1](combine.md)>.[combine](combine.md)(other: [LceState](-lce-state/index.md)<[DATA_2](combine.md)>, mapper: ([DATA_1](combine.md)?, [DATA_2](combine.md)?) -> [DATA_3](combine.md)?): [LceState](-lce-state/index.md)<[DATA_3](combine.md)> <br><br><br>
| [flatMapSingleData](flat-map-single-data.md)| [jvm] <br>Brief description <br><br><br>Maps each [DATA_1](flat-map-single-data.md) to single for [DATA_2](flat-map-single-data.md) and merges back to LceState. If error occurs in mapper emits [LceState.Error](-lce-state/-error/index.md). Example: load some [DATA_2](flat-map-single-data.md) from server using original [DATA_1](flat-map-single-data.md) as a parameter.<br><br> <br>Content <br>fun <[DATA_1](flat-map-single-data.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), [DATA_2](flat-map-single-data.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Observable](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observable.html)<[LceState](-lce-state/index.md)<[DATA_1](flat-map-single-data.md)>>.[flatMapSingleData](flat-map-single-data.md)(mapper: ([DATA_1](flat-map-single-data.md)) -> [Single](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Single.html)<[DATA_2](flat-map-single-data.md)>): [Observable](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observable.html)<[LceState](-lce-state/index.md)<[DATA_2](flat-map-single-data.md)>> <br><br><br>
| [getData](get-data.md)| [jvm] <br>Brief description <br><br><br>Returns model's data stream dropping state information<br><br> <br>Content <br>fun <[DATA](get-data.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Observable](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observable.html)<[LceState](-lce-state/index.md)<[DATA](get-data.md)>>.[getData](get-data.md)(terminateOnError: ([LceState.Error](-lce-state/-error/index.md)<[DATA](get-data.md)>) -> [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [Observable](http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observable.html)<[DATA](get-data.md)> <br><br><br>
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configureondemand=true

0 comments on commit 5091108

Please sign in to comment.