This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state("Empty results") { | |
// Nested copying - gross! | |
copy(request = Success(request.copy(results = emptyList()))) | |
// A cleaner way to specify the same thing | |
set { ::request { success { ::results } } }.with { emptyList() } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state("Show cancellation policy subtitle") { | |
set { ::bookingDetails { success { ::cancellationSection { ::showSubtitle } } } }.with { true } | |
// Can also be written more simply as: | |
setTrue { ::bookingDetails { success { ::cancellationSection { ::showSubtitle } } } } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state("Not super hosted") { | |
setFalse { ::listingDetails { success { ::isHostedBySuperhost } } } | |
.setFalse { ::listingDetails { success { ::primaryHost { ::isSuperhost } } } } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
args("No dates") { | |
setNull { ::checkInDate } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"fragment_container->coordinator_layout->recycler_view->AccountDocumentMarqueeModel->link_text": { | |
"view": "TextView", | |
"viewId": "link_text", | |
"click": [ | |
{ | |
"startActivityFromFragment": { | |
"activity": "MvRxActivity", | |
"calledFrom": "AccountLandingFragment", | |
"extras": "[fragment_class=com.airbnb.android.profile.UserProfileFragment, fragment_args=UserProfileArgs(userId=1)]", | |
"intentFlags": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"click": [ | |
{ | |
"startActivityFromFragment": { | |
"activity": "MvRxActivity", | |
"calledFrom": "AccountLandingFragment", | |
"extras": "[fragment_class=com.airbnb.android.profile.UserProfileFragment, fragment_args=UserProfileArgs(userId=1)]", | |
"intentFlags": 0, | |
"requestCode": 102 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"click": [ | |
{ | |
"Activity finished": {} | |
}, | |
{ | |
"Activity result set": { | |
"resultCode": 99, | |
"resultData": { | |
"extras": "[RESULT_COUNTRY_CODE=AD, RESULT_PHONE_COUNTRY_CODE=376]" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"click": [ | |
{ | |
"Events logged": { | |
"ListingElementActionEvent": 2, | |
"NavigationEvent": 1 | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"view": "ExpandableTextView", | |
"viewId": "text_row_expandable_text_view", | |
"properties": { | |
"content description": "We know the area well and are happy to tell you interesting places to visit." | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"view": "ImageView", | |
"viewId": "listing_image", | |
"properties": { | |
"url": "https://a0.muscache.com/4ea/air/v2/pictures/22903706/501e0ec5_original.jpg" | |
} |