Skip to content

Commit

Permalink
Added convienience init method.
Browse files Browse the repository at this point in the history
  • Loading branch information
izotx authored Jul 21, 2016
1 parent b67c1a4 commit 670c057
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions JMCiBeaconManager/Classes/DataStructures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ public class iBeacon : NSObject {
self.id = generateId()
}


/**Initializer*/
public init(minor:UInt16?, major:UInt16?, proximityId:String, id:String){

self.UUID = proximityId
self.major = major
self.minor = minor
self.id = id
super.init()
}

/**

Generate a unique id based on the iBecon's paramaters
Expand Down

0 comments on commit 670c057

Please sign in to comment.