C# Class Repository.PosisjonsService

Datei anzeigen Open project: bouvet/BBR2015 Class Usage Examples

Private Properties

Property Type Description
ErForKortEllerHyppig bool
LagrePosisjonTilDatabasen void
TilEksternDeltakerPosisjon EksternDeltakerPosisjon

Public Methods

Method Description
HentforAlleLag ( string scoreboardSecret ) : List
HentforLag ( string lagId ) : LagPosisjoner
Nullstill ( ) : void
PosisjonsService ( DataContextFactory dataContextFactory, OverridableSettings appSettings ) : System
RegistrerPosisjon ( string lagId, string deltakerId, double latitude, double longitude ) : DeltakerPosisjon

Protected Methods

Method Description
HentFraDatabasen ( ) : EksternDeltakerPosisjon>.ConcurrentDictionary
Lagre ( DeltakerPosisjon posisjon ) : void

Private Methods

Method Description
ErForKortEllerHyppig ( EksternDeltakerPosisjon forrige, DeltakerPosisjon posisjon ) : bool
LagrePosisjonTilDatabasen ( DeltakerPosisjon posisjon ) : void
TilEksternDeltakerPosisjon ( DeltakerPosisjon posisjon ) : EksternDeltakerPosisjon

Method Details

HentFraDatabasen() protected method

protected HentFraDatabasen ( ) : EksternDeltakerPosisjon>.ConcurrentDictionary
return EksternDeltakerPosisjon>.ConcurrentDictionary

HentforAlleLag() public method

public HentforAlleLag ( string scoreboardSecret ) : List
scoreboardSecret string
return List

HentforLag() public method

public HentforLag ( string lagId ) : LagPosisjoner
lagId string
return LagPosisjoner

Lagre() protected method

protected Lagre ( DeltakerPosisjon posisjon ) : void
posisjon Database.Entities.DeltakerPosisjon
return void

Nullstill() public method

public Nullstill ( ) : void
return void

PosisjonsService() public method

public PosisjonsService ( DataContextFactory dataContextFactory, OverridableSettings appSettings ) : System
dataContextFactory Database.DataContextFactory
appSettings Database.OverridableSettings
return System

RegistrerPosisjon() public method

public RegistrerPosisjon ( string lagId, string deltakerId, double latitude, double longitude ) : DeltakerPosisjon
lagId string
deltakerId string
latitude double
longitude double
return Database.Entities.DeltakerPosisjon