///
/// MedicationDoseEventLogStatus.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

/**
 * Represents the JS enum `MedicationDoseEventLogStatus`, backed by a C++ enum.
 */
public typealias MedicationDoseEventLogStatus = margelo.nitro.healthkit.MedicationDoseEventLogStatus

public extension MedicationDoseEventLogStatus {
  /**
   * Get a MedicationDoseEventLogStatus for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "notInteracted":
        self = .notinteracted
      case "notificationNotSent":
        self = .notificationnotsent
      case "snoozed":
        self = .snoozed
      case "taken":
        self = .taken
      case "skipped":
        self = .skipped
      case "notLogged":
        self = .notlogged
      default:
        return nil
    }
  }

  /**
   * Get the String value this MedicationDoseEventLogStatus represents.
   */
  var stringValue: String {
    switch self {
      case .notinteracted:
        return "notInteracted"
      case .notificationnotsent:
        return "notificationNotSent"
      case .snoozed:
        return "snoozed"
      case .taken:
        return "taken"
      case .skipped:
        return "skipped"
      case .notlogged:
        return "notLogged"
    }
  }
}
