C# Class Rock.Model.DeviceService

Data access/service class for the Rock.Model.Device entity objects
Show file Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
GetByDeviceTypeGuid ( System.Guid guid ) : IQueryable

Returns a queryable collection of Rock.Model.Device">Devices by the Guid of their Device Type

GetByGeocode ( double latitude, double longitude, int deviceTypeValueId ) : Device

Finds the matching device for the given lat/long coordinates. The given coordinates must intersect one of the stored GeoFence values to be a match. Use the deviceTypeValueId to constrain matching to only certain device types.

GetByIPAddress ( string ipAddress, int deviceTypeValueId, bool skipReverseLookup = true ) : Device

Gets the device by IP address.

Method Details

GetByDeviceTypeGuid() public method

Returns a queryable collection of Rock.Model.Device">Devices by the Guid of their Device Type
public GetByDeviceTypeGuid ( System.Guid guid ) : IQueryable
guid System.Guid A representing the unique identifier of the Device's Device Type
return IQueryable

GetByGeocode() public method

Finds the matching device for the given lat/long coordinates. The given coordinates must intersect one of the stored GeoFence values to be a match. Use the deviceTypeValueId to constrain matching to only certain device types.
public GetByGeocode ( double latitude, double longitude, int deviceTypeValueId ) : Device
latitude double Latitude of the mobile phone/kiosk.
longitude double Longitude of the mobile phone/kiosk.
deviceTypeValueId int Longitude of the mobile phone/kiosk.
return Device

GetByIPAddress() public method

Gets the device by IP address.
public GetByIPAddress ( string ipAddress, int deviceTypeValueId, bool skipReverseLookup = true ) : Device
ipAddress string A representing the ip address.
deviceTypeValueId int A representing the DeviceType of the device that you are searching for.
skipReverseLookup bool A indicating if a reverse lookup will be skipped. If true a DNS reverse lookup for the name of the system /// that belongs to the provided IP address will not be performed, otherwise false and a DNS reverse lookup will be performed.
return Device