2015-10-22 00:53:27 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.devices.miband;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.devices.miband.VibrationProfile;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEAction;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.service.btle.TransactionBuilder;
|
|
|
|
|
|
|
|
public interface NotificationStrategy {
|
2015-11-23 22:46:12 +01:00
|
|
|
void sendDefaultNotification(TransactionBuilder builder, BtLEAction extraAction);
|
2015-10-22 00:53:27 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds a custom notification to the given transaction builder
|
|
|
|
*
|
|
|
|
* @param vibrationProfile specifies how and how often the Band shall vibrate.
|
|
|
|
* @param flashTimes
|
|
|
|
* @param flashColour
|
|
|
|
* @param originalColour
|
|
|
|
* @param flashDuration
|
|
|
|
* @param extraAction an extra action to be executed after every vibration and flash sequence. Allows to abort the repetition, for example.
|
|
|
|
* @param builder
|
|
|
|
*/
|
2015-11-23 22:46:12 +01:00
|
|
|
void sendCustomNotification(VibrationProfile vibrationProfile, int flashTimes, int flashColour, int originalColour, long flashDuration, BtLEAction extraAction, TransactionBuilder builder);
|
2015-10-22 00:53:27 +02:00
|
|
|
}
|