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

Inheritance: PoiService
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Protected Properties

Свойство Type Description
AppState AppStateSettings
ShapeAccentColor Color
api csWebDotNetLib.csWebApi
sub csWebDotNetLib.Subscription

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat WebApiService

GetFeature() public static méthode

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

GetFeatureFromPoi() public static méthode

public static GetFeatureFromPoi ( global p ) : Feature
p global
Résultat IO.Swagger.Model.Feature

GetMenuItems() public méthode

public GetMenuItems ( ) : List
Résultat List

OnFileOpenedEvent() protected méthode

protected OnFileOpenedEvent ( FileOpenedEventArgs e ) : void
e FileOpenedEventArgs
Résultat void

OpenFileSync() public méthode

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

ProcessFile() protected méthode

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

Subscribe() public méthode

public Subscribe ( Mode serviceMode ) : void
serviceMode Mode
Résultat void

SyncPoi() public static méthode

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
Résultat void

Property Details

AppState protected_oe static_oe property

protected static AppStateSettings AppState
Résultat AppStateSettings

ShapeAccentColor protected_oe property

protected Color ShapeAccentColor
Résultat Color

api protected_oe property

protected csWebApi,csWebDotNetLib api
Résultat csWebDotNetLib.csWebApi

sub protected_oe property

protected Subscription,csWebDotNetLib sub
Résultat csWebDotNetLib.Subscription