-
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.
Convert models back into separate files
- Loading branch information
Showing
12 changed files
with
116 additions
and
85 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/src/main/java/eu/rickvanschijndel/solargraph/models/Address.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,10 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Address( | ||
val address_line_1: String, | ||
val city: String, | ||
val state: String, | ||
val country: String | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/eu/rickvanschijndel/solargraph/models/Graphs.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,9 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Graphs( | ||
val realtime_power: Map<String, Double>, | ||
val daily_output: Map<String, Double>, | ||
val monthly_output: Map<String, Double> | ||
) |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/eu/rickvanschijndel/solargraph/models/Inverter.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,15 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Inverter( | ||
val inverternr: Int, | ||
val product_code: String, | ||
val serial_number: String, | ||
val comm_type: String, | ||
val comm_identifier: String, | ||
val dt_installed: String, | ||
val dt_replaced: Any, | ||
val mppts: Map<Int, Mppt>, | ||
val dma_device_type: String | ||
) |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/eu/rickvanschijndel/solargraph/models/Kpis.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,11 @@ | ||
|
||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Kpis( | ||
val current_production: Int, | ||
val output_today: Int, | ||
val output_month: Int, | ||
val output_to_date: Int | ||
) |
85 changes: 0 additions & 85 deletions
85
app/src/main/java/eu/rickvanschijndel/solargraph/models/Models.kt
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
app/src/main/java/eu/rickvanschijndel/solargraph/models/MonitorData.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,8 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class MonitorData( | ||
val dt_first_msg: String, | ||
val dt_latest_msg: String | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/eu/rickvanschijndel/solargraph/models/Mppt.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,9 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Mppt( | ||
val mpptnr: String, | ||
val module_group: String, | ||
val strings: List<Any> | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/eu/rickvanschijndel/solargraph/models/ProductionResponse.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,9 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class ProductionResponse( | ||
val site: Site, | ||
val inverters: List<MonitorData>, | ||
val stats: Stats | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/eu/rickvanschijndel/solargraph/models/Site.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,14 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Site( | ||
val public_key: String, | ||
val name: String, | ||
val address: Address, | ||
val timezone: String, | ||
val nominal_pv_power: String, | ||
val systems: List<System>, | ||
val dt_created: String, | ||
val dt_updated: String | ||
) |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/eu/rickvanschijndel/solargraph/models/SiteResponse.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,10 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class SiteResponse( | ||
val public_key: String, | ||
val name: String, | ||
val address: String, | ||
val date: String | ||
) |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/eu/rickvanschijndel/solargraph/models/Stats.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,8 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class Stats( | ||
val graphs: Graphs, | ||
val kpis: Kpis | ||
) |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/eu/rickvanschijndel/solargraph/models/System.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,13 @@ | ||
// generated using https://github.com/wuseal/JsonToKotlinClass | ||
|
||
package eu.rickvanschijndel.solargraph.models | ||
|
||
data class System( | ||
val name: String, | ||
val retailer: String, | ||
val acpog_number: String, | ||
val nominal_power: Int, | ||
val inverters: List<Inverter>, | ||
val dt_created: String, | ||
val dt_updated: String | ||
) |