Example #1
0
        public void OnLocationReceived(LocationResponse p0)
        {
            ColocatorLocationResponse loc = new ColocatorLocationResponse();

            loc.Latitude      = p0.Latitude;
            loc.Longitude     = p0.Longitude;
            loc.HeadingOffSet = p0.HeadingOffset;
            loc.Error         = p0.Error;
            loc.Timestamp     = (ulong)p0.Timestamp;
            loc.Floor         = p0.Floor;

            ColocatorMain.Instance.Delegate.DidReceiveLocation(loc);
        }
        public override void DidReceiveCCLocation(CCLocation.LocationResponse location)
        {
            ColocatorLocationResponse loc = new ColocatorLocationResponse();

            loc.Latitude      = location.Latitude;
            loc.Longitude     = location.Longitude;
            loc.HeadingOffSet = location.HeadingOffSet;
            loc.Error         = location.Error;
            loc.Timestamp     = location.Timestamp;
            loc.Floor         = location.Floor;

            Delegate.DidReceiveLocation(loc);
        }
Example #3
0
        public void OnLocationsReceived(IList <LocationResponse> p0)
        {
            for (int i = 0; i < p0.Count; i++)
            {
                ColocatorLocationResponse loc = new ColocatorLocationResponse();
                loc.Latitude      = p0[i].Latitude;
                loc.Longitude     = p0[i].Longitude;
                loc.HeadingOffSet = p0[i].HeadingOffset;
                loc.Error         = p0[i].Error;
                loc.Timestamp     = (ulong)p0[i].Timestamp;
                loc.Floor         = p0[i].Floor;

                ColocatorMain.Instance.Delegate.DidReceiveLocation(loc);
            }
        }