mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
SerializedName should be a bit more explicit and theoretically allows reflectionless deserialization
This commit is contained in:
+12
-5
@@ -16,34 +16,41 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.pinetime;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
@Keep
|
||||
public class InfiniTimeDFUPackage {
|
||||
@SerializedName("manifest")
|
||||
InfiniTimeDFUPackageManifest manifest;
|
||||
}
|
||||
|
||||
@Keep
|
||||
class InfiniTimeDFUPackageManifest {
|
||||
@SerializedName("application")
|
||||
InfiniTimeDFUPackageApplication application;
|
||||
@SerializedName("dfu_version")
|
||||
Float dfu_version;
|
||||
}
|
||||
|
||||
@Keep
|
||||
class InfiniTimeDFUPackageApplication {
|
||||
@SerializedName("bin_file")
|
||||
String bin_file;
|
||||
@SerializedName("dat_file")
|
||||
String dat_file;
|
||||
@SerializedName("init_packet_data")
|
||||
InfiniTimeDFUPackagePacketData init_packet_data;
|
||||
}
|
||||
|
||||
@Keep
|
||||
class InfiniTimeDFUPackagePacketData {
|
||||
@SerializedName("application_version")
|
||||
BigInteger application_version;
|
||||
@SerializedName("device_revision")
|
||||
BigInteger device_revision;
|
||||
@SerializedName("device_type")
|
||||
BigInteger device_type;
|
||||
@SerializedName("firmware_crc16")
|
||||
BigInteger firmware_crc16;
|
||||
@SerializedName("softdevice_req")
|
||||
List<Integer> softdevice_req;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user