Exemplo n.º 1
0
        /// <summary>
        /// Gets the nearest Device within a certain range of the calling device
        /// </summary>
        /// <param name="rangeInMeters">Range in Meters that the returned device will be within</param>
        /// <param name="success">Success Handler</param>
        /// <param name="failure">Failure Handler</param>
        public void GetNearestDeviceInRange(float rangeInMeters, MSESingleDeviceHandler success, MSEErrorHandler failure)
        {
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("identifier", this.intAirAct.OwnDevice.Name);
            parameters.Add("range", rangeInMeters.ToString());

            CallIntAirActRoute(Routes.GetNearestDeviceInRangeRoute, parameters, success, failure);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This method takes an MSEDevice object and 'locates' it. This could be used if the MSEDevice did not have an initial location (i.e. the location and orientation values are nil. Or if the device has become stale and requires an update
        /// </summary>
        /// <param name="device">Device to be located</param>
        /// <param name="success">Success Handler</param>
        /// <param name="failure">Failure Handler</param>
        public void Locate(MSEDevice device, MSESingleDeviceHandler success, MSEErrorHandler failure)
        {
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("identifier", this.intAirAct.OwnDevice.Name);

            CallIntAirActRoute(Routes.GetDeviceInfoRoute, parameters, success, failure);
        }