Add UDID as a filter to device datastore Devices() so that we can hopefully combine UDID with SerialNumber and abandon GetDeviceByUDID in Acknowledge.

This commit is contained in:
Mosen
2016-06-25 22:09:53 +10:00
parent e0aa275058
commit d69becfd53

View File

@@ -105,6 +105,15 @@ func (p SerialNumber) where() string {
return fmt.Sprintf("serial_number = '%s'", p.SerialNumber)
}
// UDID is a filter
type UDID struct {
UDID string
}
func (p UDID) where() string {
return fmt.Sprintf("udid = '%s'", p.UDID)
}
type pgStore struct {
*sqlx.DB
}