C# Class LondonBike.TripLog

Show file Open project: nicwise/londonbikeapp Class Usage Examples

Public Properties

Property Type Description
DistanceInMeters int
EndLat double
EndLon double
EndStation string
StartLat double
StartLon double
StartStation string
Ticks long
TimeInSeconds int
currentTripLog TripLog

Public Methods

Method Description
GetCurrentLocation ( TripLog currentLog, bool isStart, NSAction onFound ) : void
GetDouble ( string d ) : double
GetInt ( string d ) : int
GetLong ( string d ) : long
MakeDummyData ( ) : void
PersistToDisk ( ) : void
RemoveElementAt ( int row ) : void
ReverseGeocode ( TripLog trip ) : void
SaveCurrentTripLog ( ) : void
SetLocation ( double lat, double lon, bool isStart ) : void
StartNewTripItem ( ) : void
StopTripItem ( int totalTime ) : void
TripLog ( ) : System
TripLog ( string items ) : System

Private Methods

Method Description
ReverseGeocode ( double lat, double lon ) : string

Method Details

GetCurrentLocation() public static method

public static GetCurrentLocation ( TripLog currentLog, bool isStart, NSAction onFound ) : void
currentLog TripLog
isStart bool
onFound NSAction
return void

GetDouble() public method

public GetDouble ( string d ) : double
d string
return double

GetInt() public method

public GetInt ( string d ) : int
d string
return int

GetLong() public method

public GetLong ( string d ) : long
d string
return long

MakeDummyData() public static method

public static MakeDummyData ( ) : void
return void

PersistToDisk() public static method

public static PersistToDisk ( ) : void
return void

RemoveElementAt() public static method

public static RemoveElementAt ( int row ) : void
row int
return void

ReverseGeocode() public static method

public static ReverseGeocode ( TripLog trip ) : void
trip TripLog
return void

SaveCurrentTripLog() public static method

public static SaveCurrentTripLog ( ) : void
return void

SetLocation() public method

public SetLocation ( double lat, double lon, bool isStart ) : void
lat double
lon double
isStart bool
return void

StartNewTripItem() public static method

public static StartNewTripItem ( ) : void
return void

StopTripItem() public static method

public static StopTripItem ( int totalTime ) : void
totalTime int
return void

TripLog() public method

public TripLog ( ) : System
return System

TripLog() public method

public TripLog ( string items ) : System
items string
return System

Property Details

DistanceInMeters public property

public int DistanceInMeters
return int

EndLat public property

public double EndLat
return double

EndLon public property

public double EndLon
return double

EndStation public property

public string EndStation
return string

StartLat public property

public double StartLat
return double

StartLon public property

public double StartLon
return double

StartStation public property

public string StartStation
return string

Ticks public property

public long Ticks
return long

TimeInSeconds public property

public int TimeInSeconds
return int

currentTripLog public static property

public static TripLog,LondonBike currentTripLog
return TripLog