C# Class Rock.CheckIn.KioskDevice

Datei anzeigen Open project: SparkDevNetwork/Rock Class Usage Examples

Private Properties

Property Type Description
CacheKey string
KioskDevice System
KioskDevice System
LoadKioskLocations void
LoadKioskLocations void

Public Methods

Method Description
ActiveGroupTypes ( List configuredGroupTypes ) : List

Subset of the KioskGroupTypes that are configured and currently active or check in.

FilteredGroupTypes ( List configuredGroupTypes ) : List

Subset of the KioskGroupTypes

Flush ( int id ) : void

Flushes the specified id.

FlushAll ( ) : void

Flushes all.

HasActiveLocations ( List configuredGroupTypes ) : bool

Gets a value indicating whether this instance has active locations.

HasLocations ( List configuredGroupTypes ) : bool

Gets a value indicating whether this instance has active locations.

Locations ( List configuredGroupTypes, RockContext rockContext ) : IEnumerable

returns the locations for this Kiosk for the configured group types

Read ( int id, List configuredGroupTypes ) : KioskDevice

Reads the device by id.

Private Methods

Method Description
CacheKey ( int id ) : string

Caches the key.

KioskDevice ( ) : System

Prevents a default instance of the KioskDevice class from being created.

KioskDevice ( Device device ) : System

Prevents a default instance of the KioskDevice class from being created.

LoadKioskLocations ( KioskDevice kioskDevice, Location location, int>.Dictionary campusLocations, RockContext rockContext ) : void

Loads the kiosk locations.

LoadKioskLocations ( KioskDevice kioskDevice, Location location, int campusId, RockContext rockContext ) : void

Loads the kiosk locations.

Method Details

ActiveGroupTypes() public method

Subset of the KioskGroupTypes that are configured and currently active or check in.
public ActiveGroupTypes ( List configuredGroupTypes ) : List
configuredGroupTypes List The configured group types.
return List

FilteredGroupTypes() public method

Subset of the KioskGroupTypes
public FilteredGroupTypes ( List configuredGroupTypes ) : List
configuredGroupTypes List The current group types.
return List

Flush() public static method

Flushes the specified id.
public static Flush ( int id ) : void
id int The id.
return void

FlushAll() public static method

Flushes all.
public static FlushAll ( ) : void
return void

HasActiveLocations() public method

Gets a value indicating whether this instance has active locations.
public HasActiveLocations ( List configuredGroupTypes ) : bool
configuredGroupTypes List
return bool

HasLocations() public method

Gets a value indicating whether this instance has active locations.
public HasLocations ( List configuredGroupTypes ) : bool
configuredGroupTypes List
return bool

Locations() public method

returns the locations for this Kiosk for the configured group types
public Locations ( List configuredGroupTypes, RockContext rockContext ) : IEnumerable
configuredGroupTypes List The configured group types.
rockContext RockContext The rock context.
return IEnumerable

Read() public static method

Reads the device by id.
public static Read ( int id, List configuredGroupTypes ) : KioskDevice
id int The id.
configuredGroupTypes List The configured group types.
return KioskDevice