Skip to content

Instantly share code, notes, and snippets.

View MuratVarol's full-sized avatar
🏠
Working from home

Murat VAROL MuratVarol

🏠
Working from home
  • Oyak Securities
  • Istanbul
View GitHub Profile
{
"error": null,
"result": {
"token": null
},
"success": true
}
{
"error": null,
"result": {
"status": "OK"
},
"success": true
}
{
"error": null,
"result": [
{
"id": 1,
"name": "AT",
"createdAt": "2019-01-01T00:00:00",
"updatedAt": "2019-01-01T00:00:00"
},
{
{
"error": null,
"result": {
"name": "string",
"surname": "string",
"email": "[email protected]",
"companyName": null,
"phone": "11223344551"
},
"success": true
{
"error": null,
"result": {
"data": {
"pipeTypes": [
{
"description": "TS EN 10255 Orta Seri Su Boruları",
"values": [
{
"Product": "30-01063",
{
"error": null,
"result": {
"data": {
"pipeTypes": [
{
"description": "TS EN 10255 Orta Seri Su Boruları",
"values": [
{
"Product": "30-01063",
{
"error": null,
"result": {
"data": {
"pipeTypes": [
{
"description": "TS EN 10255 Orta Seri Su Boruları",
"values": [
{
"Product": "30-01063",
{
"error": {
"code": 0,
"message": "string"
},
"result": {
"totalPagesCount": 0,
"page": 0,
"countPerPage": 0,
"feeds": [
@BindingAdapter(
value = [
"itemList",
"itemLayoutId",
"viewModel"
],
requireAll = false
)
fun RecyclerView.bindRecyclerView(
itemList: List<Nothing>?,
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