     internal convenience init(name: String, location: Location){
         self.init()
         self.name = name
+        self.deviceType = DeviceType.pinDevice
         self.location = location
     }
 }

    internal convenience init(name:String, platform: String, deviceToken: String, location: Location?){
        self.init()
        self.name = name
        self.platform = platform
        self.deviceToken = deviceToken
        self.location = location

    internal convenience init(name: String, proximityUUID: String, major: NSNumber, minor: NSNumber){
        self.init()
        self.name = name
        self.deviceType = DeviceType.ibeacondevice
        self.proximityUUID = proximityUUID
        self.major = major as? Int32
        self.minor = minor as? Int32
