com.geotab.model.entity.notification.NotificationAudioAlarmFile Maven / Gradle / Ivy
package com.geotab.model.entity.notification;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.geotab.model.serialization.serdes.ByteArrayDeserializer;
import com.geotab.model.serialization.serdes.ByteArraySerializer;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
/**
* Custom Notification Alert sound.
*/
@Getter @Setter
@NoArgsConstructor
@SuperBuilder(builderMethodName = "notificationAudioAlarmFileBuilder")
public class NotificationAudioAlarmFile extends NotificationBinaryFile {
/**
* The binary data.
*/
@JsonDeserialize(using = ByteArrayDeserializer.class)
@JsonSerialize(using = ByteArraySerializer.class)
private Byte[] binaryData;
{
setType(NotificationBinaryFileType.AUDIO_ALARM_FILE);
}
}