-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add new titik tiang feature - code refactoring and clean up
- Loading branch information
Showing
27 changed files
with
711 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
37 changes: 37 additions & 0 deletions
37
app/src/main/java/com/jmnetwork/e_jartas/model/TiangModel.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.jmnetwork.e_jartas.model | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TiangResponse( | ||
@SerializedName("current_page") val currentPage: String, | ||
@SerializedName("data") val data: List<TiangData>, | ||
@SerializedName("data_tabel") val dataTabel: String, | ||
@SerializedName("limit") val limit: String, | ||
@SerializedName("message") val message: String, | ||
@SerializedName("status") val status: String, | ||
@SerializedName("totalData") val totalData: TotalData | ||
) | ||
|
||
data class TiangData( | ||
@SerializedName("createddate") val createddate: String, | ||
@SerializedName("idtiang") val idtiang: Int, | ||
@SerializedName("idtiang_cetak_qrcode") val idtiangCetakQrcode: Int, | ||
@SerializedName("json_provider") val tiangProvider: TiangProvider, | ||
@SerializedName("jumlah_tiang") val jumlahTiang: String, | ||
@SerializedName("lastupdate") val lastupdate: String, | ||
@SerializedName("latlong") val latlong: Location, | ||
@SerializedName("oleh") val oleh: Int, | ||
@SerializedName("petugas_scan") val petugasScan: Any?, | ||
@SerializedName("qrcode") val qrcode: String, | ||
) | ||
|
||
class TiangProvider : ArrayList<TiangProviderItem>() | ||
|
||
data class TiangProviderItem( | ||
@SerializedName("catatan") val catatan: String, | ||
@SerializedName("id") val id: Int, | ||
@SerializedName("idprovider") val idprovider: String, | ||
@SerializedName("layak") val layak: String, | ||
@SerializedName("provider") val provider: String, | ||
@SerializedName("utilitas") val utilitas: String | ||
) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.