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
{ | |
"error": null, | |
"result": { | |
"token": null | |
}, | |
"success": true | |
} |
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
{ | |
"error": null, | |
"result": { | |
"status": "OK" | |
}, | |
"success": true | |
} |
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
{ | |
"error": null, | |
"result": [ | |
{ | |
"id": 1, | |
"name": "AT", | |
"createdAt": "2019-01-01T00:00:00", | |
"updatedAt": "2019-01-01T00:00:00" | |
}, | |
{ |
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
{ | |
"error": null, | |
"result": { | |
"name": "string", | |
"surname": "string", | |
"email": "[email protected]", | |
"companyName": null, | |
"phone": "11223344551" | |
}, | |
"success": true |
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
{ | |
"error": null, | |
"result": { | |
"data": { | |
"pipeTypes": [ | |
{ | |
"description": "TS EN 10255 Orta Seri Su Boruları", | |
"values": [ | |
{ | |
"Product": "30-01063", |
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
{ | |
"error": null, | |
"result": { | |
"data": { | |
"pipeTypes": [ | |
{ | |
"description": "TS EN 10255 Orta Seri Su Boruları", | |
"values": [ | |
{ | |
"Product": "30-01063", |
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
{ | |
"error": null, | |
"result": { | |
"data": { | |
"pipeTypes": [ | |
{ | |
"description": "TS EN 10255 Orta Seri Su Boruları", | |
"values": [ | |
{ | |
"Product": "30-01063", |
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
{ | |
"error": { | |
"code": 0, | |
"message": "string" | |
}, | |
"result": { | |
"totalPagesCount": 0, | |
"page": 0, | |
"countPerPage": 0, | |
"feeds": [ |
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
@BindingAdapter( | |
value = [ | |
"itemList", | |
"itemLayoutId", | |
"viewModel" | |
], | |
requireAll = false | |
) | |
fun RecyclerView.bindRecyclerView( | |
itemList: List<Nothing>?, |
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
class AdapterBuilder<ModelType>( | |
private val itemList: List<ModelType>, | |
private val layoutId: Int, | |
private val viewModel: ViewModel? | |
) { | |
fun build(): BaseRecyclerAdapter<ModelType> { | |
val baseAdapter = BaseRecyclerAdapter(itemList, layoutId, viewModel) | |
baseAdapter.updateData(itemList) | |
return baseAdapter |
OlderNewer