mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-10 08:16:48 +02:00
90 lines
2.9 KiB
Java
90 lines
2.9 KiB
Java
|
/* Copyright (C) 2021 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 <http://www.gnu.org/licenses/>. */
|
||
|
package nodomain.freeyourgadget.gadgetbridge.devices.qhybrid;
|
||
|
|
||
|
public class HybridHRWatchfaceSettings {
|
||
|
private int displayTimeoutFull = 60;
|
||
|
private int displayTimeoutPartial = 15;
|
||
|
private boolean wristFlickHandsMoveRelative = true;
|
||
|
private int wristFlickDuration = 2200;
|
||
|
private int wristFlickMoveHour = 360;
|
||
|
private int wristFlickMoveMinute = -360;
|
||
|
|
||
|
public HybridHRWatchfaceSettings() {
|
||
|
}
|
||
|
|
||
|
public int getDisplayTimeoutFull() {
|
||
|
return displayTimeoutFull;
|
||
|
}
|
||
|
|
||
|
public void setDisplayTimeoutFull(int displayTimeoutFull) {
|
||
|
this.displayTimeoutFull = displayTimeoutFull;
|
||
|
}
|
||
|
|
||
|
public int getDisplayTimeoutPartial() {
|
||
|
return displayTimeoutPartial;
|
||
|
}
|
||
|
|
||
|
public void setDisplayTimeoutPartial(int displayTimeoutPartial) {
|
||
|
this.displayTimeoutPartial = displayTimeoutPartial;
|
||
|
}
|
||
|
|
||
|
public boolean isWristFlickHandsMoveRelative() {
|
||
|
return wristFlickHandsMoveRelative;
|
||
|
}
|
||
|
|
||
|
public void setWristFlickHandsMoveRelative(boolean wristFlickHandsMoveRelative) {
|
||
|
this.wristFlickHandsMoveRelative = wristFlickHandsMoveRelative;
|
||
|
}
|
||
|
|
||
|
public int getWristFlickDuration() {
|
||
|
return wristFlickDuration;
|
||
|
}
|
||
|
|
||
|
public void setWristFlickDuration(int wristFlickDuration) {
|
||
|
this.wristFlickDuration = wristFlickDuration;
|
||
|
}
|
||
|
|
||
|
public int getWristFlickMoveHour() {
|
||
|
return wristFlickMoveHour;
|
||
|
}
|
||
|
|
||
|
public void setWristFlickMoveHour(int wristFlickMoveHour) {
|
||
|
if (wristFlickMoveHour < -360) {
|
||
|
this.wristFlickMoveHour = -360;
|
||
|
} else if (wristFlickMoveHour > 360) {
|
||
|
this.wristFlickMoveHour = 360;
|
||
|
} else {
|
||
|
this.wristFlickMoveHour = wristFlickMoveHour;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int getWristFlickMoveMinute() {
|
||
|
return wristFlickMoveMinute;
|
||
|
}
|
||
|
|
||
|
public void setWristFlickMoveMinute(int wristFlickMoveMinute) {
|
||
|
if (wristFlickMoveMinute < -360) {
|
||
|
this.wristFlickMoveMinute = -360;
|
||
|
} else if (wristFlickMoveMinute > 360) {
|
||
|
this.wristFlickMoveMinute = 360;
|
||
|
} else {
|
||
|
this.wristFlickMoveMinute = wristFlickMoveMinute;
|
||
|
}
|
||
|
}
|
||
|
}
|