1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

SerializedName should be a bit more explicit and theoretically allows reflectionless deserialization

This commit is contained in:
TaaviE 2021-05-29 15:26:05 +03:00
parent 0b021d72ab
commit 6403e13c9b

View File

@ -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;
}