         case CarPlayLandscape = 42
     }
     
-    static func type() -> TYPE {
+    public class func type() -> TYPE {
         switch UIDevice.currentDevice().userInterfaceIdiom {
         case .Phone:
             return .Phone

        case CarPlay      // 4
    }
    
    enum ORIENTATION : Int {
        case Unknown             // 0
        case Portrait            // 1
        case Landscape           // 2
    }
    
    enum TYPE_AND_ORIENTATION : Int {
        case UnspecifiedPortrait = 0
        case UnspecifiedLandscape = 1
        case UnspecifiedUnknown = 2


import UIKit

public class Device : NSObject {
    
    public enum TYPE : Int {
        case Unspecified  // 0
        case Phone        // 1
        case Pad          // 2
