43 lines
1.1 KiB
Swift
43 lines
1.1 KiB
Swift
//
|
|
// AccessSchedule.swift
|
|
//
|
|
// Generated by swagger-codegen
|
|
// https://github.com/swagger-api/swagger-codegen
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
/** An entity representing a user's access schedule. */
|
|
|
|
public struct AccessSchedule: Codable {
|
|
|
|
/** Gets or sets the id of this instance. */
|
|
public var _id: Int
|
|
/** Gets or sets the id of the associated user. */
|
|
public var userId: UUID
|
|
/** Gets or sets the day of week. */
|
|
public var dayOfWeek: AllOfAccessScheduleDayOfWeek
|
|
/** Gets or sets the start hour. */
|
|
public var startHour: Double
|
|
/** Gets or sets the end hour. */
|
|
public var endHour: Double
|
|
|
|
public init(_id: Int, userId: UUID, dayOfWeek: AllOfAccessScheduleDayOfWeek, startHour: Double, endHour: Double) {
|
|
self._id = _id
|
|
self.userId = userId
|
|
self.dayOfWeek = dayOfWeek
|
|
self.startHour = startHour
|
|
self.endHour = endHour
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey {
|
|
case _id = "Id"
|
|
case userId = "UserId"
|
|
case dayOfWeek = "DayOfWeek"
|
|
case startHour = "StartHour"
|
|
case endHour = "EndHour"
|
|
}
|
|
|
|
}
|