C# Class csCommon.Types.DataServer.PoI.WebApiService

Inheritance: PoiService
Exibir arquivo Open project: TNOCS/csTouch Class Usage Examples

Protected Properties

Property Type Description
AppState AppStateSettings
ShapeAccentColor Color
api csWebDotNetLib.csWebApi
sub csWebDotNetLib.Subscription

Public Methods

Method Description
CreateWebApiService ( csWebApi api, string name, Layer layer, System.Guid id, string folder = "", string relativeFolder = "" ) : WebApiService
GetFeature ( Newtonsoft.Json.Linq.JObject o ) : Feature
GetFeatureFromPoi ( global p ) : Feature
GetMenuItems ( ) : List
OpenFileSync ( bool saveDsd = true ) : Exception

Open the file synchronously.

Subscribe ( Mode serviceMode ) : void
SyncPoi ( global p, Layer l, Feature f, csWebApi api ) : void

Protected Methods

Method Description
OnFileOpenedEvent ( FileOpenedEventArgs e ) : void
ProcessFile ( ) : Exception

Process the file. Returns an exception iff this did not work, and null otherwise. Perhaps a little ugly.

Private Methods

Method Description
AddFeature ( Feature f, System.Guid id, Layer layer ) : global::DataServer.PoI
GetColor ( string s ) : Color
RestartService ( ) : void

Stops and then starts the service again.

UpdateFeature ( Feature f, global p, Layer layer ) : void

Method Details

CreateWebApiService() public static method

public static CreateWebApiService ( csWebApi api, string name, Layer layer, System.Guid id, string folder = "", string relativeFolder = "" ) : WebApiService
api csWebDotNetLib.csWebApi
name string
layer IO.Swagger.Model.Layer
id System.Guid
folder string
relativeFolder string
return WebApiService

GetFeature() public static method

public static GetFeature ( Newtonsoft.Json.Linq.JObject o ) : Feature
o Newtonsoft.Json.Linq.JObject
return IO.Swagger.Model.Feature

GetFeatureFromPoi() public static method

public static GetFeatureFromPoi ( global p ) : Feature
p global
return IO.Swagger.Model.Feature

GetMenuItems() public method

public GetMenuItems ( ) : List
return List

OnFileOpenedEvent() protected method

protected OnFileOpenedEvent ( FileOpenedEventArgs e ) : void
e FileOpenedEventArgs
return void

OpenFileSync() public method

Open the file synchronously.
public OpenFileSync ( bool saveDsd = true ) : Exception
saveDsd bool Whether to save a data description file (dsd) too.
return System.Exception

ProcessFile() protected method

Process the file. Returns an exception iff this did not work, and null otherwise. Perhaps a little ugly.
protected ProcessFile ( ) : Exception
return System.Exception

Subscribe() public method

public Subscribe ( Mode serviceMode ) : void
serviceMode Mode
return void

SyncPoi() public static method

public static SyncPoi ( global p, Layer l, Feature f, csWebApi api ) : void
p global
l IO.Swagger.Model.Layer
f IO.Swagger.Model.Feature
api csWebDotNetLib.csWebApi
return void

Property Details

AppState protected_oe static_oe property

protected static AppStateSettings AppState
return AppStateSettings

ShapeAccentColor protected_oe property

protected Color ShapeAccentColor
return Color

api protected_oe property

protected csWebApi,csWebDotNetLib api
return csWebDotNetLib.csWebApi

sub protected_oe property

protected Subscription,csWebDotNetLib sub
return csWebDotNetLib.Subscription