mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-10 23:57:31 +01:00
Moyoung: Support the Misirun C17
This commit is contained in:
parent
527b9f5bc3
commit
249cfa7c06
@ -0,0 +1,63 @@
|
|||||||
|
/* Copyright (C) 2024 Arjan Schrijver
|
||||||
|
|
||||||
|
This file is part of Gadgetbridge.
|
||||||
|
|
||||||
|
Gadgetbridge is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Gadgetbridge is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||||
|
package nodomain.freeyourgadget.gadgetbridge.devices.moyoung;
|
||||||
|
|
||||||
|
import androidx.annotation.DrawableRes;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
|
||||||
|
public class MisirunC17Coordinator extends AbstractMoyoungDeviceCoordinator {
|
||||||
|
private static final Logger LOG = LoggerFactory.getLogger(MisirunC17Coordinator.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("C17");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_misirun_c17;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DrawableRes
|
||||||
|
public int getDefaultIconResource() {
|
||||||
|
return R.drawable.ic_device_banglejs;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@DrawableRes
|
||||||
|
public int getDisabledIconResource() {
|
||||||
|
return R.drawable.ic_device_banglejs_disabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getManufacturer() {
|
||||||
|
return "Misirun";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMtu() {
|
||||||
|
return 508;
|
||||||
|
}
|
||||||
|
}
|
@ -232,6 +232,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCo
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiI28UltraCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiI28UltraCoordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.MisirunC17Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.Ear1Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.Ear1Coordinator;
|
||||||
@ -596,6 +597,7 @@ public enum DeviceType {
|
|||||||
COLMI_R09(ColmiR09Coordinator.class),
|
COLMI_R09(ColmiR09Coordinator.class),
|
||||||
COLMI_R10(ColmiR10Coordinator.class),
|
COLMI_R10(ColmiR10Coordinator.class),
|
||||||
COLMI_I28_ULTRA(ColmiI28UltraCoordinator.class),
|
COLMI_I28_ULTRA(ColmiI28UltraCoordinator.class),
|
||||||
|
MISIRUN_C17(MisirunC17Coordinator.class),
|
||||||
B_AND_W_P_SERIES(BandWPSeriesDeviceCoordinator.class),
|
B_AND_W_P_SERIES(BandWPSeriesDeviceCoordinator.class),
|
||||||
SCANNABLE(ScannableDeviceCoordinator.class),
|
SCANNABLE(ScannableDeviceCoordinator.class),
|
||||||
CYCLING_SENSOR(CyclingSensorCoordinator.class),
|
CYCLING_SENSOR(CyclingSensorCoordinator.class),
|
||||||
|
@ -1928,6 +1928,7 @@
|
|||||||
<string name="devicetype_colmi_r09">Colmi R09</string>
|
<string name="devicetype_colmi_r09">Colmi R09</string>
|
||||||
<string name="devicetype_colmi_r10">Colmi R10</string>
|
<string name="devicetype_colmi_r10">Colmi R10</string>
|
||||||
<string name="devicetype_colmi_i28_ultra">Colmi i28 Ultra</string>
|
<string name="devicetype_colmi_i28_ultra">Colmi i28 Ultra</string>
|
||||||
|
<string name="devicetype_misirun_c17">Misirun C17</string>
|
||||||
<string name="devicetype_bandw_pseries">Bowers and Wilkins P series</string>
|
<string name="devicetype_bandw_pseries">Bowers and Wilkins P series</string>
|
||||||
<string name="choose_auto_export_location">Choose export location</string>
|
<string name="choose_auto_export_location">Choose export location</string>
|
||||||
<string name="notification_channel_name">General</string>
|
<string name="notification_channel_name">General</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user