namespaces removed (except Application)

This commit is contained in:
Vladimir Enchev
2014-03-24 11:16:38 +02:00
parent d5a91269f6
commit 1b6fdae4a9
29 changed files with 1930 additions and 2040 deletions

View File

@ -1,46 +1,42 @@
export module tk {
export module location {
export enum DesiredAccuracy {
// in meters
ANY = 300,
HIGH = 3,
}
export enum DesiredAccuracy {
// in meters
ANY = 300,
HIGH = 3,
}
export class LocationPoint {
public latitude: number;
public longitude: number;
export class LocationPoint {
public latitude: number;
public longitude: number;
public altitude: number;
public altitude: number;
public horizontalAccuracy: number;
public verticalAccuracy: number;
public horizontalAccuracy: number;
public verticalAccuracy: number;
public speed: number; // in m/s ?
public speed: number; // in m/s ?
public direction: number; // in degrees
public direction: number; // in degrees
public timestamp: any;
}
public timestamp: any;
}
export class LocationRegion {
public latitude: number;
public longitude: number;
export class LocationRegion {
public latitude: number;
public longitude: number;
public raduis: number; // radius in meters
}
public raduis: number; // radius in meters
}
// TODO: This might be implemented with a callback, no need of special type.
export class LocationChangeListener {
//onLocationChange(location: Location) {
//}
}
// TODO: This might be implemented with a callback, no need of special type.
export class LocationChangeListener {
//onLocationChange(location: Location) {
//}
}
// TODO: This might be implemented with two callbacks, no need of special type.
export class RegionChangeListener {
onRegionEnter(region: LocationRegion) {
}
onRegionExit(region: LocationRegion) {
}
}
// TODO: This might be implemented with two callbacks, no need of special type.
export class RegionChangeListener {
onRegionEnter(region: LocationRegion) {
}
}
onRegionExit(region: LocationRegion) {
}
}