//
//  MQTTQoS.swift
//  SwiftyFog
//
//  Created by David Giovannini on 8/9/17.
//  Copyright © 2017 Object Computing Inc. All rights reserved.
//

public enum MQTTQoS: UInt8, CustomStringConvertible {
    case atMostOnce     = 0x00
    case atLeastOnce    = 0x01
    case exactlyOnce    = 0x02
	
	public var description: String {
		switch self {
		case .atMostOnce:
			return "at most once"
		case .atLeastOnce:
			return "at least once"
		case .exactlyOnce:
			return "exactly once"
		}
	}
}

public enum Qos2Mode {
	case lowLatency
	case assured
}
