C# Class StoreIDTopGateAPI.ApiWrapper

Show file Open project: nedap/StoreIDTopGateAPI Class Usage Examples

Public Methods

Method Description
ApiWrapper ( String baseUrl ) : System
createSpec ( Spec spec ) : Spec
createSubscription ( Subscription subscription ) : Subscription
deleteSpec ( int id ) : void
deleteSubscription ( int id ) : void
getSettings ( ) : Settings
getSpec ( int id ) : Spec
getSpecs ( ) : SpecList
getStatus ( ) : Status
getSubscription ( int id ) : Subscription
getSubscriptions ( ) : SubscriptionList
heartbeat ( ) : void
sendActions ( Actions actions ) : void
testConnection ( ) : void
updateSettings ( Settings settings ) : void
updateSpec ( Spec spec ) : Spec
updateSubscription ( Subscription subscription ) : Subscription

Private Methods

Method Description
doHttpRequest ( String url, String requestMethod = "GET", String data = "" ) : String
fromJson ( String json, Type theClass ) : Object
toJson ( Object obj, Type theClass ) : String

Method Details

ApiWrapper() public method

public ApiWrapper ( String baseUrl ) : System
baseUrl String
return System

createSpec() public method

public createSpec ( Spec spec ) : Spec
spec Spec
return Spec

createSubscription() public method

public createSubscription ( Subscription subscription ) : Subscription
subscription Subscription
return Subscription

deleteSpec() public method

public deleteSpec ( int id ) : void
id int
return void

deleteSubscription() public method

public deleteSubscription ( int id ) : void
id int
return void

getSettings() public method

public getSettings ( ) : Settings
return Settings

getSpec() public method

public getSpec ( int id ) : Spec
id int
return Spec

getSpecs() public method

public getSpecs ( ) : SpecList
return SpecList

getStatus() public method

public getStatus ( ) : Status
return Status

getSubscription() public method

public getSubscription ( int id ) : Subscription
id int
return Subscription

getSubscriptions() public method

public getSubscriptions ( ) : SubscriptionList
return SubscriptionList

heartbeat() public method

public heartbeat ( ) : void
return void

sendActions() public method

public sendActions ( Actions actions ) : void
actions Actions
return void

testConnection() public method

public testConnection ( ) : void
return void

updateSettings() public method

public updateSettings ( Settings settings ) : void
settings Settings
return void

updateSpec() public method

public updateSpec ( Spec spec ) : Spec
spec Spec
return Spec

updateSubscription() public method

public updateSubscription ( Subscription subscription ) : Subscription
subscription Subscription
return Subscription