AlarmSettings.fromWire constructor

AlarmSettings.fromWire(
  1. AlarmSettingsWire wire
)

Converts from wire datatype.

Implementation

AlarmSettings.fromWire(AlarmSettingsWire wire)
    : id = wire.id,
      dateTime =
          DateTime.fromMillisecondsSinceEpoch(wire.millisecondsSinceEpoch),
      assetAudioPath = wire.assetAudioPath,
      notificationSettings =
          NotificationSettings.fromWire(wire.notificationSettings),
      loopAudio = wire.loopAudio,
      vibrate = wire.vibrate,
      volume = wire.volume,
      volumeEnforced = wire.volumeEnforced,
      fadeDuration = wire.fadeDuration,
      warningNotificationOnKill = wire.warningNotificationOnKill,
      androidFullScreenIntent = wire.androidFullScreenIntent;