mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
MyCore api Service code generation ! + small test
This commit is contained in:
parent
a5bab36ee4
commit
b210e5d112
BIN
.gradle/5.2.1/fileChanges/last-build.bin
Normal file
BIN
.gradle/5.2.1/fileChanges/last-build.bin
Normal file
Binary file not shown.
BIN
.gradle/5.2.1/fileHashes/fileHashes.lock
Normal file
BIN
.gradle/5.2.1/fileHashes/fileHashes.lock
Normal file
Binary file not shown.
0
.gradle/5.2.1/gc.properties
Normal file
0
.gradle/5.2.1/gc.properties
Normal file
BIN
.gradle/buildOutputCleanup/buildOutputCleanup.lock
Normal file
BIN
.gradle/buildOutputCleanup/buildOutputCleanup.lock
Normal file
Binary file not shown.
2
.gradle/buildOutputCleanup/cache.properties
Normal file
2
.gradle/buildOutputCleanup/cache.properties
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#Tue Mar 30 18:31:38 CEST 2021
|
||||||
|
gradle.version=5.2.1
|
||||||
0
.gradle/vcs-1/gc.properties
Normal file
0
.gradle/vcs-1/gc.properties
Normal file
File diff suppressed because it is too large
Load Diff
@ -85,15 +85,15 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
|
|
||||||
void authenticateTRY() async {
|
void authenticateTRY() async {
|
||||||
print("try auth.. ");
|
print("try auth.. ");
|
||||||
LoginDTO loginDTO = new LoginDTO(email: "test", password: "test");
|
LoginDTO loginDTO = new LoginDTO(email: "test@email.be", password: "kljqsdkljqsd");
|
||||||
LoginDTO user = await clientAPI.authenticationApi.authenticationAuthenticateWithJson(loginDTO);
|
var user2 = await clientAPI.authenticationApi.authenticationAuthenticateWithJson(loginDTO);
|
||||||
print("USER ??");
|
print("USER ??");
|
||||||
print(user);
|
print(user2);
|
||||||
// TODO Call authenticationAuthenticateWithJson to retrieve token and set apiclient bearer token with the result
|
// TODO Call authenticationAuthenticateWithJson to retrieve token and set apiclient bearer token with the result
|
||||||
|
|
||||||
/*var user2 = await clientAPI.userApi.userGet2("604a33639b4a377a413045b9");
|
var user23 = await clientAPI.userApi.userGet("604a33639b4a377a413045b9");
|
||||||
print("user2 values ??");
|
print("user2 values ??");
|
||||||
print(user2.email);*/
|
print(user23.email);
|
||||||
}
|
}
|
||||||
|
|
||||||
// connection succeeded
|
// connection succeeded
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
.openapi-generator-ignore
|
|
||||||
.travis.yml
|
.travis.yml
|
||||||
README.md
|
README.md
|
||||||
doc/Action.md
|
doc/Action.md
|
||||||
@ -12,6 +11,7 @@ doc/AutomationCreateOrUpdateDetailDTOAllOf.md
|
|||||||
doc/AutomationDTO.md
|
doc/AutomationDTO.md
|
||||||
doc/AutomationDetailDTO.md
|
doc/AutomationDetailDTO.md
|
||||||
doc/AutomationDetailDTOAllOf.md
|
doc/AutomationDetailDTOAllOf.md
|
||||||
|
doc/AutomationState.md
|
||||||
doc/AzureADAuthModel.md
|
doc/AzureADAuthModel.md
|
||||||
doc/AzureApi.md
|
doc/AzureApi.md
|
||||||
doc/Book.md
|
doc/Book.md
|
||||||
@ -41,16 +41,16 @@ doc/GroupDetailDTOAllOf.md
|
|||||||
doc/GroupSummaryDTO.md
|
doc/GroupSummaryDTO.md
|
||||||
doc/IOTApi.md
|
doc/IOTApi.md
|
||||||
doc/LayoutApi.md
|
doc/LayoutApi.md
|
||||||
doc/LocationDTO.md
|
|
||||||
doc/LoginDTO.md
|
doc/LoginDTO.md
|
||||||
doc/MQTTApi.md
|
doc/MQTTApi.md
|
||||||
doc/MeansOfCommunication.md
|
doc/MeansOfCommunication.md
|
||||||
doc/MqttMessageDTO.md
|
doc/MqttMessageDTO.md
|
||||||
doc/OddApi.md
|
doc/OddApi.md
|
||||||
doc/OddH2H.md
|
|
||||||
doc/OddNice.md
|
doc/OddNice.md
|
||||||
|
doc/OddObject.md
|
||||||
doc/PanelMenuItem.md
|
doc/PanelMenuItem.md
|
||||||
doc/PanelSection.md
|
doc/PanelSection.md
|
||||||
|
doc/PlaceDTO.md
|
||||||
doc/Provider.md
|
doc/Provider.md
|
||||||
doc/ProviderApi.md
|
doc/ProviderApi.md
|
||||||
doc/ProviderDTO.md
|
doc/ProviderDTO.md
|
||||||
@ -61,10 +61,11 @@ doc/RoomSummaryDTO.md
|
|||||||
doc/ScreenConfiguration.md
|
doc/ScreenConfiguration.md
|
||||||
doc/ScreenDevice.md
|
doc/ScreenDevice.md
|
||||||
doc/ScreenDeviceApi.md
|
doc/ScreenDeviceApi.md
|
||||||
|
doc/ScreenWidget.md
|
||||||
doc/SmartGardenMessage.md
|
doc/SmartGardenMessage.md
|
||||||
doc/SmartPrinterMessage.md
|
doc/SmartPrinterMessage.md
|
||||||
doc/State.md
|
|
||||||
doc/TokenApi.md
|
doc/TokenApi.md
|
||||||
|
doc/TokenDTO.md
|
||||||
doc/Trigger.md
|
doc/Trigger.md
|
||||||
doc/TriggerType.md
|
doc/TriggerType.md
|
||||||
doc/TwitterApi.md
|
doc/TwitterApi.md
|
||||||
@ -75,7 +76,6 @@ doc/UserInfo.md
|
|||||||
doc/UserInfoDetailDTO.md
|
doc/UserInfoDetailDTO.md
|
||||||
doc/ValuesApi.md
|
doc/ValuesApi.md
|
||||||
doc/ViewBy.md
|
doc/ViewBy.md
|
||||||
doc/Widget.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
lib/api.dart
|
lib/api.dart
|
||||||
lib/api/authentication_api.dart
|
lib/api/authentication_api.dart
|
||||||
@ -114,6 +114,7 @@ lib/model/automation_create_or_update_detail_dto_all_of.dart
|
|||||||
lib/model/automation_detail_dto.dart
|
lib/model/automation_detail_dto.dart
|
||||||
lib/model/automation_detail_dto_all_of.dart
|
lib/model/automation_detail_dto_all_of.dart
|
||||||
lib/model/automation_dto.dart
|
lib/model/automation_dto.dart
|
||||||
|
lib/model/automation_state.dart
|
||||||
lib/model/azure_ad_auth_model.dart
|
lib/model/azure_ad_auth_model.dart
|
||||||
lib/model/book.dart
|
lib/model/book.dart
|
||||||
lib/model/condition.dart
|
lib/model/condition.dart
|
||||||
@ -134,14 +135,14 @@ lib/model/group_create_or_update_detail_dto_all_of.dart
|
|||||||
lib/model/group_detail_dto.dart
|
lib/model/group_detail_dto.dart
|
||||||
lib/model/group_detail_dto_all_of.dart
|
lib/model/group_detail_dto_all_of.dart
|
||||||
lib/model/group_summary_dto.dart
|
lib/model/group_summary_dto.dart
|
||||||
lib/model/location_dto.dart
|
|
||||||
lib/model/login_dto.dart
|
lib/model/login_dto.dart
|
||||||
lib/model/means_of_communication.dart
|
lib/model/means_of_communication.dart
|
||||||
lib/model/mqtt_message_dto.dart
|
lib/model/mqtt_message_dto.dart
|
||||||
lib/model/odd_h2_h.dart
|
|
||||||
lib/model/odd_nice.dart
|
lib/model/odd_nice.dart
|
||||||
|
lib/model/odd_object.dart
|
||||||
lib/model/panel_menu_item.dart
|
lib/model/panel_menu_item.dart
|
||||||
lib/model/panel_section.dart
|
lib/model/panel_section.dart
|
||||||
|
lib/model/place_dto.dart
|
||||||
lib/model/provider.dart
|
lib/model/provider.dart
|
||||||
lib/model/provider_dto.dart
|
lib/model/provider_dto.dart
|
||||||
lib/model/room_create_or_update_detail_dto.dart
|
lib/model/room_create_or_update_detail_dto.dart
|
||||||
@ -149,9 +150,10 @@ lib/model/room_detail_dto.dart
|
|||||||
lib/model/room_summary_dto.dart
|
lib/model/room_summary_dto.dart
|
||||||
lib/model/screen_configuration.dart
|
lib/model/screen_configuration.dart
|
||||||
lib/model/screen_device.dart
|
lib/model/screen_device.dart
|
||||||
|
lib/model/screen_widget.dart
|
||||||
lib/model/smart_garden_message.dart
|
lib/model/smart_garden_message.dart
|
||||||
lib/model/smart_printer_message.dart
|
lib/model/smart_printer_message.dart
|
||||||
lib/model/state.dart
|
lib/model/token_dto.dart
|
||||||
lib/model/trigger.dart
|
lib/model/trigger.dart
|
||||||
lib/model/trigger_type.dart
|
lib/model/trigger_type.dart
|
||||||
lib/model/twitter_auth_model.dart
|
lib/model/twitter_auth_model.dart
|
||||||
@ -159,79 +161,4 @@ lib/model/user.dart
|
|||||||
lib/model/user_info.dart
|
lib/model/user_info.dart
|
||||||
lib/model/user_info_detail_dto.dart
|
lib/model/user_info_detail_dto.dart
|
||||||
lib/model/view_by.dart
|
lib/model/view_by.dart
|
||||||
lib/model/widget.dart
|
|
||||||
pubspec.yaml
|
pubspec.yaml
|
||||||
test/action_test.dart
|
|
||||||
test/action_type_test.dart
|
|
||||||
test/authentication_api_test.dart
|
|
||||||
test/automation_api_test.dart
|
|
||||||
test/automation_create_or_update_detail_dto_all_of_test.dart
|
|
||||||
test/automation_create_or_update_detail_dto_test.dart
|
|
||||||
test/automation_detail_dto_all_of_test.dart
|
|
||||||
test/automation_detail_dto_test.dart
|
|
||||||
test/automation_dto_test.dart
|
|
||||||
test/automation_test.dart
|
|
||||||
test/azure_ad_auth_model_test.dart
|
|
||||||
test/azure_api_test.dart
|
|
||||||
test/book_test.dart
|
|
||||||
test/books_api_test.dart
|
|
||||||
test/condition_test.dart
|
|
||||||
test/condition_type_test.dart
|
|
||||||
test/condition_value_test.dart
|
|
||||||
test/connection_status_test.dart
|
|
||||||
test/device_api_test.dart
|
|
||||||
test/device_detail_dto_all_of_test.dart
|
|
||||||
test/device_detail_dto_test.dart
|
|
||||||
test/device_summary_dto_test.dart
|
|
||||||
test/device_test.dart
|
|
||||||
test/device_type_test.dart
|
|
||||||
test/electricity_production_test.dart
|
|
||||||
test/energy_api_test.dart
|
|
||||||
test/facebook_api_test.dart
|
|
||||||
test/facebook_auth_model_test.dart
|
|
||||||
test/google_api_test.dart
|
|
||||||
test/google_auth_model_test.dart
|
|
||||||
test/group_api_test.dart
|
|
||||||
test/group_create_or_update_detail_dto_all_of_test.dart
|
|
||||||
test/group_create_or_update_detail_dto_test.dart
|
|
||||||
test/group_detail_dto_all_of_test.dart
|
|
||||||
test/group_detail_dto_test.dart
|
|
||||||
test/group_summary_dto_test.dart
|
|
||||||
test/group_test.dart
|
|
||||||
test/iot_api_test.dart
|
|
||||||
test/layout_api_test.dart
|
|
||||||
test/location_dto_test.dart
|
|
||||||
test/login_dto_test.dart
|
|
||||||
test/means_of_communication_test.dart
|
|
||||||
test/mqtt_api_test.dart
|
|
||||||
test/mqtt_message_dto_test.dart
|
|
||||||
test/odd_api_test.dart
|
|
||||||
test/odd_h2_h_test.dart
|
|
||||||
test/odd_nice_test.dart
|
|
||||||
test/panel_menu_item_test.dart
|
|
||||||
test/panel_section_test.dart
|
|
||||||
test/provider_api_test.dart
|
|
||||||
test/provider_dto_test.dart
|
|
||||||
test/provider_test.dart
|
|
||||||
test/room_api_test.dart
|
|
||||||
test/room_create_or_update_detail_dto_test.dart
|
|
||||||
test/room_detail_dto_test.dart
|
|
||||||
test/room_summary_dto_test.dart
|
|
||||||
test/screen_configuration_test.dart
|
|
||||||
test/screen_device_api_test.dart
|
|
||||||
test/screen_device_test.dart
|
|
||||||
test/smart_garden_message_test.dart
|
|
||||||
test/smart_printer_message_test.dart
|
|
||||||
test/state_test.dart
|
|
||||||
test/token_api_test.dart
|
|
||||||
test/trigger_test.dart
|
|
||||||
test/trigger_type_test.dart
|
|
||||||
test/twitter_api_test.dart
|
|
||||||
test/twitter_auth_model_test.dart
|
|
||||||
test/user_api_test.dart
|
|
||||||
test/user_info_detail_dto_test.dart
|
|
||||||
test/user_info_test.dart
|
|
||||||
test/user_test.dart
|
|
||||||
test/values_api_test.dart
|
|
||||||
test/view_by_test.dart
|
|
||||||
test/widget_test.dart
|
|
||||||
|
|||||||
@ -60,13 +60,13 @@ try {
|
|||||||
|
|
||||||
## Documentation for API Endpoints
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc\/AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token | Authenticate with form parameters (used by Swagger test client)
|
*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc\/AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token | Authenticate with form parameters (used by Swagger test client)
|
||||||
*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc\/AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate | Authenticate with Json parameters (used by most clients)
|
*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc\/AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate | Authenticate with Json parameters (used by most clients)
|
||||||
*AutomationApi* | [**automationCreate**](doc\/AutomationApi.md#automationcreate) | **POST** /api/automation |
|
*AutomationApi* | [**automationCreate**](doc\/AutomationApi.md#automationcreate) | **POST** /api/automation | Create an automation
|
||||||
*AutomationApi* | [**automationDelete**](doc\/AutomationApi.md#automationdelete) | **DELETE** /api/automation/{automationId} | Delete an automation
|
*AutomationApi* | [**automationDelete**](doc\/AutomationApi.md#automationdelete) | **DELETE** /api/automation/{automationId} | Delete an automation
|
||||||
*AutomationApi* | [**automationDeleteAllForUser**](doc\/AutomationApi.md#automationdeleteallforuser) | **DELETE** /api/automation/user/{userId} | Delete all automation for a specified
|
*AutomationApi* | [**automationDeleteAllForUser**](doc\/AutomationApi.md#automationdeleteallforuser) | **DELETE** /api/automation/user/{userId} | Delete all automation for a specified
|
||||||
*AutomationApi* | [**automationGetAll**](doc\/AutomationApi.md#automationgetall) | **GET** /api/automation/{userId} | Get all automations for the specified user
|
*AutomationApi* | [**automationGetAll**](doc\/AutomationApi.md#automationgetall) | **GET** /api/automation/{userId} | Get all automations for the specified user
|
||||||
@ -81,7 +81,7 @@ Class | Method | HTTP request | Description
|
|||||||
*DeviceApi* | [**deviceCreate**](doc\/DeviceApi.md#devicecreate) | **POST** /api/device | Create a device
|
*DeviceApi* | [**deviceCreate**](doc\/DeviceApi.md#devicecreate) | **POST** /api/device | Create a device
|
||||||
*DeviceApi* | [**deviceCreateDevicesFromProvider**](doc\/DeviceApi.md#devicecreatedevicesfromprovider) | **POST** /api/device/{userId}/fromProvider/{providerId} | Create devices from provider
|
*DeviceApi* | [**deviceCreateDevicesFromProvider**](doc\/DeviceApi.md#devicecreatedevicesfromprovider) | **POST** /api/device/{userId}/fromProvider/{providerId} | Create devices from provider
|
||||||
*DeviceApi* | [**deviceDelete**](doc\/DeviceApi.md#devicedelete) | **DELETE** /api/device/{deviceId} | Delete a device
|
*DeviceApi* | [**deviceDelete**](doc\/DeviceApi.md#devicedelete) | **DELETE** /api/device/{deviceId} | Delete a device
|
||||||
*DeviceApi* | [**deviceDeleteAllForUser**](doc\/DeviceApi.md#devicedeleteallforuser) | **DELETE** /api/device/user/{userId} | Delete all device for a specified
|
*DeviceApi* | [**deviceDeleteAllForUser**](doc\/DeviceApi.md#devicedeleteallforuser) | **DELETE** /api/device/user/{userId} | Delete all device for a specified user
|
||||||
*DeviceApi* | [**deviceDeleteDevicesFromProvider**](doc\/DeviceApi.md#devicedeletedevicesfromprovider) | **DELETE** /api/device/{userId}/fromProvider/{providerId} | Delete devices from provider
|
*DeviceApi* | [**deviceDeleteDevicesFromProvider**](doc\/DeviceApi.md#devicedeletedevicesfromprovider) | **DELETE** /api/device/{userId}/fromProvider/{providerId} | Delete devices from provider
|
||||||
*DeviceApi* | [**deviceGetAll**](doc\/DeviceApi.md#devicegetall) | **GET** /api/device/{userId} | Get all devices summary
|
*DeviceApi* | [**deviceGetAll**](doc\/DeviceApi.md#devicegetall) | **GET** /api/device/{userId} | Get all devices summary
|
||||||
*DeviceApi* | [**deviceGetDetail**](doc\/DeviceApi.md#devicegetdetail) | **GET** /api/device/detail/{deviceId} | Get a specific device info
|
*DeviceApi* | [**deviceGetDetail**](doc\/DeviceApi.md#devicegetdetail) | **GET** /api/device/detail/{deviceId} | Get a specific device info
|
||||||
@ -116,23 +116,23 @@ Class | Method | HTTP request | Description
|
|||||||
*RoomApi* | [**roomCreate**](doc\/RoomApi.md#roomcreate) | **POST** /api/room | Create a room
|
*RoomApi* | [**roomCreate**](doc\/RoomApi.md#roomcreate) | **POST** /api/room | Create a room
|
||||||
*RoomApi* | [**roomDelete**](doc\/RoomApi.md#roomdelete) | **DELETE** /api/room/{roomId}/device/{deviceId} | Delete device from a room
|
*RoomApi* | [**roomDelete**](doc\/RoomApi.md#roomdelete) | **DELETE** /api/room/{roomId}/device/{deviceId} | Delete device from a room
|
||||||
*RoomApi* | [**roomDelete2**](doc\/RoomApi.md#roomdelete2) | **DELETE** /api/room/{roomId} | Delete a room
|
*RoomApi* | [**roomDelete2**](doc\/RoomApi.md#roomdelete2) | **DELETE** /api/room/{roomId} | Delete a room
|
||||||
*RoomApi* | [**roomDeleteAllForUser**](doc\/RoomApi.md#roomdeleteallforuser) | **DELETE** /api/room/user/{userId} | Delete all room for a specified
|
*RoomApi* | [**roomDeleteAllForUser**](doc\/RoomApi.md#roomdeleteallforuser) | **DELETE** /api/room/user/{userId} | Delete all room for a specified user
|
||||||
*RoomApi* | [**roomGetAll**](doc\/RoomApi.md#roomgetall) | **GET** /api/room/{userId} | Get all rooms for the specified user
|
*RoomApi* | [**roomGetAll**](doc\/RoomApi.md#roomgetall) | **GET** /api/room/{userId} | Get all rooms for the specified user
|
||||||
*RoomApi* | [**roomGetDetail**](doc\/RoomApi.md#roomgetdetail) | **GET** /api/room/detail/{roomId} | Get detail info of a specified room
|
*RoomApi* | [**roomGetDetail**](doc\/RoomApi.md#roomgetdetail) | **GET** /api/room/detail/{roomId} | Get detail info of a specified room
|
||||||
*RoomApi* | [**roomUpdate**](doc\/RoomApi.md#roomupdate) | **PUT** /api/room | Update a room
|
*RoomApi* | [**roomUpdate**](doc\/RoomApi.md#roomupdate) | **PUT** /api/room | Update a room
|
||||||
*ScreenDeviceApi* | [**screenDeviceCreateDevice**](doc\/ScreenDeviceApi.md#screendevicecreatedevice) | **POST** /api/device/screen |
|
*ScreenDeviceApi* | [**screenDeviceCreateDevice**](doc\/ScreenDeviceApi.md#screendevicecreatedevice) | **POST** /api/device/screen | Create screen device
|
||||||
*ScreenDeviceApi* | [**screenDeviceDeleteDevice**](doc\/ScreenDeviceApi.md#screendevicedeletedevice) | **DELETE** /api/device/screen/{deviceId} |
|
*ScreenDeviceApi* | [**screenDeviceDeleteDevice**](doc\/ScreenDeviceApi.md#screendevicedeletedevice) | **DELETE** /api/device/screen/{deviceId} | Delete device
|
||||||
*ScreenDeviceApi* | [**screenDeviceGetAllScreenDevices**](doc\/ScreenDeviceApi.md#screendevicegetallscreendevices) | **GET** /api/device/screen |
|
*ScreenDeviceApi* | [**screenDeviceGetAllScreenDevices**](doc\/ScreenDeviceApi.md#screendevicegetallscreendevices) | **GET** /api/device/screen | Get all screen devices
|
||||||
*ScreenDeviceApi* | [**screenDeviceGetDeviceInfo**](doc\/ScreenDeviceApi.md#screendevicegetdeviceinfo) | **GET** /api/device/screen/{screenDeviceId} |
|
*ScreenDeviceApi* | [**screenDeviceGetDeviceInfo**](doc\/ScreenDeviceApi.md#screendevicegetdeviceinfo) | **GET** /api/device/screen/{screenDeviceId} | Get screen device info
|
||||||
*ScreenDeviceApi* | [**screenDeviceUpdateDevice**](doc\/ScreenDeviceApi.md#screendeviceupdatedevice) | **PUT** /api/device/screen/{screenDeviceId} |
|
*ScreenDeviceApi* | [**screenDeviceUpdateDevice**](doc\/ScreenDeviceApi.md#screendeviceupdatedevice) | **PUT** /api/device/screen | Update screen device
|
||||||
*TokenApi* | [**tokenConnectUser**](doc\/TokenApi.md#tokenconnectuser) | **POST** /api/token |
|
*TokenApi* | [**tokenConnectUser**](doc\/TokenApi.md#tokenconnectuser) | **POST** /api/token | Connect user
|
||||||
*TokenApi* | [**tokenCreate**](doc\/TokenApi.md#tokencreate) | **POST** /token |
|
*TokenApi* | [**tokenCreate**](doc\/TokenApi.md#tokencreate) | **POST** /token |
|
||||||
*TwitterApi* | [**twitterCreate**](doc\/TwitterApi.md#twittercreate) | **POST** /twitter |
|
*TwitterApi* | [**twitterCreate**](doc\/TwitterApi.md#twittercreate) | **POST** /twitter |
|
||||||
*UserApi* | [**userCreateUser**](doc\/UserApi.md#usercreateuser) | **POST** /api/user |
|
*UserApi* | [**userCreateUser**](doc\/UserApi.md#usercreateuser) | **POST** /api/user | Create an user
|
||||||
*UserApi* | [**userDeleteUser**](doc\/UserApi.md#userdeleteuser) | **DELETE** /api/user/{id} |
|
*UserApi* | [**userDeleteUser**](doc\/UserApi.md#userdeleteuser) | **DELETE** /api/user/{id} | Delete an user
|
||||||
*UserApi* | [**userGet**](doc\/UserApi.md#userget) | **GET** /api/user | Get a list of user
|
*UserApi* | [**userGet**](doc\/UserApi.md#userget) | **GET** /api/user/{id} | Get a specific user
|
||||||
*UserApi* | [**userGet2**](doc\/UserApi.md#userget2) | **GET** /api/user/{id} | Get a specific user
|
*UserApi* | [**userGetAll**](doc\/UserApi.md#usergetall) | **GET** /api/user | Get a list of user
|
||||||
*UserApi* | [**userUpdateUser**](doc\/UserApi.md#userupdateuser) | **PUT** /api/user |
|
*UserApi* | [**userUpdateUser**](doc\/UserApi.md#userupdateuser) | **PUT** /api/user | Update an user
|
||||||
*ValuesApi* | [**valuesDelete**](doc\/ValuesApi.md#valuesdelete) | **DELETE** /api/test/{id} |
|
*ValuesApi* | [**valuesDelete**](doc\/ValuesApi.md#valuesdelete) | **DELETE** /api/test/{id} |
|
||||||
*ValuesApi* | [**valuesGet**](doc\/ValuesApi.md#valuesget) | **GET** /api/test/{id} |
|
*ValuesApi* | [**valuesGet**](doc\/ValuesApi.md#valuesget) | **GET** /api/test/{id} |
|
||||||
*ValuesApi* | [**valuesGetAll**](doc\/ValuesApi.md#valuesgetall) | **GET** /api/test | It's a test ! :)
|
*ValuesApi* | [**valuesGetAll**](doc\/ValuesApi.md#valuesgetall) | **GET** /api/test | It's a test ! :)
|
||||||
@ -150,6 +150,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [AutomationDTO](doc\/AutomationDTO.md)
|
- [AutomationDTO](doc\/AutomationDTO.md)
|
||||||
- [AutomationDetailDTO](doc\/AutomationDetailDTO.md)
|
- [AutomationDetailDTO](doc\/AutomationDetailDTO.md)
|
||||||
- [AutomationDetailDTOAllOf](doc\/AutomationDetailDTOAllOf.md)
|
- [AutomationDetailDTOAllOf](doc\/AutomationDetailDTOAllOf.md)
|
||||||
|
- [AutomationState](doc\/AutomationState.md)
|
||||||
- [AzureADAuthModel](doc\/AzureADAuthModel.md)
|
- [AzureADAuthModel](doc\/AzureADAuthModel.md)
|
||||||
- [Book](doc\/Book.md)
|
- [Book](doc\/Book.md)
|
||||||
- [Condition](doc\/Condition.md)
|
- [Condition](doc\/Condition.md)
|
||||||
@ -170,14 +171,14 @@ Class | Method | HTTP request | Description
|
|||||||
- [GroupDetailDTO](doc\/GroupDetailDTO.md)
|
- [GroupDetailDTO](doc\/GroupDetailDTO.md)
|
||||||
- [GroupDetailDTOAllOf](doc\/GroupDetailDTOAllOf.md)
|
- [GroupDetailDTOAllOf](doc\/GroupDetailDTOAllOf.md)
|
||||||
- [GroupSummaryDTO](doc\/GroupSummaryDTO.md)
|
- [GroupSummaryDTO](doc\/GroupSummaryDTO.md)
|
||||||
- [LocationDTO](doc\/LocationDTO.md)
|
|
||||||
- [LoginDTO](doc\/LoginDTO.md)
|
- [LoginDTO](doc\/LoginDTO.md)
|
||||||
- [MeansOfCommunication](doc\/MeansOfCommunication.md)
|
- [MeansOfCommunication](doc\/MeansOfCommunication.md)
|
||||||
- [MqttMessageDTO](doc\/MqttMessageDTO.md)
|
- [MqttMessageDTO](doc\/MqttMessageDTO.md)
|
||||||
- [OddH2H](doc\/OddH2H.md)
|
|
||||||
- [OddNice](doc\/OddNice.md)
|
- [OddNice](doc\/OddNice.md)
|
||||||
|
- [OddObject](doc\/OddObject.md)
|
||||||
- [PanelMenuItem](doc\/PanelMenuItem.md)
|
- [PanelMenuItem](doc\/PanelMenuItem.md)
|
||||||
- [PanelSection](doc\/PanelSection.md)
|
- [PanelSection](doc\/PanelSection.md)
|
||||||
|
- [PlaceDTO](doc\/PlaceDTO.md)
|
||||||
- [Provider](doc\/Provider.md)
|
- [Provider](doc\/Provider.md)
|
||||||
- [ProviderDTO](doc\/ProviderDTO.md)
|
- [ProviderDTO](doc\/ProviderDTO.md)
|
||||||
- [RoomCreateOrUpdateDetailDTO](doc\/RoomCreateOrUpdateDetailDTO.md)
|
- [RoomCreateOrUpdateDetailDTO](doc\/RoomCreateOrUpdateDetailDTO.md)
|
||||||
@ -185,9 +186,10 @@ Class | Method | HTTP request | Description
|
|||||||
- [RoomSummaryDTO](doc\/RoomSummaryDTO.md)
|
- [RoomSummaryDTO](doc\/RoomSummaryDTO.md)
|
||||||
- [ScreenConfiguration](doc\/ScreenConfiguration.md)
|
- [ScreenConfiguration](doc\/ScreenConfiguration.md)
|
||||||
- [ScreenDevice](doc\/ScreenDevice.md)
|
- [ScreenDevice](doc\/ScreenDevice.md)
|
||||||
|
- [ScreenWidget](doc\/ScreenWidget.md)
|
||||||
- [SmartGardenMessage](doc\/SmartGardenMessage.md)
|
- [SmartGardenMessage](doc\/SmartGardenMessage.md)
|
||||||
- [SmartPrinterMessage](doc\/SmartPrinterMessage.md)
|
- [SmartPrinterMessage](doc\/SmartPrinterMessage.md)
|
||||||
- [State](doc\/State.md)
|
- [TokenDTO](doc\/TokenDTO.md)
|
||||||
- [Trigger](doc\/Trigger.md)
|
- [Trigger](doc\/Trigger.md)
|
||||||
- [TriggerType](doc\/TriggerType.md)
|
- [TriggerType](doc\/TriggerType.md)
|
||||||
- [TwitterAuthModel](doc\/TwitterAuthModel.md)
|
- [TwitterAuthModel](doc\/TwitterAuthModel.md)
|
||||||
@ -195,7 +197,6 @@ Class | Method | HTTP request | Description
|
|||||||
- [UserInfo](doc\/UserInfo.md)
|
- [UserInfo](doc\/UserInfo.md)
|
||||||
- [UserInfoDetailDTO](doc\/UserInfoDetailDTO.md)
|
- [UserInfoDetailDTO](doc\/UserInfoDetailDTO.md)
|
||||||
- [ViewBy](doc\/ViewBy.md)
|
- [ViewBy](doc\/ViewBy.md)
|
||||||
- [Widget](doc\/Widget.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**groupId** | **String** | | [optional]
|
**groupId** | **String** | | [optional]
|
||||||
**deviceId** | **String** | | [optional]
|
**deviceId** | **String** | | [optional]
|
||||||
**states** | [**List<State>**](State.md) | | [optional] [default to const []]
|
**states** | [**List<AutomationState>**](AutomationState.md) | | [optional] [default to const []]
|
||||||
**rawRequest** | **String** | | [optional]
|
**rawRequest** | **String** | | [optional]
|
||||||
**providerId** | **String** | | [optional]
|
**providerId** | **String** | | [optional]
|
||||||
**type** | [**ActionType**](ActionType.md) | | [optional]
|
**type** | [**ActionType**](ActionType.md) | | [optional]
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -14,7 +14,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **authenticationAuthenticateWithForm**
|
# **authenticationAuthenticateWithForm**
|
||||||
> LoginDTO authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret)
|
> TokenDTO authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret)
|
||||||
|
|
||||||
Authenticate with form parameters (used by Swagger test client)
|
Authenticate with form parameters (used by Swagger test client)
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**LoginDTO**](LoginDTO.md)
|
[**TokenDTO**](TokenDTO.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **authenticationAuthenticateWithJson**
|
# **authenticationAuthenticateWithJson**
|
||||||
> LoginDTO authenticationAuthenticateWithJson(loginDTO)
|
> TokenDTO authenticationAuthenticateWithJson(loginDTO)
|
||||||
|
|
||||||
Authenticate with Json parameters (used by most clients)
|
Authenticate with Json parameters (used by most clients)
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**LoginDTO**](LoginDTO.md)
|
[**TokenDTO**](TokenDTO.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**userId** | **String** | | [optional]
|
**userId** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
|
**active** | **bool** | | [optional]
|
||||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**triggers** | [**List<Trigger>**](Trigger.md) | | [optional] [default to const []]
|
**triggers** | [**List<Trigger>**](Trigger.md) | | [optional] [default to const []]
|
||||||
|
|||||||
@ -5,11 +5,11 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**automationCreate**](AutomationApi.md#automationcreate) | **POST** /api/automation |
|
[**automationCreate**](AutomationApi.md#automationcreate) | **POST** /api/automation | Create an automation
|
||||||
[**automationDelete**](AutomationApi.md#automationdelete) | **DELETE** /api/automation/{automationId} | Delete an automation
|
[**automationDelete**](AutomationApi.md#automationdelete) | **DELETE** /api/automation/{automationId} | Delete an automation
|
||||||
[**automationDeleteAllForUser**](AutomationApi.md#automationdeleteallforuser) | **DELETE** /api/automation/user/{userId} | Delete all automation for a specified
|
[**automationDeleteAllForUser**](AutomationApi.md#automationdeleteallforuser) | **DELETE** /api/automation/user/{userId} | Delete all automation for a specified
|
||||||
[**automationGetAll**](AutomationApi.md#automationgetall) | **GET** /api/automation/{userId} | Get all automations for the specified user
|
[**automationGetAll**](AutomationApi.md#automationgetall) | **GET** /api/automation/{userId} | Get all automations for the specified user
|
||||||
@ -20,7 +20,7 @@ Method | HTTP request | Description
|
|||||||
# **automationCreate**
|
# **automationCreate**
|
||||||
> AutomationDTO automationCreate(automationCreateOrUpdateDetailDTO)
|
> AutomationDTO automationCreate(automationCreateOrUpdateDetailDTO)
|
||||||
|
|
||||||
|
Create an automation
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -29,7 +29,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = AutomationApi();
|
final api_instance = AutomationApi();
|
||||||
final automationCreateOrUpdateDetailDTO = AutomationCreateOrUpdateDetailDTO(); // AutomationCreateOrUpdateDetailDTO |
|
final automationCreateOrUpdateDetailDTO = AutomationCreateOrUpdateDetailDTO(); // AutomationCreateOrUpdateDetailDTO | Automation to create
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.automationCreate(automationCreateOrUpdateDetailDTO);
|
final result = api_instance.automationCreate(automationCreateOrUpdateDetailDTO);
|
||||||
@ -43,7 +43,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**automationCreateOrUpdateDetailDTO** | [**AutomationCreateOrUpdateDetailDTO**](AutomationCreateOrUpdateDetailDTO.md)| |
|
**automationCreateOrUpdateDetailDTO** | [**AutomationCreateOrUpdateDetailDTO**](AutomationCreateOrUpdateDetailDTO.md)| Automation to create |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **automationDelete**
|
# **automationDelete**
|
||||||
> MultipartFile automationDelete(automationId)
|
> String automationDelete(automationId)
|
||||||
|
|
||||||
Delete an automation
|
Delete an automation
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -99,12 +99,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **automationDeleteAllForUser**
|
# **automationDeleteAllForUser**
|
||||||
> MultipartFile automationDeleteAllForUser(userId)
|
> String automationDeleteAllForUser(userId)
|
||||||
|
|
||||||
Delete all automation for a specified
|
Delete all automation for a specified
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
|
**active** | **bool** | | [optional]
|
||||||
**userId** | **String** | | [optional]
|
**userId** | **String** | | [optional]
|
||||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
|
**active** | **bool** | | [optional]
|
||||||
**userId** | **String** | | [optional]
|
**userId** | **String** | | [optional]
|
||||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
|
**active** | **bool** | | [optional]
|
||||||
**userId** | **String** | | [optional]
|
**userId** | **String** | | [optional]
|
||||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
|||||||
16
mycore_api/doc/AutomationState.md
Normal file
16
mycore_api/doc/AutomationState.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# mycoreapi.model.AutomationState
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**name** | **String** | | [optional]
|
||||||
|
**value** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**deviceId** | **String** | | [optional]
|
**deviceId** | **String** | | [optional]
|
||||||
**state** | [**OneOfState**](OneOfState.md) | | [optional]
|
**state** | [**OneOfAutomationState**](OneOfAutomationState.md) | | [optional]
|
||||||
**startTime** | **String** | | [optional]
|
**startTime** | **String** | | [optional]
|
||||||
**endTime** | **String** | | [optional]
|
**endTime** | **String** | | [optional]
|
||||||
**type** | [**ConditionType**](ConditionType.md) | | [optional]
|
**type** | [**ConditionType**](ConditionType.md) | | [optional]
|
||||||
|
|||||||
@ -32,7 +32,7 @@ Name | Type | Description | Notes
|
|||||||
**providerId** | **String** | | [optional]
|
**providerId** | **String** | | [optional]
|
||||||
**manufacturerName** | **String** | | [optional]
|
**manufacturerName** | **String** | | [optional]
|
||||||
**groupIds** | **List<String>** | | [optional] [default to const []]
|
**groupIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**properties** | [**Map<String, Object>**](Object.md) | | [optional] [default to const {}]
|
**properties** | **String** | | [optional]
|
||||||
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**deviceCreate**](DeviceApi.md#devicecreate) | **POST** /api/device | Create a device
|
[**deviceCreate**](DeviceApi.md#devicecreate) | **POST** /api/device | Create a device
|
||||||
[**deviceCreateDevicesFromProvider**](DeviceApi.md#devicecreatedevicesfromprovider) | **POST** /api/device/{userId}/fromProvider/{providerId} | Create devices from provider
|
[**deviceCreateDevicesFromProvider**](DeviceApi.md#devicecreatedevicesfromprovider) | **POST** /api/device/{userId}/fromProvider/{providerId} | Create devices from provider
|
||||||
[**deviceDelete**](DeviceApi.md#devicedelete) | **DELETE** /api/device/{deviceId} | Delete a device
|
[**deviceDelete**](DeviceApi.md#devicedelete) | **DELETE** /api/device/{deviceId} | Delete a device
|
||||||
[**deviceDeleteAllForUser**](DeviceApi.md#devicedeleteallforuser) | **DELETE** /api/device/user/{userId} | Delete all device for a specified
|
[**deviceDeleteAllForUser**](DeviceApi.md#devicedeleteallforuser) | **DELETE** /api/device/user/{userId} | Delete all device for a specified user
|
||||||
[**deviceDeleteDevicesFromProvider**](DeviceApi.md#devicedeletedevicesfromprovider) | **DELETE** /api/device/{userId}/fromProvider/{providerId} | Delete devices from provider
|
[**deviceDeleteDevicesFromProvider**](DeviceApi.md#devicedeletedevicesfromprovider) | **DELETE** /api/device/{userId}/fromProvider/{providerId} | Delete devices from provider
|
||||||
[**deviceGetAll**](DeviceApi.md#devicegetall) | **GET** /api/device/{userId} | Get all devices summary
|
[**deviceGetAll**](DeviceApi.md#devicegetall) | **GET** /api/device/{userId} | Get all devices summary
|
||||||
[**deviceGetDetail**](DeviceApi.md#devicegetdetail) | **GET** /api/device/detail/{deviceId} | Get a specific device info
|
[**deviceGetDetail**](DeviceApi.md#devicegetdetail) | **GET** /api/device/detail/{deviceId} | Get a specific device info
|
||||||
@ -111,7 +111,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **deviceDelete**
|
# **deviceDelete**
|
||||||
> MultipartFile deviceDelete(deviceId)
|
> String deviceDelete(deviceId)
|
||||||
|
|
||||||
Delete a device
|
Delete a device
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -149,14 +149,14 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **deviceDeleteAllForUser**
|
# **deviceDeleteAllForUser**
|
||||||
> MultipartFile deviceDeleteAllForUser(userId)
|
> String deviceDeleteAllForUser(userId)
|
||||||
|
|
||||||
Delete all device for a specified
|
Delete all device for a specified user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -183,7 +183,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -192,12 +192,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **deviceDeleteDevicesFromProvider**
|
# **deviceDeleteDevicesFromProvider**
|
||||||
> MultipartFile deviceDeleteDevicesFromProvider(userId, providerId)
|
> String deviceDeleteDevicesFromProvider(userId, providerId)
|
||||||
|
|
||||||
Delete devices from provider
|
Delete devices from provider
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ Name | Type | Description | Notes
|
|||||||
**locationId** | **String** | | [optional]
|
**locationId** | **String** | | [optional]
|
||||||
**providerId** | **String** | | [optional]
|
**providerId** | **String** | | [optional]
|
||||||
**providerName** | **String** | | [optional]
|
**providerName** | **String** | | [optional]
|
||||||
**location** | [**OneOfLocationDTO**](OneOfLocationDTO.md) | | [optional]
|
**location** | [**OneOfPlaceDTO**](OneOfPlaceDTO.md) | | [optional]
|
||||||
**lastStateDate** | [**DateTime**](DateTime.md) | | [optional]
|
**lastStateDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**battery** | **bool** | | [optional]
|
**battery** | **bool** | | [optional]
|
||||||
**batteryStatus** | **int** | | [optional]
|
**batteryStatus** | **int** | | [optional]
|
||||||
@ -34,7 +34,7 @@ Name | Type | Description | Notes
|
|||||||
**serviceIdentification** | **String** | | [optional]
|
**serviceIdentification** | **String** | | [optional]
|
||||||
**manufacturerName** | **String** | | [optional]
|
**manufacturerName** | **String** | | [optional]
|
||||||
**groupIds** | **List<String>** | | [optional] [default to const []]
|
**groupIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**properties** | [**Map<String, Object>**](Object.md) | | [optional] [default to const {}]
|
**properties** | **String** | | [optional]
|
||||||
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|||||||
@ -19,7 +19,7 @@ Name | Type | Description | Notes
|
|||||||
**serviceIdentification** | **String** | | [optional]
|
**serviceIdentification** | **String** | | [optional]
|
||||||
**manufacturerName** | **String** | | [optional]
|
**manufacturerName** | **String** | | [optional]
|
||||||
**groupIds** | **List<String>** | | [optional] [default to const []]
|
**groupIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**properties** | [**Map<String, Object>**](Object.md) | | [optional] [default to const {}]
|
**properties** | **String** | | [optional]
|
||||||
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
**supportedOperations** | **List<String>** | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|||||||
@ -19,7 +19,7 @@ Name | Type | Description | Notes
|
|||||||
**locationId** | **String** | | [optional]
|
**locationId** | **String** | | [optional]
|
||||||
**providerId** | **String** | | [optional]
|
**providerId** | **String** | | [optional]
|
||||||
**providerName** | **String** | | [optional]
|
**providerName** | **String** | | [optional]
|
||||||
**location** | [**OneOfLocationDTO**](OneOfLocationDTO.md) | | [optional]
|
**location** | [**OneOfPlaceDTO**](OneOfPlaceDTO.md) | | [optional]
|
||||||
**lastStateDate** | [**DateTime**](DateTime.md) | | [optional]
|
**lastStateDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**battery** | **bool** | | [optional]
|
**battery** | **bool** | | [optional]
|
||||||
**batteryStatus** | **int** | | [optional]
|
**batteryStatus** | **int** | | [optional]
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -108,7 +108,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **groupDelete**
|
# **groupDelete**
|
||||||
> MultipartFile groupDelete(deviceId, groupId)
|
> String groupDelete(deviceId, groupId)
|
||||||
|
|
||||||
Delete device from a group
|
Delete device from a group
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -148,12 +148,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **groupDelete2**
|
# **groupDelete2**
|
||||||
> MultipartFile groupDelete2(groupId)
|
> String groupDelete2(groupId)
|
||||||
|
|
||||||
Delete a group
|
Delete a group
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -191,12 +191,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **groupDeleteAllForUser**
|
# **groupDeleteAllForUser**
|
||||||
> MultipartFile groupDeleteAllForUser(userId)
|
> String groupDeleteAllForUser(userId)
|
||||||
|
|
||||||
Delete all group for a specified
|
Delete all group for a specified
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -282,7 +282,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **groupGetDetail**
|
# **groupGetDetail**
|
||||||
> GroupDetailDTO groupGetDetail(groupId, userId)
|
> GroupDetailDTO groupGetDetail(groupId)
|
||||||
|
|
||||||
Get detail info of a specified group
|
Get detail info of a specified group
|
||||||
|
|
||||||
@ -294,10 +294,9 @@ import 'package:mycoreapi/api.dart';
|
|||||||
|
|
||||||
final api_instance = GroupApi();
|
final api_instance = GroupApi();
|
||||||
final groupId = groupId_example; // String | groupid
|
final groupId = groupId_example; // String | groupid
|
||||||
final userId = userId_example; // String | user id
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.groupGetDetail(groupId, userId);
|
final result = api_instance.groupGetDetail(groupId);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling GroupApi->groupGetDetail: $e\n');
|
print('Exception when calling GroupApi->groupGetDetail: $e\n');
|
||||||
@ -309,7 +308,6 @@ try {
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**groupId** | **String**| groupid |
|
**groupId** | **String**| groupid |
|
||||||
**userId** | **String**| user id | [optional]
|
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**teams** | **List<String>** | | [optional] [default to const []]
|
**teams** | **List<String>** | | [optional] [default to const []]
|
||||||
**commenceTime** | **int** | | [optional]
|
**commenceTime** | **int** | | [optional]
|
||||||
**homeTeam** | **String** | | [optional]
|
**homeTeam** | **String** | | [optional]
|
||||||
**odds** | [**OneOfOddH2H**](OneOfOddH2H.md) | | [optional]
|
**odds** | [**OneOfOddObject**](OneOfOddObject.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
17
mycore_api/doc/OddObject.md
Normal file
17
mycore_api/doc/OddObject.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# mycoreapi.model.OddObject
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**homeOdd** | **double** | | [optional]
|
||||||
|
**drawOdd** | **double** | | [optional]
|
||||||
|
**visitOdd** | **double** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
16
mycore_api/doc/PlaceDTO.md
Normal file
16
mycore_api/doc/PlaceDTO.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# mycoreapi.model.PlaceDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**name** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -59,7 +59,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **providerDelete**
|
# **providerDelete**
|
||||||
> MultipartFile providerDelete(providerId)
|
> String providerDelete(providerId)
|
||||||
|
|
||||||
Delete a provider
|
Delete a provider
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = ProviderApi();
|
final api_instance = ProviderApi();
|
||||||
final userId = userId_example; // String |
|
final userId = userId_example; // String | Id of user
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.providerGetAll(userId);
|
final result = api_instance.providerGetAll(userId);
|
||||||
@ -127,7 +127,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**userId** | **String**| |
|
**userId** | **String**| Id of user |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**roomCreate**](RoomApi.md#roomcreate) | **POST** /api/room | Create a room
|
[**roomCreate**](RoomApi.md#roomcreate) | **POST** /api/room | Create a room
|
||||||
[**roomDelete**](RoomApi.md#roomdelete) | **DELETE** /api/room/{roomId}/device/{deviceId} | Delete device from a room
|
[**roomDelete**](RoomApi.md#roomdelete) | **DELETE** /api/room/{roomId}/device/{deviceId} | Delete device from a room
|
||||||
[**roomDelete2**](RoomApi.md#roomdelete2) | **DELETE** /api/room/{roomId} | Delete a room
|
[**roomDelete2**](RoomApi.md#roomdelete2) | **DELETE** /api/room/{roomId} | Delete a room
|
||||||
[**roomDeleteAllForUser**](RoomApi.md#roomdeleteallforuser) | **DELETE** /api/room/user/{userId} | Delete all room for a specified
|
[**roomDeleteAllForUser**](RoomApi.md#roomdeleteallforuser) | **DELETE** /api/room/user/{userId} | Delete all room for a specified user
|
||||||
[**roomGetAll**](RoomApi.md#roomgetall) | **GET** /api/room/{userId} | Get all rooms for the specified user
|
[**roomGetAll**](RoomApi.md#roomgetall) | **GET** /api/room/{userId} | Get all rooms for the specified user
|
||||||
[**roomGetDetail**](RoomApi.md#roomgetdetail) | **GET** /api/room/detail/{roomId} | Get detail info of a specified room
|
[**roomGetDetail**](RoomApi.md#roomgetdetail) | **GET** /api/room/detail/{roomId} | Get detail info of a specified room
|
||||||
[**roomUpdate**](RoomApi.md#roomupdate) | **PUT** /api/room | Update a room
|
[**roomUpdate**](RoomApi.md#roomupdate) | **PUT** /api/room | Update a room
|
||||||
@ -62,7 +62,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **roomDelete**
|
# **roomDelete**
|
||||||
> MultipartFile roomDelete(deviceId, roomId)
|
> String roomDelete(deviceId, roomId)
|
||||||
|
|
||||||
Delete device from a room
|
Delete device from a room
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -102,12 +102,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **roomDelete2**
|
# **roomDelete2**
|
||||||
> MultipartFile roomDelete2(roomId)
|
> String roomDelete2(roomId)
|
||||||
|
|
||||||
Delete a room
|
Delete a room
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -145,14 +145,14 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **roomDeleteAllForUser**
|
# **roomDeleteAllForUser**
|
||||||
> MultipartFile roomDeleteAllForUser(userId)
|
> String roomDeleteAllForUser(userId)
|
||||||
|
|
||||||
Delete all room for a specified
|
Delete all room for a specified user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -179,7 +179,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
**type** | **String** | | [optional]
|
**type** | **String** | | [optional]
|
||||||
**widgets** | [**List<Widget>**](Widget.md) | | [optional] [default to const []]
|
**widgets** | [**List<ScreenWidget>**](ScreenWidget.md) | | [optional] [default to const []]
|
||||||
**height** | **int** | | [optional]
|
**height** | **int** | | [optional]
|
||||||
**width** | **int** | | [optional]
|
**width** | **int** | | [optional]
|
||||||
|
|
||||||
|
|||||||
@ -5,21 +5,21 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**screenDeviceCreateDevice**](ScreenDeviceApi.md#screendevicecreatedevice) | **POST** /api/device/screen |
|
[**screenDeviceCreateDevice**](ScreenDeviceApi.md#screendevicecreatedevice) | **POST** /api/device/screen | Create screen device
|
||||||
[**screenDeviceDeleteDevice**](ScreenDeviceApi.md#screendevicedeletedevice) | **DELETE** /api/device/screen/{deviceId} |
|
[**screenDeviceDeleteDevice**](ScreenDeviceApi.md#screendevicedeletedevice) | **DELETE** /api/device/screen/{deviceId} | Delete device
|
||||||
[**screenDeviceGetAllScreenDevices**](ScreenDeviceApi.md#screendevicegetallscreendevices) | **GET** /api/device/screen |
|
[**screenDeviceGetAllScreenDevices**](ScreenDeviceApi.md#screendevicegetallscreendevices) | **GET** /api/device/screen | Get all screen devices
|
||||||
[**screenDeviceGetDeviceInfo**](ScreenDeviceApi.md#screendevicegetdeviceinfo) | **GET** /api/device/screen/{screenDeviceId} |
|
[**screenDeviceGetDeviceInfo**](ScreenDeviceApi.md#screendevicegetdeviceinfo) | **GET** /api/device/screen/{screenDeviceId} | Get screen device info
|
||||||
[**screenDeviceUpdateDevice**](ScreenDeviceApi.md#screendeviceupdatedevice) | **PUT** /api/device/screen/{screenDeviceId} |
|
[**screenDeviceUpdateDevice**](ScreenDeviceApi.md#screendeviceupdatedevice) | **PUT** /api/device/screen | Update screen device
|
||||||
|
|
||||||
|
|
||||||
# **screenDeviceCreateDevice**
|
# **screenDeviceCreateDevice**
|
||||||
> MultipartFile screenDeviceCreateDevice(screenDevice)
|
> ScreenDevice screenDeviceCreateDevice(screenDevice)
|
||||||
|
|
||||||
|
|
||||||
|
Create screen device
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -28,7 +28,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = ScreenDeviceApi();
|
final api_instance = ScreenDeviceApi();
|
||||||
final screenDevice = ScreenDevice(); // ScreenDevice |
|
final screenDevice = ScreenDevice(); // ScreenDevice | Screen device to create
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.screenDeviceCreateDevice(screenDevice);
|
final result = api_instance.screenDeviceCreateDevice(screenDevice);
|
||||||
@ -42,11 +42,11 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**screenDevice** | [**ScreenDevice**](ScreenDevice.md)| |
|
**screenDevice** | [**ScreenDevice**](ScreenDevice.md)| Screen device to create |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
[**ScreenDevice**](ScreenDevice.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -55,14 +55,14 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **screenDeviceDeleteDevice**
|
# **screenDeviceDeleteDevice**
|
||||||
> MultipartFile screenDeviceDeleteDevice(deviceId)
|
> String screenDeviceDeleteDevice(deviceId)
|
||||||
|
|
||||||
|
|
||||||
|
Delete device
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -71,7 +71,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = ScreenDeviceApi();
|
final api_instance = ScreenDeviceApi();
|
||||||
final deviceId = deviceId_example; // String |
|
final deviceId = deviceId_example; // String | Screen device id to update
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.screenDeviceDeleteDevice(deviceId);
|
final result = api_instance.screenDeviceDeleteDevice(deviceId);
|
||||||
@ -85,11 +85,11 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**deviceId** | **String**| |
|
**deviceId** | **String**| Screen device id to update |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -98,14 +98,14 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **screenDeviceGetAllScreenDevices**
|
# **screenDeviceGetAllScreenDevices**
|
||||||
> List<ScreenDevice> screenDeviceGetAllScreenDevices()
|
> List<ScreenDevice> screenDeviceGetAllScreenDevices()
|
||||||
|
|
||||||
|
Get all screen devices
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -144,7 +144,7 @@ This endpoint does not need any parameter.
|
|||||||
# **screenDeviceGetDeviceInfo**
|
# **screenDeviceGetDeviceInfo**
|
||||||
> ScreenDevice screenDeviceGetDeviceInfo(screenDeviceId)
|
> ScreenDevice screenDeviceGetDeviceInfo(screenDeviceId)
|
||||||
|
|
||||||
|
Get screen device info
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -185,9 +185,9 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **screenDeviceUpdateDevice**
|
# **screenDeviceUpdateDevice**
|
||||||
> MultipartFile screenDeviceUpdateDevice(screenDeviceId, screenDevice)
|
> ScreenDevice screenDeviceUpdateDevice(screenDevice)
|
||||||
|
|
||||||
|
|
||||||
|
Update screen device
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -196,11 +196,10 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = ScreenDeviceApi();
|
final api_instance = ScreenDeviceApi();
|
||||||
final screenDeviceId = 56; // int |
|
final screenDevice = ScreenDevice(); // ScreenDevice | Screen device to update
|
||||||
final screenDevice = ScreenDevice(); // ScreenDevice |
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.screenDeviceUpdateDevice(screenDeviceId, screenDevice);
|
final result = api_instance.screenDeviceUpdateDevice(screenDevice);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling ScreenDeviceApi->screenDeviceUpdateDevice: $e\n');
|
print('Exception when calling ScreenDeviceApi->screenDeviceUpdateDevice: $e\n');
|
||||||
@ -211,12 +210,11 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**screenDeviceId** | **int**| |
|
**screenDevice** | [**ScreenDevice**](ScreenDevice.md)| Screen device to update |
|
||||||
**screenDevice** | [**ScreenDevice**](ScreenDevice.md)| |
|
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
[**ScreenDevice**](ScreenDevice.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -225,7 +223,7 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
27
mycore_api/doc/ScreenWidget.md
Normal file
27
mycore_api/doc/ScreenWidget.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# mycoreapi.model.ScreenWidget
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**name** | **String** | | [optional]
|
||||||
|
**displayName** | **String** | | [optional]
|
||||||
|
**type** | **String** | | [optional]
|
||||||
|
**activated** | **bool** | | [optional]
|
||||||
|
**form** | **String** | | [optional]
|
||||||
|
**font** | **String** | | [optional]
|
||||||
|
**color** | **String** | | [optional]
|
||||||
|
**size** | **String** | | [optional]
|
||||||
|
**width** | **int** | | [optional]
|
||||||
|
**height** | **int** | | [optional]
|
||||||
|
**positionX** | **int** | | [optional]
|
||||||
|
**positionY** | **int** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,18 +5,18 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**tokenConnectUser**](TokenApi.md#tokenconnectuser) | **POST** /api/token |
|
[**tokenConnectUser**](TokenApi.md#tokenconnectuser) | **POST** /api/token | Connect user
|
||||||
[**tokenCreate**](TokenApi.md#tokencreate) | **POST** /token |
|
[**tokenCreate**](TokenApi.md#tokencreate) | **POST** /token |
|
||||||
|
|
||||||
|
|
||||||
# **tokenConnectUser**
|
# **tokenConnectUser**
|
||||||
> UserInfo tokenConnectUser(loginDTO)
|
> UserInfo tokenConnectUser(loginDTO)
|
||||||
|
|
||||||
|
Connect user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -25,7 +25,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = TokenApi();
|
final api_instance = TokenApi();
|
||||||
final loginDTO = LoginDTO(); // LoginDTO |
|
final loginDTO = LoginDTO(); // LoginDTO | login info
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.tokenConnectUser(loginDTO);
|
final result = api_instance.tokenConnectUser(loginDTO);
|
||||||
@ -39,7 +39,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**loginDTO** | [**LoginDTO**](LoginDTO.md)| |
|
**loginDTO** | [**LoginDTO**](LoginDTO.md)| login info |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
20
mycore_api/doc/TokenDTO.md
Normal file
20
mycore_api/doc/TokenDTO.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# mycoreapi.model.TokenDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**accessToken** | **String** | | [optional]
|
||||||
|
**refreshToken** | **String** | | [optional]
|
||||||
|
**scope** | **String** | | [optional]
|
||||||
|
**tokenType** | **String** | | [optional]
|
||||||
|
**expiresIn** | **int** | | [optional]
|
||||||
|
**expiration** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -5,21 +5,21 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**userCreateUser**](UserApi.md#usercreateuser) | **POST** /api/user |
|
[**userCreateUser**](UserApi.md#usercreateuser) | **POST** /api/user | Create an user
|
||||||
[**userDeleteUser**](UserApi.md#userdeleteuser) | **DELETE** /api/user/{id} |
|
[**userDeleteUser**](UserApi.md#userdeleteuser) | **DELETE** /api/user/{id} | Delete an user
|
||||||
[**userGet**](UserApi.md#userget) | **GET** /api/user | Get a list of user
|
[**userGet**](UserApi.md#userget) | **GET** /api/user/{id} | Get a specific user
|
||||||
[**userGet2**](UserApi.md#userget2) | **GET** /api/user/{id} | Get a specific user
|
[**userGetAll**](UserApi.md#usergetall) | **GET** /api/user | Get a list of user
|
||||||
[**userUpdateUser**](UserApi.md#userupdateuser) | **PUT** /api/user |
|
[**userUpdateUser**](UserApi.md#userupdateuser) | **PUT** /api/user | Update an user
|
||||||
|
|
||||||
|
|
||||||
# **userCreateUser**
|
# **userCreateUser**
|
||||||
> UserInfoDetailDTO userCreateUser(userInfo)
|
> UserInfoDetailDTO userCreateUser(userInfo)
|
||||||
|
|
||||||
|
Create an user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -28,7 +28,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = UserApi();
|
final api_instance = UserApi();
|
||||||
final userInfo = UserInfo(); // UserInfo |
|
final userInfo = UserInfo(); // UserInfo | New user info
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.userCreateUser(userInfo);
|
final result = api_instance.userCreateUser(userInfo);
|
||||||
@ -42,7 +42,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**userInfo** | [**UserInfo**](UserInfo.md)| |
|
**userInfo** | [**UserInfo**](UserInfo.md)| New user info |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -60,9 +60,9 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **userDeleteUser**
|
# **userDeleteUser**
|
||||||
> MultipartFile userDeleteUser(id)
|
> String userDeleteUser(id)
|
||||||
|
|
||||||
|
|
||||||
|
Delete an user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -71,7 +71,7 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = UserApi();
|
final api_instance = UserApi();
|
||||||
final id = id_example; // String |
|
final id = id_example; // String | Id of user to delete
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.userDeleteUser(id);
|
final result = api_instance.userDeleteUser(id);
|
||||||
@ -85,11 +85,11 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**id** | **String**| |
|
**id** | **String**| Id of user to delete |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -98,51 +98,12 @@ Name | Type | Description | Notes
|
|||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/octet-stream
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **userGet**
|
# **userGet**
|
||||||
> MultipartFile userGet()
|
> UserInfoDetailDTO userGet(id)
|
||||||
|
|
||||||
Get a list of user
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:mycoreapi/api.dart';
|
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
||||||
|
|
||||||
final api_instance = UserApi();
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.userGet();
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling UserApi->userGet: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/octet-stream
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **userGet2**
|
|
||||||
> UserInfoDetailDTO userGet2(id)
|
|
||||||
|
|
||||||
Get a specific user
|
Get a specific user
|
||||||
|
|
||||||
@ -156,10 +117,10 @@ final api_instance = UserApi();
|
|||||||
final id = id_example; // String | id user
|
final id = id_example; // String | id user
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.userGet2(id);
|
final result = api_instance.userGet(id);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling UserApi->userGet2: $e\n');
|
print('Exception when calling UserApi->userGet: $e\n');
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -184,10 +145,10 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **userUpdateUser**
|
# **userGetAll**
|
||||||
> UserInfoDetailDTO userUpdateUser(userInfo)
|
> List<UserInfo> userGetAll()
|
||||||
|
|
||||||
|
|
||||||
|
Get a list of user
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
@ -196,7 +157,46 @@ import 'package:mycoreapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = UserApi();
|
final api_instance = UserApi();
|
||||||
final userInfo = UserInfo(); // UserInfo |
|
|
||||||
|
try {
|
||||||
|
final result = api_instance.userGetAll();
|
||||||
|
print(result);
|
||||||
|
} catch (e) {
|
||||||
|
print('Exception when calling UserApi->userGetAll: $e\n');
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**List<UserInfo>**](UserInfo.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[bearer](../README.md#bearer)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **userUpdateUser**
|
||||||
|
> UserInfoDetailDTO userUpdateUser(userInfo)
|
||||||
|
|
||||||
|
Update an user
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```dart
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
|
final api_instance = UserApi();
|
||||||
|
final userInfo = UserInfo(); // UserInfo | User to update
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.userUpdateUser(userInfo);
|
final result = api_instance.userUpdateUser(userInfo);
|
||||||
@ -210,7 +210,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**userInfo** | [**UserInfo**](UserInfo.md)| |
|
**userInfo** | [**UserInfo**](UserInfo.md)| User to update |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:mycoreapi/api.dart';
|
import 'package:mycoreapi/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://192.168.31.140*
|
All URIs are relative to *http://localhost:25049*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -56,6 +56,7 @@ part 'model/automation_create_or_update_detail_dto_all_of.dart';
|
|||||||
part 'model/automation_dto.dart';
|
part 'model/automation_dto.dart';
|
||||||
part 'model/automation_detail_dto.dart';
|
part 'model/automation_detail_dto.dart';
|
||||||
part 'model/automation_detail_dto_all_of.dart';
|
part 'model/automation_detail_dto_all_of.dart';
|
||||||
|
part 'model/automation_state.dart';
|
||||||
part 'model/azure_ad_auth_model.dart';
|
part 'model/azure_ad_auth_model.dart';
|
||||||
part 'model/book.dart';
|
part 'model/book.dart';
|
||||||
part 'model/condition.dart';
|
part 'model/condition.dart';
|
||||||
@ -76,14 +77,14 @@ part 'model/group_create_or_update_detail_dto_all_of.dart';
|
|||||||
part 'model/group_detail_dto.dart';
|
part 'model/group_detail_dto.dart';
|
||||||
part 'model/group_detail_dto_all_of.dart';
|
part 'model/group_detail_dto_all_of.dart';
|
||||||
part 'model/group_summary_dto.dart';
|
part 'model/group_summary_dto.dart';
|
||||||
part 'model/location_dto.dart';
|
|
||||||
part 'model/login_dto.dart';
|
part 'model/login_dto.dart';
|
||||||
part 'model/means_of_communication.dart';
|
part 'model/means_of_communication.dart';
|
||||||
part 'model/mqtt_message_dto.dart';
|
part 'model/mqtt_message_dto.dart';
|
||||||
part 'model/odd_h2_h.dart';
|
|
||||||
part 'model/odd_nice.dart';
|
part 'model/odd_nice.dart';
|
||||||
|
part 'model/odd_object.dart';
|
||||||
part 'model/panel_menu_item.dart';
|
part 'model/panel_menu_item.dart';
|
||||||
part 'model/panel_section.dart';
|
part 'model/panel_section.dart';
|
||||||
|
part 'model/place_dto.dart';
|
||||||
part 'model/provider.dart';
|
part 'model/provider.dart';
|
||||||
part 'model/provider_dto.dart';
|
part 'model/provider_dto.dart';
|
||||||
part 'model/room_create_or_update_detail_dto.dart';
|
part 'model/room_create_or_update_detail_dto.dart';
|
||||||
@ -91,9 +92,10 @@ part 'model/room_detail_dto.dart';
|
|||||||
part 'model/room_summary_dto.dart';
|
part 'model/room_summary_dto.dart';
|
||||||
part 'model/screen_configuration.dart';
|
part 'model/screen_configuration.dart';
|
||||||
part 'model/screen_device.dart';
|
part 'model/screen_device.dart';
|
||||||
|
part 'model/screen_widget.dart';
|
||||||
part 'model/smart_garden_message.dart';
|
part 'model/smart_garden_message.dart';
|
||||||
part 'model/smart_printer_message.dart';
|
part 'model/smart_printer_message.dart';
|
||||||
part 'model/state.dart';
|
part 'model/token_dto.dart';
|
||||||
part 'model/trigger.dart';
|
part 'model/trigger.dart';
|
||||||
part 'model/trigger_type.dart';
|
part 'model/trigger_type.dart';
|
||||||
part 'model/twitter_auth_model.dart';
|
part 'model/twitter_auth_model.dart';
|
||||||
@ -101,7 +103,6 @@ part 'model/user.dart';
|
|||||||
part 'model/user_info.dart';
|
part 'model/user_info.dart';
|
||||||
part 'model/user_info_detail_dto.dart';
|
part 'model/user_info_detail_dto.dart';
|
||||||
part 'model/view_by.dart';
|
part 'model/view_by.dart';
|
||||||
part 'model/widget.dart';
|
|
||||||
|
|
||||||
|
|
||||||
const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
||||||
|
|||||||
@ -117,7 +117,7 @@ class AuthenticationApi {
|
|||||||
/// * [String] clientId:
|
/// * [String] clientId:
|
||||||
///
|
///
|
||||||
/// * [String] clientSecret:
|
/// * [String] clientSecret:
|
||||||
Future<LoginDTO> authenticationAuthenticateWithForm({ String grantType, String username, String password, String clientId, String clientSecret }) async {
|
Future<TokenDTO> authenticationAuthenticateWithForm({ String grantType, String username, String password, String clientId, String clientSecret }) async {
|
||||||
final response = await authenticationAuthenticateWithFormWithHttpInfo( grantType: grantType, username: username, password: password, clientId: clientId, clientSecret: clientSecret );
|
final response = await authenticationAuthenticateWithFormWithHttpInfo( grantType: grantType, username: username, password: password, clientId: clientId, clientSecret: clientSecret );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -126,9 +126,9 @@ class AuthenticationApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'LoginDTO') as LoginDTO;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'TokenDTO') as TokenDTO;
|
||||||
}
|
}
|
||||||
return Future<LoginDTO>.value(null);
|
return Future<TokenDTO>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Authenticate with Json parameters (used by most clients)
|
/// Authenticate with Json parameters (used by most clients)
|
||||||
@ -187,7 +187,7 @@ class AuthenticationApi {
|
|||||||
///
|
///
|
||||||
/// * [LoginDTO] loginDTO (required):
|
/// * [LoginDTO] loginDTO (required):
|
||||||
/// Login DTO
|
/// Login DTO
|
||||||
Future<LoginDTO> authenticationAuthenticateWithJson(LoginDTO loginDTO) async {
|
Future<TokenDTO> authenticationAuthenticateWithJson(LoginDTO loginDTO) async {
|
||||||
final response = await authenticationAuthenticateWithJsonWithHttpInfo(loginDTO);
|
final response = await authenticationAuthenticateWithJsonWithHttpInfo(loginDTO);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -196,8 +196,8 @@ class AuthenticationApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'LoginDTO') as LoginDTO;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'TokenDTO') as TokenDTO;
|
||||||
}
|
}
|
||||||
return Future<LoginDTO>.value(null);
|
return Future<TokenDTO>.value(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,14 @@ class AutomationApi {
|
|||||||
|
|
||||||
final ApiClient apiClient;
|
final ApiClient apiClient;
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /api/automation' operation and returns the [Response].
|
/// Create an automation
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [AutomationCreateOrUpdateDetailDTO] automationCreateOrUpdateDetailDTO (required):
|
/// * [AutomationCreateOrUpdateDetailDTO] automationCreateOrUpdateDetailDTO (required):
|
||||||
|
/// Automation to create
|
||||||
Future<Response> automationCreateWithHttpInfo(AutomationCreateOrUpdateDetailDTO automationCreateOrUpdateDetailDTO) async {
|
Future<Response> automationCreateWithHttpInfo(AutomationCreateOrUpdateDetailDTO automationCreateOrUpdateDetailDTO) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (automationCreateOrUpdateDetailDTO == null) {
|
if (automationCreateOrUpdateDetailDTO == null) {
|
||||||
@ -61,9 +65,12 @@ class AutomationApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create an automation
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [AutomationCreateOrUpdateDetailDTO] automationCreateOrUpdateDetailDTO (required):
|
/// * [AutomationCreateOrUpdateDetailDTO] automationCreateOrUpdateDetailDTO (required):
|
||||||
|
/// Automation to create
|
||||||
Future<AutomationDTO> automationCreate(AutomationCreateOrUpdateDetailDTO automationCreateOrUpdateDetailDTO) async {
|
Future<AutomationDTO> automationCreate(AutomationCreateOrUpdateDetailDTO automationCreateOrUpdateDetailDTO) async {
|
||||||
final response = await automationCreateWithHttpInfo(automationCreateOrUpdateDetailDTO);
|
final response = await automationCreateWithHttpInfo(automationCreateOrUpdateDetailDTO);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
@ -135,7 +142,7 @@ class AutomationApi {
|
|||||||
///
|
///
|
||||||
/// * [String] automationId (required):
|
/// * [String] automationId (required):
|
||||||
/// Id of automation to delete
|
/// Id of automation to delete
|
||||||
Future<MultipartFile> automationDelete(String automationId) async {
|
Future<String> automationDelete(String automationId) async {
|
||||||
final response = await automationDeleteWithHttpInfo(automationId);
|
final response = await automationDeleteWithHttpInfo(automationId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -144,9 +151,9 @@ class AutomationApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all automation for a specified
|
/// Delete all automation for a specified
|
||||||
@ -206,7 +213,7 @@ class AutomationApi {
|
|||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
/// Id of user
|
/// Id of user
|
||||||
Future<MultipartFile> automationDeleteAllForUser(String userId) async {
|
Future<String> automationDeleteAllForUser(String userId) async {
|
||||||
final response = await automationDeleteAllForUserWithHttpInfo(userId);
|
final response = await automationDeleteAllForUserWithHttpInfo(userId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -215,9 +222,9 @@ class AutomationApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all automations for the specified user
|
/// Get all automations for the specified user
|
||||||
|
|||||||
@ -225,7 +225,7 @@ class DeviceApi {
|
|||||||
///
|
///
|
||||||
/// * [String] deviceId (required):
|
/// * [String] deviceId (required):
|
||||||
/// Id of device to delete
|
/// Id of device to delete
|
||||||
Future<MultipartFile> deviceDelete(String deviceId) async {
|
Future<String> deviceDelete(String deviceId) async {
|
||||||
final response = await deviceDeleteWithHttpInfo(deviceId);
|
final response = await deviceDeleteWithHttpInfo(deviceId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -234,12 +234,12 @@ class DeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all device for a specified
|
/// Delete all device for a specified user
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@ -290,13 +290,13 @@ class DeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all device for a specified
|
/// Delete all device for a specified user
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
/// Id of user
|
/// Id of user
|
||||||
Future<MultipartFile> deviceDeleteAllForUser(String userId) async {
|
Future<String> deviceDeleteAllForUser(String userId) async {
|
||||||
final response = await deviceDeleteAllForUserWithHttpInfo(userId);
|
final response = await deviceDeleteAllForUserWithHttpInfo(userId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -305,9 +305,9 @@ class DeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete devices from provider
|
/// Delete devices from provider
|
||||||
@ -377,7 +377,7 @@ class DeviceApi {
|
|||||||
///
|
///
|
||||||
/// * [String] providerId (required):
|
/// * [String] providerId (required):
|
||||||
/// Id of Provider
|
/// Id of Provider
|
||||||
Future<MultipartFile> deviceDeleteDevicesFromProvider(String userId, String providerId) async {
|
Future<String> deviceDeleteDevicesFromProvider(String userId, String providerId) async {
|
||||||
final response = await deviceDeleteDevicesFromProviderWithHttpInfo(userId, providerId);
|
final response = await deviceDeleteDevicesFromProviderWithHttpInfo(userId, providerId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -386,9 +386,9 @@ class DeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all devices summary
|
/// Get all devices summary
|
||||||
|
|||||||
@ -225,7 +225,7 @@ class GroupApi {
|
|||||||
///
|
///
|
||||||
/// * [String] groupId (required):
|
/// * [String] groupId (required):
|
||||||
/// Id of group
|
/// Id of group
|
||||||
Future<MultipartFile> groupDelete(String deviceId, String groupId) async {
|
Future<String> groupDelete(String deviceId, String groupId) async {
|
||||||
final response = await groupDeleteWithHttpInfo(deviceId, groupId);
|
final response = await groupDeleteWithHttpInfo(deviceId, groupId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -234,9 +234,9 @@ class GroupApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete a group
|
/// Delete a group
|
||||||
@ -296,7 +296,7 @@ class GroupApi {
|
|||||||
///
|
///
|
||||||
/// * [String] groupId (required):
|
/// * [String] groupId (required):
|
||||||
/// Id of group
|
/// Id of group
|
||||||
Future<MultipartFile> groupDelete2(String groupId) async {
|
Future<String> groupDelete2(String groupId) async {
|
||||||
final response = await groupDelete2WithHttpInfo(groupId);
|
final response = await groupDelete2WithHttpInfo(groupId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -305,9 +305,9 @@ class GroupApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all group for a specified
|
/// Delete all group for a specified
|
||||||
@ -367,7 +367,7 @@ class GroupApi {
|
|||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
/// Id of user
|
/// Id of user
|
||||||
Future<MultipartFile> groupDeleteAllForUser(String userId) async {
|
Future<String> groupDeleteAllForUser(String userId) async {
|
||||||
final response = await groupDeleteAllForUserWithHttpInfo(userId);
|
final response = await groupDeleteAllForUserWithHttpInfo(userId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -376,9 +376,9 @@ class GroupApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all groups for the specified user
|
/// Get all groups for the specified user
|
||||||
@ -462,10 +462,7 @@ class GroupApi {
|
|||||||
///
|
///
|
||||||
/// * [String] groupId (required):
|
/// * [String] groupId (required):
|
||||||
/// groupid
|
/// groupid
|
||||||
///
|
Future<Response> groupGetDetailWithHttpInfo(String groupId) async {
|
||||||
/// * [String] userId:
|
|
||||||
/// user id
|
|
||||||
Future<Response> groupGetDetailWithHttpInfo(String groupId, { String userId }) async {
|
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (groupId == null) {
|
if (groupId == null) {
|
||||||
throw ApiException(HttpStatus.badRequest, 'Missing required param: groupId');
|
throw ApiException(HttpStatus.badRequest, 'Missing required param: groupId');
|
||||||
@ -480,10 +477,6 @@ class GroupApi {
|
|||||||
final headerParams = <String, String>{};
|
final headerParams = <String, String>{};
|
||||||
final formParams = <String, String>{};
|
final formParams = <String, String>{};
|
||||||
|
|
||||||
if (userId != null) {
|
|
||||||
queryParams.addAll(_convertParametersForCollectionFormat('', 'userId', userId));
|
|
||||||
}
|
|
||||||
|
|
||||||
final contentTypes = <String>[];
|
final contentTypes = <String>[];
|
||||||
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
|
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
|
||||||
final authNames = <String>['bearer'];
|
final authNames = <String>['bearer'];
|
||||||
@ -518,11 +511,8 @@ class GroupApi {
|
|||||||
///
|
///
|
||||||
/// * [String] groupId (required):
|
/// * [String] groupId (required):
|
||||||
/// groupid
|
/// groupid
|
||||||
///
|
Future<GroupDetailDTO> groupGetDetail(String groupId) async {
|
||||||
/// * [String] userId:
|
final response = await groupGetDetailWithHttpInfo(groupId);
|
||||||
/// user id
|
|
||||||
Future<GroupDetailDTO> groupGetDetail(String groupId, { String userId }) async {
|
|
||||||
final response = await groupGetDetailWithHttpInfo(groupId, userId: userId );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -142,7 +142,7 @@ class ProviderApi {
|
|||||||
///
|
///
|
||||||
/// * [String] providerId (required):
|
/// * [String] providerId (required):
|
||||||
/// Id of provider to delete
|
/// Id of provider to delete
|
||||||
Future<MultipartFile> providerDelete(String providerId) async {
|
Future<String> providerDelete(String providerId) async {
|
||||||
final response = await providerDeleteWithHttpInfo(providerId);
|
final response = await providerDeleteWithHttpInfo(providerId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -151,9 +151,9 @@ class ProviderApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all user providers
|
/// Get all user providers
|
||||||
@ -163,6 +163,7 @@ class ProviderApi {
|
|||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
|
/// Id of user
|
||||||
Future<Response> providerGetAllWithHttpInfo(String userId) async {
|
Future<Response> providerGetAllWithHttpInfo(String userId) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (userId == null) {
|
if (userId == null) {
|
||||||
@ -211,6 +212,7 @@ class ProviderApi {
|
|||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
|
/// Id of user
|
||||||
Future<List<ProviderDTO>> providerGetAll(String userId) async {
|
Future<List<ProviderDTO>> providerGetAll(String userId) async {
|
||||||
final response = await providerGetAllWithHttpInfo(userId);
|
final response = await providerGetAllWithHttpInfo(userId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
|||||||
@ -152,7 +152,7 @@ class RoomApi {
|
|||||||
///
|
///
|
||||||
/// * [String] roomId (required):
|
/// * [String] roomId (required):
|
||||||
/// Id of room
|
/// Id of room
|
||||||
Future<MultipartFile> roomDelete(String deviceId, String roomId) async {
|
Future<String> roomDelete(String deviceId, String roomId) async {
|
||||||
final response = await roomDeleteWithHttpInfo(deviceId, roomId);
|
final response = await roomDeleteWithHttpInfo(deviceId, roomId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -161,9 +161,9 @@ class RoomApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete a room
|
/// Delete a room
|
||||||
@ -223,7 +223,7 @@ class RoomApi {
|
|||||||
///
|
///
|
||||||
/// * [String] roomId (required):
|
/// * [String] roomId (required):
|
||||||
/// Id of room
|
/// Id of room
|
||||||
Future<MultipartFile> roomDelete2(String roomId) async {
|
Future<String> roomDelete2(String roomId) async {
|
||||||
final response = await roomDelete2WithHttpInfo(roomId);
|
final response = await roomDelete2WithHttpInfo(roomId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -232,12 +232,12 @@ class RoomApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all room for a specified
|
/// Delete all room for a specified user
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@ -288,13 +288,13 @@ class RoomApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete all room for a specified
|
/// Delete all room for a specified user
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] userId (required):
|
/// * [String] userId (required):
|
||||||
/// Id of user
|
/// Id of user
|
||||||
Future<MultipartFile> roomDeleteAllForUser(String userId) async {
|
Future<String> roomDeleteAllForUser(String userId) async {
|
||||||
final response = await roomDeleteAllForUserWithHttpInfo(userId);
|
final response = await roomDeleteAllForUserWithHttpInfo(userId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -303,9 +303,9 @@ class RoomApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get all rooms for the specified user
|
/// Get all rooms for the specified user
|
||||||
|
|||||||
@ -15,10 +15,14 @@ class ScreenDeviceApi {
|
|||||||
|
|
||||||
final ApiClient apiClient;
|
final ApiClient apiClient;
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /api/device/screen' operation and returns the [Response].
|
/// Create screen device
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [ScreenDevice] screenDevice (required):
|
/// * [ScreenDevice] screenDevice (required):
|
||||||
|
/// Screen device to create
|
||||||
Future<Response> screenDeviceCreateDeviceWithHttpInfo(ScreenDevice screenDevice) async {
|
Future<Response> screenDeviceCreateDeviceWithHttpInfo(ScreenDevice screenDevice) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (screenDevice == null) {
|
if (screenDevice == null) {
|
||||||
@ -61,10 +65,13 @@ class ScreenDeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create screen device
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [ScreenDevice] screenDevice (required):
|
/// * [ScreenDevice] screenDevice (required):
|
||||||
Future<MultipartFile> screenDeviceCreateDevice(ScreenDevice screenDevice) async {
|
/// Screen device to create
|
||||||
|
Future<ScreenDevice> screenDeviceCreateDevice(ScreenDevice screenDevice) async {
|
||||||
final response = await screenDeviceCreateDeviceWithHttpInfo(screenDevice);
|
final response = await screenDeviceCreateDeviceWithHttpInfo(screenDevice);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -73,15 +80,19 @@ class ScreenDeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'ScreenDevice') as ScreenDevice;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<ScreenDevice>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'DELETE /api/device/screen/{deviceId}' operation and returns the [Response].
|
/// Delete device
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] deviceId (required):
|
/// * [String] deviceId (required):
|
||||||
|
/// Screen device id to update
|
||||||
Future<Response> screenDeviceDeleteDeviceWithHttpInfo(String deviceId) async {
|
Future<Response> screenDeviceDeleteDeviceWithHttpInfo(String deviceId) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (deviceId == null) {
|
if (deviceId == null) {
|
||||||
@ -125,10 +136,13 @@ class ScreenDeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Delete device
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] deviceId (required):
|
/// * [String] deviceId (required):
|
||||||
Future<MultipartFile> screenDeviceDeleteDevice(String deviceId) async {
|
/// Screen device id to update
|
||||||
|
Future<String> screenDeviceDeleteDevice(String deviceId) async {
|
||||||
final response = await screenDeviceDeleteDeviceWithHttpInfo(deviceId);
|
final response = await screenDeviceDeleteDeviceWithHttpInfo(deviceId);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -137,12 +151,14 @@ class ScreenDeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /api/device/screen' operation and returns the [Response].
|
/// Get all screen devices
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
Future<Response> screenDeviceGetAllScreenDevicesWithHttpInfo() async {
|
Future<Response> screenDeviceGetAllScreenDevicesWithHttpInfo() async {
|
||||||
final path = r'/api/device/screen';
|
final path = r'/api/device/screen';
|
||||||
|
|
||||||
@ -180,6 +196,7 @@ class ScreenDeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get all screen devices
|
||||||
Future<List<ScreenDevice>> screenDeviceGetAllScreenDevices() async {
|
Future<List<ScreenDevice>> screenDeviceGetAllScreenDevices() async {
|
||||||
final response = await screenDeviceGetAllScreenDevicesWithHttpInfo();
|
final response = await screenDeviceGetAllScreenDevicesWithHttpInfo();
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
@ -196,7 +213,10 @@ class ScreenDeviceApi {
|
|||||||
return Future<List<ScreenDevice>>.value(null);
|
return Future<List<ScreenDevice>>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /api/device/screen/{screenDeviceId}' operation and returns the [Response].
|
/// Get screen device info
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] screenDeviceId (required):
|
/// * [String] screenDeviceId (required):
|
||||||
@ -244,6 +264,8 @@ class ScreenDeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get screen device info
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] screenDeviceId (required):
|
/// * [String] screenDeviceId (required):
|
||||||
@ -262,23 +284,21 @@ class ScreenDeviceApi {
|
|||||||
return Future<ScreenDevice>.value(null);
|
return Future<ScreenDevice>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'PUT /api/device/screen/{screenDeviceId}' operation and returns the [Response].
|
/// Update screen device
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [int] screenDeviceId (required):
|
|
||||||
///
|
|
||||||
/// * [ScreenDevice] screenDevice (required):
|
/// * [ScreenDevice] screenDevice (required):
|
||||||
Future<Response> screenDeviceUpdateDeviceWithHttpInfo(int screenDeviceId, ScreenDevice screenDevice) async {
|
/// Screen device to update
|
||||||
|
Future<Response> screenDeviceUpdateDeviceWithHttpInfo(ScreenDevice screenDevice) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (screenDeviceId == null) {
|
|
||||||
throw ApiException(HttpStatus.badRequest, 'Missing required param: screenDeviceId');
|
|
||||||
}
|
|
||||||
if (screenDevice == null) {
|
if (screenDevice == null) {
|
||||||
throw ApiException(HttpStatus.badRequest, 'Missing required param: screenDevice');
|
throw ApiException(HttpStatus.badRequest, 'Missing required param: screenDevice');
|
||||||
}
|
}
|
||||||
|
|
||||||
final path = r'/api/device/screen/{screenDeviceId}'
|
final path = r'/api/device/screen';
|
||||||
.replaceAll('{' + 'screenDeviceId' + '}', screenDeviceId.toString());
|
|
||||||
|
|
||||||
Object postBody = screenDevice;
|
Object postBody = screenDevice;
|
||||||
|
|
||||||
@ -314,13 +334,14 @@ class ScreenDeviceApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Update screen device
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [int] screenDeviceId (required):
|
|
||||||
///
|
|
||||||
/// * [ScreenDevice] screenDevice (required):
|
/// * [ScreenDevice] screenDevice (required):
|
||||||
Future<MultipartFile> screenDeviceUpdateDevice(int screenDeviceId, ScreenDevice screenDevice) async {
|
/// Screen device to update
|
||||||
final response = await screenDeviceUpdateDeviceWithHttpInfo(screenDeviceId, screenDevice);
|
Future<ScreenDevice> screenDeviceUpdateDevice(ScreenDevice screenDevice) async {
|
||||||
|
final response = await screenDeviceUpdateDeviceWithHttpInfo(screenDevice);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
@ -328,8 +349,8 @@ class ScreenDeviceApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'ScreenDevice') as ScreenDevice;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<ScreenDevice>.value(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,14 @@ class TokenApi {
|
|||||||
|
|
||||||
final ApiClient apiClient;
|
final ApiClient apiClient;
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /api/token' operation and returns the [Response].
|
/// Connect user
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [LoginDTO] loginDTO (required):
|
/// * [LoginDTO] loginDTO (required):
|
||||||
|
/// login info
|
||||||
Future<Response> tokenConnectUserWithHttpInfo(LoginDTO loginDTO) async {
|
Future<Response> tokenConnectUserWithHttpInfo(LoginDTO loginDTO) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (loginDTO == null) {
|
if (loginDTO == null) {
|
||||||
@ -61,9 +65,12 @@ class TokenApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Connect user
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [LoginDTO] loginDTO (required):
|
/// * [LoginDTO] loginDTO (required):
|
||||||
|
/// login info
|
||||||
Future<UserInfo> tokenConnectUser(LoginDTO loginDTO) async {
|
Future<UserInfo> tokenConnectUser(LoginDTO loginDTO) async {
|
||||||
final response = await tokenConnectUserWithHttpInfo(loginDTO);
|
final response = await tokenConnectUserWithHttpInfo(loginDTO);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
|||||||
@ -15,10 +15,14 @@ class UserApi {
|
|||||||
|
|
||||||
final ApiClient apiClient;
|
final ApiClient apiClient;
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /api/user' operation and returns the [Response].
|
/// Create an user
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [UserInfo] userInfo (required):
|
/// * [UserInfo] userInfo (required):
|
||||||
|
/// New user info
|
||||||
Future<Response> userCreateUserWithHttpInfo(UserInfo userInfo) async {
|
Future<Response> userCreateUserWithHttpInfo(UserInfo userInfo) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (userInfo == null) {
|
if (userInfo == null) {
|
||||||
@ -61,9 +65,12 @@ class UserApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create an user
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [UserInfo] userInfo (required):
|
/// * [UserInfo] userInfo (required):
|
||||||
|
/// New user info
|
||||||
Future<UserInfoDetailDTO> userCreateUser(UserInfo userInfo) async {
|
Future<UserInfoDetailDTO> userCreateUser(UserInfo userInfo) async {
|
||||||
final response = await userCreateUserWithHttpInfo(userInfo);
|
final response = await userCreateUserWithHttpInfo(userInfo);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
@ -78,10 +85,14 @@ class UserApi {
|
|||||||
return Future<UserInfoDetailDTO>.value(null);
|
return Future<UserInfoDetailDTO>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'DELETE /api/user/{id}' operation and returns the [Response].
|
/// Delete an user
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] id (required):
|
/// * [String] id (required):
|
||||||
|
/// Id of user to delete
|
||||||
Future<Response> userDeleteUserWithHttpInfo(String id) async {
|
Future<Response> userDeleteUserWithHttpInfo(String id) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
@ -125,10 +136,13 @@ class UserApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Delete an user
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [String] id (required):
|
/// * [String] id (required):
|
||||||
Future<MultipartFile> userDeleteUser(String id) async {
|
/// Id of user to delete
|
||||||
|
Future<String> userDeleteUser(String id) async {
|
||||||
final response = await userDeleteUserWithHttpInfo(id);
|
final response = await userDeleteUserWithHttpInfo(id);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
@ -137,64 +151,9 @@ class UserApi {
|
|||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
// FormatException when trying to decode an empty string.
|
// FormatException when trying to decode an empty string.
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String;
|
||||||
}
|
}
|
||||||
return Future<MultipartFile>.value(null);
|
return Future<String>.value(null);
|
||||||
}
|
|
||||||
|
|
||||||
/// Get a list of user
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> userGetWithHttpInfo() async {
|
|
||||||
final path = r'/api/user';
|
|
||||||
|
|
||||||
Object postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
final contentTypes = <String>[];
|
|
||||||
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
|
|
||||||
final authNames = <String>['bearer'];
|
|
||||||
|
|
||||||
if (
|
|
||||||
nullableContentType != null &&
|
|
||||||
nullableContentType.toLowerCase().startsWith('multipart/form-data')
|
|
||||||
) {
|
|
||||||
bool hasFields = false;
|
|
||||||
final mp = MultipartRequest(null, null);
|
|
||||||
if (hasFields) {
|
|
||||||
postBody = mp;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
|
|
||||||
return await apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
nullableContentType,
|
|
||||||
authNames,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Get a list of user
|
|
||||||
Future<MultipartFile> userGet() async {
|
|
||||||
final response = await userGetWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile;
|
|
||||||
}
|
|
||||||
return Future<MultipartFile>.value(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a specific user
|
/// Get a specific user
|
||||||
@ -205,7 +164,7 @@ class UserApi {
|
|||||||
///
|
///
|
||||||
/// * [String] id (required):
|
/// * [String] id (required):
|
||||||
/// id user
|
/// id user
|
||||||
Future<Response> userGet2WithHttpInfo(String id) async {
|
Future<Response> userGetWithHttpInfo(String id) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
throw ApiException(HttpStatus.badRequest, 'Missing required param: id');
|
throw ApiException(HttpStatus.badRequest, 'Missing required param: id');
|
||||||
@ -254,8 +213,8 @@ class UserApi {
|
|||||||
///
|
///
|
||||||
/// * [String] id (required):
|
/// * [String] id (required):
|
||||||
/// id user
|
/// id user
|
||||||
Future<UserInfoDetailDTO> userGet2(String id) async {
|
Future<UserInfoDetailDTO> userGet(String id) async {
|
||||||
final response = await userGet2WithHttpInfo(id);
|
final response = await userGetWithHttpInfo(id);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
@ -268,10 +227,71 @@ class UserApi {
|
|||||||
return Future<UserInfoDetailDTO>.value(null);
|
return Future<UserInfoDetailDTO>.value(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'PUT /api/user' operation and returns the [Response].
|
/// Get a list of user
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
Future<Response> userGetAllWithHttpInfo() async {
|
||||||
|
final path = r'/api/user';
|
||||||
|
|
||||||
|
Object postBody;
|
||||||
|
|
||||||
|
final queryParams = <QueryParam>[];
|
||||||
|
final headerParams = <String, String>{};
|
||||||
|
final formParams = <String, String>{};
|
||||||
|
|
||||||
|
final contentTypes = <String>[];
|
||||||
|
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
|
||||||
|
final authNames = <String>['bearer'];
|
||||||
|
|
||||||
|
if (
|
||||||
|
nullableContentType != null &&
|
||||||
|
nullableContentType.toLowerCase().startsWith('multipart/form-data')
|
||||||
|
) {
|
||||||
|
bool hasFields = false;
|
||||||
|
final mp = MultipartRequest(null, null);
|
||||||
|
if (hasFields) {
|
||||||
|
postBody = mp;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
|
||||||
|
return await apiClient.invokeAPI(
|
||||||
|
path,
|
||||||
|
'GET',
|
||||||
|
queryParams,
|
||||||
|
postBody,
|
||||||
|
headerParams,
|
||||||
|
formParams,
|
||||||
|
nullableContentType,
|
||||||
|
authNames,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Get a list of user
|
||||||
|
Future<List<UserInfo>> userGetAll() async {
|
||||||
|
final response = await userGetAllWithHttpInfo();
|
||||||
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
throw ApiException(response.statusCode, _decodeBodyBytes(response));
|
||||||
|
}
|
||||||
|
// When a remote server returns no body with a status of 204, we shall not decode it.
|
||||||
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
||||||
|
// FormatException when trying to decode an empty string.
|
||||||
|
if (response.body != null && response.statusCode != HttpStatus.noContent) {
|
||||||
|
return (apiClient.deserialize(_decodeBodyBytes(response), 'List<UserInfo>') as List)
|
||||||
|
.cast<UserInfo>()
|
||||||
|
.toList(growable: false);
|
||||||
|
}
|
||||||
|
return Future<List<UserInfo>>.value(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Update an user
|
||||||
|
///
|
||||||
|
/// Note: This method returns the HTTP [Response].
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [UserInfo] userInfo (required):
|
/// * [UserInfo] userInfo (required):
|
||||||
|
/// User to update
|
||||||
Future<Response> userUpdateUserWithHttpInfo(UserInfo userInfo) async {
|
Future<Response> userUpdateUserWithHttpInfo(UserInfo userInfo) async {
|
||||||
// Verify required params are set.
|
// Verify required params are set.
|
||||||
if (userInfo == null) {
|
if (userInfo == null) {
|
||||||
@ -314,9 +334,12 @@ class UserApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Update an user
|
||||||
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
/// * [UserInfo] userInfo (required):
|
/// * [UserInfo] userInfo (required):
|
||||||
|
/// User to update
|
||||||
Future<UserInfoDetailDTO> userUpdateUser(UserInfo userInfo) async {
|
Future<UserInfoDetailDTO> userUpdateUser(UserInfo userInfo) async {
|
||||||
final response = await userUpdateUserWithHttpInfo(userInfo);
|
final response = await userUpdateUserWithHttpInfo(userInfo);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
|||||||
@ -10,9 +10,9 @@
|
|||||||
part of openapi.api;
|
part of openapi.api;
|
||||||
|
|
||||||
class ApiClient {
|
class ApiClient {
|
||||||
ApiClient({this.basePath = 'http://192.168.31.140', deserializeDelegate}) {
|
ApiClient({this.basePath = 'http://localhost:25049'}) {
|
||||||
// Setup authentications (key: authentication name, value: authentication).
|
// Setup authentications (key: authentication name, value: authentication).
|
||||||
_authentications[r'bearer'] = OAuth(accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAZW1haWwuYmUiLCJuYmYiOjE2MTY3MDY1MzcsImV4cCI6MTYyMTg5MDUzNywiaWF0IjoxNjE2NzA2NTM3fQ.pY5XM2QqoIOGtnfYfvG8a5IxkmRPKDYsRGeBwMnVrfM");
|
_authentications[r'bearer'] = OAuth();
|
||||||
}
|
}
|
||||||
|
|
||||||
final String basePath;
|
final String basePath;
|
||||||
@ -173,6 +173,8 @@ class ApiClient {
|
|||||||
return AutomationDetailDTO.fromJson(value);
|
return AutomationDetailDTO.fromJson(value);
|
||||||
case 'AutomationDetailDTOAllOf':
|
case 'AutomationDetailDTOAllOf':
|
||||||
return AutomationDetailDTOAllOf.fromJson(value);
|
return AutomationDetailDTOAllOf.fromJson(value);
|
||||||
|
case 'AutomationState':
|
||||||
|
return AutomationState.fromJson(value);
|
||||||
case 'AzureADAuthModel':
|
case 'AzureADAuthModel':
|
||||||
return AzureADAuthModel.fromJson(value);
|
return AzureADAuthModel.fromJson(value);
|
||||||
case 'Book':
|
case 'Book':
|
||||||
@ -217,8 +219,6 @@ class ApiClient {
|
|||||||
return GroupDetailDTOAllOf.fromJson(value);
|
return GroupDetailDTOAllOf.fromJson(value);
|
||||||
case 'GroupSummaryDTO':
|
case 'GroupSummaryDTO':
|
||||||
return GroupSummaryDTO.fromJson(value);
|
return GroupSummaryDTO.fromJson(value);
|
||||||
case 'LocationDTO':
|
|
||||||
return LocationDTO.fromJson(value);
|
|
||||||
case 'LoginDTO':
|
case 'LoginDTO':
|
||||||
return LoginDTO.fromJson(value);
|
return LoginDTO.fromJson(value);
|
||||||
case 'MeansOfCommunication':
|
case 'MeansOfCommunication':
|
||||||
@ -226,14 +226,16 @@ class ApiClient {
|
|||||||
|
|
||||||
case 'MqttMessageDTO':
|
case 'MqttMessageDTO':
|
||||||
return MqttMessageDTO.fromJson(value);
|
return MqttMessageDTO.fromJson(value);
|
||||||
case 'OddH2H':
|
|
||||||
return OddH2H.fromJson(value);
|
|
||||||
case 'OddNice':
|
case 'OddNice':
|
||||||
return OddNice.fromJson(value);
|
return OddNice.fromJson(value);
|
||||||
|
case 'OddObject':
|
||||||
|
return OddObject.fromJson(value);
|
||||||
case 'PanelMenuItem':
|
case 'PanelMenuItem':
|
||||||
return PanelMenuItem.fromJson(value);
|
return PanelMenuItem.fromJson(value);
|
||||||
case 'PanelSection':
|
case 'PanelSection':
|
||||||
return PanelSection.fromJson(value);
|
return PanelSection.fromJson(value);
|
||||||
|
case 'PlaceDTO':
|
||||||
|
return PlaceDTO.fromJson(value);
|
||||||
case 'Provider':
|
case 'Provider':
|
||||||
return Provider.fromJson(value);
|
return Provider.fromJson(value);
|
||||||
case 'ProviderDTO':
|
case 'ProviderDTO':
|
||||||
@ -248,12 +250,14 @@ class ApiClient {
|
|||||||
return ScreenConfiguration.fromJson(value);
|
return ScreenConfiguration.fromJson(value);
|
||||||
case 'ScreenDevice':
|
case 'ScreenDevice':
|
||||||
return ScreenDevice.fromJson(value);
|
return ScreenDevice.fromJson(value);
|
||||||
|
case 'ScreenWidget':
|
||||||
|
return ScreenWidget.fromJson(value);
|
||||||
case 'SmartGardenMessage':
|
case 'SmartGardenMessage':
|
||||||
return SmartGardenMessage.fromJson(value);
|
return SmartGardenMessage.fromJson(value);
|
||||||
case 'SmartPrinterMessage':
|
case 'SmartPrinterMessage':
|
||||||
return SmartPrinterMessage.fromJson(value);
|
return SmartPrinterMessage.fromJson(value);
|
||||||
case 'State':
|
case 'TokenDTO':
|
||||||
return StateAPI.fromJson(value);
|
return TokenDTO.fromJson(value);
|
||||||
case 'Trigger':
|
case 'Trigger':
|
||||||
return Trigger.fromJson(value);
|
return Trigger.fromJson(value);
|
||||||
case 'TriggerType':
|
case 'TriggerType':
|
||||||
@ -270,8 +274,6 @@ class ApiClient {
|
|||||||
case 'ViewBy':
|
case 'ViewBy':
|
||||||
return ViewByTypeTransformer().decode(value);
|
return ViewByTypeTransformer().decode(value);
|
||||||
|
|
||||||
case 'Widget':
|
|
||||||
return WidgetAPI.fromJson(value);
|
|
||||||
default:
|
default:
|
||||||
Match match;
|
Match match;
|
||||||
if (value is List && (match = _regList.firstMatch(targetType)) != null) {
|
if (value is List && (match = _regList.firstMatch(targetType)) != null) {
|
||||||
|
|||||||
@ -24,7 +24,7 @@ class Action {
|
|||||||
|
|
||||||
String deviceId;
|
String deviceId;
|
||||||
|
|
||||||
List<StateAPI> states;
|
List<AutomationState> states;
|
||||||
|
|
||||||
String rawRequest;
|
String rawRequest;
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ class Action {
|
|||||||
: Action(
|
: Action(
|
||||||
groupId: json[r'groupId'],
|
groupId: json[r'groupId'],
|
||||||
deviceId: json[r'deviceId'],
|
deviceId: json[r'deviceId'],
|
||||||
states: StateAPI.listFromJson(json[r'states']),
|
states: AutomationState.listFromJson(json[r'states']),
|
||||||
rawRequest: json[r'rawRequest'],
|
rawRequest: json[r'rawRequest'],
|
||||||
providerId: json[r'providerId'],
|
providerId: json[r'providerId'],
|
||||||
type: ActionType.fromJson(json[r'type']),
|
type: ActionType.fromJson(json[r'type']),
|
||||||
|
|||||||
@ -15,6 +15,7 @@ class Automation {
|
|||||||
this.id,
|
this.id,
|
||||||
this.userId,
|
this.userId,
|
||||||
this.name,
|
this.name,
|
||||||
|
this.active,
|
||||||
this.createdDate,
|
this.createdDate,
|
||||||
this.updatedDate,
|
this.updatedDate,
|
||||||
this.triggers,
|
this.triggers,
|
||||||
@ -29,6 +30,8 @@ class Automation {
|
|||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
|
bool active;
|
||||||
|
|
||||||
DateTime createdDate;
|
DateTime createdDate;
|
||||||
|
|
||||||
DateTime updatedDate;
|
DateTime updatedDate;
|
||||||
@ -46,6 +49,7 @@ class Automation {
|
|||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.userId == userId &&
|
other.userId == userId &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
|
other.active == active &&
|
||||||
other.createdDate == createdDate &&
|
other.createdDate == createdDate &&
|
||||||
other.updatedDate == updatedDate &&
|
other.updatedDate == updatedDate &&
|
||||||
other.triggers == triggers &&
|
other.triggers == triggers &&
|
||||||
@ -58,6 +62,7 @@ class Automation {
|
|||||||
(id == null ? 0 : id.hashCode) +
|
(id == null ? 0 : id.hashCode) +
|
||||||
(userId == null ? 0 : userId.hashCode) +
|
(userId == null ? 0 : userId.hashCode) +
|
||||||
(name == null ? 0 : name.hashCode) +
|
(name == null ? 0 : name.hashCode) +
|
||||||
|
(active == null ? 0 : active.hashCode) +
|
||||||
(createdDate == null ? 0 : createdDate.hashCode) +
|
(createdDate == null ? 0 : createdDate.hashCode) +
|
||||||
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
||||||
(triggers == null ? 0 : triggers.hashCode) +
|
(triggers == null ? 0 : triggers.hashCode) +
|
||||||
@ -66,7 +71,7 @@ class Automation {
|
|||||||
(devicesIds == null ? 0 : devicesIds.hashCode);
|
(devicesIds == null ? 0 : devicesIds.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'Automation[id=$id, userId=$userId, name=$name, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, devicesIds=$devicesIds]';
|
String toString() => 'Automation[id=$id, userId=$userId, name=$name, active=$active, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, devicesIds=$devicesIds]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -79,6 +84,9 @@ class Automation {
|
|||||||
if (name != null) {
|
if (name != null) {
|
||||||
json[r'name'] = name;
|
json[r'name'] = name;
|
||||||
}
|
}
|
||||||
|
if (active != null) {
|
||||||
|
json[r'active'] = active;
|
||||||
|
}
|
||||||
if (createdDate != null) {
|
if (createdDate != null) {
|
||||||
json[r'createdDate'] = createdDate.toUtc().toIso8601String();
|
json[r'createdDate'] = createdDate.toUtc().toIso8601String();
|
||||||
}
|
}
|
||||||
@ -108,6 +116,7 @@ class Automation {
|
|||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
userId: json[r'userId'],
|
userId: json[r'userId'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
|
active: json[r'active'],
|
||||||
createdDate: json[r'createdDate'] == null
|
createdDate: json[r'createdDate'] == null
|
||||||
? null
|
? null
|
||||||
: DateTime.parse(json[r'createdDate']),
|
: DateTime.parse(json[r'createdDate']),
|
||||||
|
|||||||
@ -14,6 +14,7 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
AutomationCreateOrUpdateDetailDTO({
|
AutomationCreateOrUpdateDetailDTO({
|
||||||
this.id,
|
this.id,
|
||||||
this.name,
|
this.name,
|
||||||
|
this.active,
|
||||||
this.userId,
|
this.userId,
|
||||||
this.createdDate,
|
this.createdDate,
|
||||||
this.updatedDate,
|
this.updatedDate,
|
||||||
@ -27,6 +28,8 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
|
bool active;
|
||||||
|
|
||||||
String userId;
|
String userId;
|
||||||
|
|
||||||
DateTime createdDate;
|
DateTime createdDate;
|
||||||
@ -45,6 +48,7 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
bool operator ==(Object other) => identical(this, other) || other is AutomationCreateOrUpdateDetailDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is AutomationCreateOrUpdateDetailDTO &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
|
other.active == active &&
|
||||||
other.userId == userId &&
|
other.userId == userId &&
|
||||||
other.createdDate == createdDate &&
|
other.createdDate == createdDate &&
|
||||||
other.updatedDate == updatedDate &&
|
other.updatedDate == updatedDate &&
|
||||||
@ -57,6 +61,7 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(id == null ? 0 : id.hashCode) +
|
(id == null ? 0 : id.hashCode) +
|
||||||
(name == null ? 0 : name.hashCode) +
|
(name == null ? 0 : name.hashCode) +
|
||||||
|
(active == null ? 0 : active.hashCode) +
|
||||||
(userId == null ? 0 : userId.hashCode) +
|
(userId == null ? 0 : userId.hashCode) +
|
||||||
(createdDate == null ? 0 : createdDate.hashCode) +
|
(createdDate == null ? 0 : createdDate.hashCode) +
|
||||||
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
||||||
@ -66,7 +71,7 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
(deviceIds == null ? 0 : deviceIds.hashCode);
|
(deviceIds == null ? 0 : deviceIds.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AutomationCreateOrUpdateDetailDTO[id=$id, name=$name, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, deviceIds=$deviceIds]';
|
String toString() => 'AutomationCreateOrUpdateDetailDTO[id=$id, name=$name, active=$active, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, deviceIds=$deviceIds]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -76,6 +81,9 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
if (name != null) {
|
if (name != null) {
|
||||||
json[r'name'] = name;
|
json[r'name'] = name;
|
||||||
}
|
}
|
||||||
|
if (active != null) {
|
||||||
|
json[r'active'] = active;
|
||||||
|
}
|
||||||
if (userId != null) {
|
if (userId != null) {
|
||||||
json[r'userId'] = userId;
|
json[r'userId'] = userId;
|
||||||
}
|
}
|
||||||
@ -107,6 +115,7 @@ class AutomationCreateOrUpdateDetailDTO {
|
|||||||
: AutomationCreateOrUpdateDetailDTO(
|
: AutomationCreateOrUpdateDetailDTO(
|
||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
|
active: json[r'active'],
|
||||||
userId: json[r'userId'],
|
userId: json[r'userId'],
|
||||||
createdDate: json[r'createdDate'] == null
|
createdDate: json[r'createdDate'] == null
|
||||||
? null
|
? null
|
||||||
|
|||||||
@ -14,6 +14,7 @@ class AutomationDetailDTO {
|
|||||||
AutomationDetailDTO({
|
AutomationDetailDTO({
|
||||||
this.id,
|
this.id,
|
||||||
this.name,
|
this.name,
|
||||||
|
this.active,
|
||||||
this.userId,
|
this.userId,
|
||||||
this.createdDate,
|
this.createdDate,
|
||||||
this.updatedDate,
|
this.updatedDate,
|
||||||
@ -27,6 +28,8 @@ class AutomationDetailDTO {
|
|||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
|
bool active;
|
||||||
|
|
||||||
String userId;
|
String userId;
|
||||||
|
|
||||||
DateTime createdDate;
|
DateTime createdDate;
|
||||||
@ -45,6 +48,7 @@ class AutomationDetailDTO {
|
|||||||
bool operator ==(Object other) => identical(this, other) || other is AutomationDetailDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is AutomationDetailDTO &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
|
other.active == active &&
|
||||||
other.userId == userId &&
|
other.userId == userId &&
|
||||||
other.createdDate == createdDate &&
|
other.createdDate == createdDate &&
|
||||||
other.updatedDate == updatedDate &&
|
other.updatedDate == updatedDate &&
|
||||||
@ -57,6 +61,7 @@ class AutomationDetailDTO {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(id == null ? 0 : id.hashCode) +
|
(id == null ? 0 : id.hashCode) +
|
||||||
(name == null ? 0 : name.hashCode) +
|
(name == null ? 0 : name.hashCode) +
|
||||||
|
(active == null ? 0 : active.hashCode) +
|
||||||
(userId == null ? 0 : userId.hashCode) +
|
(userId == null ? 0 : userId.hashCode) +
|
||||||
(createdDate == null ? 0 : createdDate.hashCode) +
|
(createdDate == null ? 0 : createdDate.hashCode) +
|
||||||
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
(updatedDate == null ? 0 : updatedDate.hashCode) +
|
||||||
@ -66,7 +71,7 @@ class AutomationDetailDTO {
|
|||||||
(devicesIds == null ? 0 : devicesIds.hashCode);
|
(devicesIds == null ? 0 : devicesIds.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AutomationDetailDTO[id=$id, name=$name, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, devicesIds=$devicesIds]';
|
String toString() => 'AutomationDetailDTO[id=$id, name=$name, active=$active, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate, triggers=$triggers, conditions=$conditions, actions=$actions, devicesIds=$devicesIds]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -76,6 +81,9 @@ class AutomationDetailDTO {
|
|||||||
if (name != null) {
|
if (name != null) {
|
||||||
json[r'name'] = name;
|
json[r'name'] = name;
|
||||||
}
|
}
|
||||||
|
if (active != null) {
|
||||||
|
json[r'active'] = active;
|
||||||
|
}
|
||||||
if (userId != null) {
|
if (userId != null) {
|
||||||
json[r'userId'] = userId;
|
json[r'userId'] = userId;
|
||||||
}
|
}
|
||||||
@ -107,6 +115,7 @@ class AutomationDetailDTO {
|
|||||||
: AutomationDetailDTO(
|
: AutomationDetailDTO(
|
||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
|
active: json[r'active'],
|
||||||
userId: json[r'userId'],
|
userId: json[r'userId'],
|
||||||
createdDate: json[r'createdDate'] == null
|
createdDate: json[r'createdDate'] == null
|
||||||
? null
|
? null
|
||||||
|
|||||||
@ -14,6 +14,7 @@ class AutomationDTO {
|
|||||||
AutomationDTO({
|
AutomationDTO({
|
||||||
this.id,
|
this.id,
|
||||||
this.name,
|
this.name,
|
||||||
|
this.active,
|
||||||
this.userId,
|
this.userId,
|
||||||
this.createdDate,
|
this.createdDate,
|
||||||
this.updatedDate,
|
this.updatedDate,
|
||||||
@ -23,6 +24,8 @@ class AutomationDTO {
|
|||||||
|
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
|
bool active;
|
||||||
|
|
||||||
String userId;
|
String userId;
|
||||||
|
|
||||||
DateTime createdDate;
|
DateTime createdDate;
|
||||||
@ -33,6 +36,7 @@ class AutomationDTO {
|
|||||||
bool operator ==(Object other) => identical(this, other) || other is AutomationDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is AutomationDTO &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
|
other.active == active &&
|
||||||
other.userId == userId &&
|
other.userId == userId &&
|
||||||
other.createdDate == createdDate &&
|
other.createdDate == createdDate &&
|
||||||
other.updatedDate == updatedDate;
|
other.updatedDate == updatedDate;
|
||||||
@ -41,12 +45,13 @@ class AutomationDTO {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(id == null ? 0 : id.hashCode) +
|
(id == null ? 0 : id.hashCode) +
|
||||||
(name == null ? 0 : name.hashCode) +
|
(name == null ? 0 : name.hashCode) +
|
||||||
|
(active == null ? 0 : active.hashCode) +
|
||||||
(userId == null ? 0 : userId.hashCode) +
|
(userId == null ? 0 : userId.hashCode) +
|
||||||
(createdDate == null ? 0 : createdDate.hashCode) +
|
(createdDate == null ? 0 : createdDate.hashCode) +
|
||||||
(updatedDate == null ? 0 : updatedDate.hashCode);
|
(updatedDate == null ? 0 : updatedDate.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AutomationDTO[id=$id, name=$name, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate]';
|
String toString() => 'AutomationDTO[id=$id, name=$name, active=$active, userId=$userId, createdDate=$createdDate, updatedDate=$updatedDate]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -56,6 +61,9 @@ class AutomationDTO {
|
|||||||
if (name != null) {
|
if (name != null) {
|
||||||
json[r'name'] = name;
|
json[r'name'] = name;
|
||||||
}
|
}
|
||||||
|
if (active != null) {
|
||||||
|
json[r'active'] = active;
|
||||||
|
}
|
||||||
if (userId != null) {
|
if (userId != null) {
|
||||||
json[r'userId'] = userId;
|
json[r'userId'] = userId;
|
||||||
}
|
}
|
||||||
@ -75,6 +83,7 @@ class AutomationDTO {
|
|||||||
: AutomationDTO(
|
: AutomationDTO(
|
||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
|
active: json[r'active'],
|
||||||
userId: json[r'userId'],
|
userId: json[r'userId'],
|
||||||
createdDate: json[r'createdDate'] == null
|
createdDate: json[r'createdDate'] == null
|
||||||
? null
|
? null
|
||||||
|
|||||||
80
mycore_api/lib/model/automation_state.dart
Normal file
80
mycore_api/lib/model/automation_state.dart
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
part of openapi.api;
|
||||||
|
|
||||||
|
class AutomationState {
|
||||||
|
/// Returns a new [AutomationState] instance.
|
||||||
|
AutomationState({
|
||||||
|
this.name,
|
||||||
|
this.value,
|
||||||
|
});
|
||||||
|
|
||||||
|
String name;
|
||||||
|
|
||||||
|
String value;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is AutomationState &&
|
||||||
|
other.name == name &&
|
||||||
|
other.value == value;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
(name == null ? 0 : name.hashCode) +
|
||||||
|
(value == null ? 0 : value.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'AutomationState[name=$name, value=$value]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (name != null) {
|
||||||
|
json[r'name'] = name;
|
||||||
|
}
|
||||||
|
if (value != null) {
|
||||||
|
json[r'value'] = value;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [AutomationState] instance and imports its values from
|
||||||
|
/// [json] if it's non-null, null if [json] is null.
|
||||||
|
static AutomationState fromJson(Map<String, dynamic> json) => json == null
|
||||||
|
? null
|
||||||
|
: AutomationState(
|
||||||
|
name: json[r'name'],
|
||||||
|
value: json[r'value'],
|
||||||
|
);
|
||||||
|
|
||||||
|
static List<AutomationState> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
|
json == null || json.isEmpty
|
||||||
|
? true == emptyIsNull ? null : <AutomationState>[]
|
||||||
|
: json.map((v) => AutomationState.fromJson(v)).toList(growable: true == growable);
|
||||||
|
|
||||||
|
static Map<String, AutomationState> mapFromJson(Map<String, dynamic> json) {
|
||||||
|
final map = <String, AutomationState>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) => map[key] = AutomationState.fromJson(v));
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of AutomationState-objects as value to a dart map
|
||||||
|
static Map<String, List<AutomationState>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
||||||
|
final map = <String, List<AutomationState>>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) {
|
||||||
|
map[key] = AutomationState.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ class Condition {
|
|||||||
|
|
||||||
String deviceId;
|
String deviceId;
|
||||||
|
|
||||||
StateAPI state;
|
AutomationState state;
|
||||||
|
|
||||||
String startTime;
|
String startTime;
|
||||||
|
|
||||||
@ -82,6 +82,7 @@ class Condition {
|
|||||||
? null
|
? null
|
||||||
: Condition(
|
: Condition(
|
||||||
deviceId: json[r'deviceId'],
|
deviceId: json[r'deviceId'],
|
||||||
|
state: AutomationState.fromJson(json[r'state']),
|
||||||
startTime: json[r'startTime'],
|
startTime: json[r'startTime'],
|
||||||
endTime: json[r'endTime'],
|
endTime: json[r'endTime'],
|
||||||
type: ConditionType.fromJson(json[r'type']),
|
type: ConditionType.fromJson(json[r'type']),
|
||||||
|
|||||||
@ -88,7 +88,7 @@ class Device {
|
|||||||
|
|
||||||
List<String> groupIds;
|
List<String> groupIds;
|
||||||
|
|
||||||
Map<String, Object> properties;
|
String properties;
|
||||||
|
|
||||||
List<String> supportedOperations;
|
List<String> supportedOperations;
|
||||||
|
|
||||||
@ -273,6 +273,7 @@ class Device {
|
|||||||
groupIds: json[r'groupIds'] == null
|
groupIds: json[r'groupIds'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'groupIds'] as List).cast<String>(),
|
: (json[r'groupIds'] as List).cast<String>(),
|
||||||
|
properties: json[r'properties'],
|
||||||
supportedOperations: json[r'supportedOperations'] == null
|
supportedOperations: json[r'supportedOperations'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'supportedOperations'] as List).cast<String>(),
|
: (json[r'supportedOperations'] as List).cast<String>(),
|
||||||
|
|||||||
@ -23,6 +23,7 @@ class DeviceDetailDTO {
|
|||||||
this.locationId,
|
this.locationId,
|
||||||
this.providerId,
|
this.providerId,
|
||||||
this.providerName,
|
this.providerName,
|
||||||
|
this.location,
|
||||||
this.lastStateDate,
|
this.lastStateDate,
|
||||||
this.battery,
|
this.battery,
|
||||||
this.batteryStatus,
|
this.batteryStatus,
|
||||||
@ -63,6 +64,8 @@ class DeviceDetailDTO {
|
|||||||
|
|
||||||
String providerName;
|
String providerName;
|
||||||
|
|
||||||
|
PlaceDTO location;
|
||||||
|
|
||||||
DateTime lastStateDate;
|
DateTime lastStateDate;
|
||||||
|
|
||||||
bool battery;
|
bool battery;
|
||||||
@ -91,7 +94,7 @@ class DeviceDetailDTO {
|
|||||||
|
|
||||||
List<String> groupIds;
|
List<String> groupIds;
|
||||||
|
|
||||||
Map<String, Object> properties;
|
String properties;
|
||||||
|
|
||||||
List<String> supportedOperations;
|
List<String> supportedOperations;
|
||||||
|
|
||||||
@ -108,6 +111,7 @@ class DeviceDetailDTO {
|
|||||||
other.locationId == locationId &&
|
other.locationId == locationId &&
|
||||||
other.providerId == providerId &&
|
other.providerId == providerId &&
|
||||||
other.providerName == providerName &&
|
other.providerName == providerName &&
|
||||||
|
other.location == location &&
|
||||||
other.lastStateDate == lastStateDate &&
|
other.lastStateDate == lastStateDate &&
|
||||||
other.battery == battery &&
|
other.battery == battery &&
|
||||||
other.batteryStatus == batteryStatus &&
|
other.batteryStatus == batteryStatus &&
|
||||||
@ -138,6 +142,7 @@ class DeviceDetailDTO {
|
|||||||
(locationId == null ? 0 : locationId.hashCode) +
|
(locationId == null ? 0 : locationId.hashCode) +
|
||||||
(providerId == null ? 0 : providerId.hashCode) +
|
(providerId == null ? 0 : providerId.hashCode) +
|
||||||
(providerName == null ? 0 : providerName.hashCode) +
|
(providerName == null ? 0 : providerName.hashCode) +
|
||||||
|
(location == null ? 0 : location.hashCode) +
|
||||||
(lastStateDate == null ? 0 : lastStateDate.hashCode) +
|
(lastStateDate == null ? 0 : lastStateDate.hashCode) +
|
||||||
(battery == null ? 0 : battery.hashCode) +
|
(battery == null ? 0 : battery.hashCode) +
|
||||||
(batteryStatus == null ? 0 : batteryStatus.hashCode) +
|
(batteryStatus == null ? 0 : batteryStatus.hashCode) +
|
||||||
@ -156,7 +161,7 @@ class DeviceDetailDTO {
|
|||||||
(supportedOperations == null ? 0 : supportedOperations.hashCode);
|
(supportedOperations == null ? 0 : supportedOperations.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'DeviceDetailDTO[id=$id, userId=$userId, description=$description, name=$name, model=$model, type=$type, status=$status, connectionStatus=$connectionStatus, locationId=$locationId, providerId=$providerId, providerName=$providerName, lastStateDate=$lastStateDate, battery=$battery, batteryStatus=$batteryStatus, firmwareVersion=$firmwareVersion, hardwareVersion=$hardwareVersion, port=$port, meansOfCommunications=$meansOfCommunications, createdDate=$createdDate, updatedDate=$updatedDate, lastState=$lastState, ipAddress=$ipAddress, serviceIdentification=$serviceIdentification, manufacturerName=$manufacturerName, groupIds=$groupIds, properties=$properties, supportedOperations=$supportedOperations]';
|
String toString() => 'DeviceDetailDTO[id=$id, userId=$userId, description=$description, name=$name, model=$model, type=$type, status=$status, connectionStatus=$connectionStatus, locationId=$locationId, providerId=$providerId, providerName=$providerName, location=$location, lastStateDate=$lastStateDate, battery=$battery, batteryStatus=$batteryStatus, firmwareVersion=$firmwareVersion, hardwareVersion=$hardwareVersion, port=$port, meansOfCommunications=$meansOfCommunications, createdDate=$createdDate, updatedDate=$updatedDate, lastState=$lastState, ipAddress=$ipAddress, serviceIdentification=$serviceIdentification, manufacturerName=$manufacturerName, groupIds=$groupIds, properties=$properties, supportedOperations=$supportedOperations]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -193,6 +198,9 @@ class DeviceDetailDTO {
|
|||||||
if (providerName != null) {
|
if (providerName != null) {
|
||||||
json[r'providerName'] = providerName;
|
json[r'providerName'] = providerName;
|
||||||
}
|
}
|
||||||
|
if (location != null) {
|
||||||
|
json[r'location'] = location;
|
||||||
|
}
|
||||||
if (lastStateDate != null) {
|
if (lastStateDate != null) {
|
||||||
json[r'lastStateDate'] = lastStateDate.toUtc().toIso8601String();
|
json[r'lastStateDate'] = lastStateDate.toUtc().toIso8601String();
|
||||||
}
|
}
|
||||||
@ -260,6 +268,7 @@ class DeviceDetailDTO {
|
|||||||
locationId: json[r'locationId'],
|
locationId: json[r'locationId'],
|
||||||
providerId: json[r'providerId'],
|
providerId: json[r'providerId'],
|
||||||
providerName: json[r'providerName'],
|
providerName: json[r'providerName'],
|
||||||
|
location: PlaceDTO.fromJson(json[r'location']),
|
||||||
lastStateDate: json[r'lastStateDate'] == null
|
lastStateDate: json[r'lastStateDate'] == null
|
||||||
? null
|
? null
|
||||||
: DateTime.parse(json[r'lastStateDate']),
|
: DateTime.parse(json[r'lastStateDate']),
|
||||||
@ -282,6 +291,7 @@ class DeviceDetailDTO {
|
|||||||
groupIds: json[r'groupIds'] == null
|
groupIds: json[r'groupIds'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'groupIds'] as List).cast<String>(),
|
: (json[r'groupIds'] as List).cast<String>(),
|
||||||
|
properties: json[r'properties'],
|
||||||
supportedOperations: json[r'supportedOperations'] == null
|
supportedOperations: json[r'supportedOperations'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'supportedOperations'] as List).cast<String>(),
|
: (json[r'supportedOperations'] as List).cast<String>(),
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class DeviceDetailDTOAllOf {
|
|||||||
|
|
||||||
List<String> groupIds;
|
List<String> groupIds;
|
||||||
|
|
||||||
Map<String, Object> properties;
|
String properties;
|
||||||
|
|
||||||
List<String> supportedOperations;
|
List<String> supportedOperations;
|
||||||
|
|
||||||
@ -154,6 +154,7 @@ class DeviceDetailDTOAllOf {
|
|||||||
groupIds: json[r'groupIds'] == null
|
groupIds: json[r'groupIds'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'groupIds'] as List).cast<String>(),
|
: (json[r'groupIds'] as List).cast<String>(),
|
||||||
|
properties: json[r'properties'],
|
||||||
supportedOperations: json[r'supportedOperations'] == null
|
supportedOperations: json[r'supportedOperations'] == null
|
||||||
? null
|
? null
|
||||||
: (json[r'supportedOperations'] as List).cast<String>(),
|
: (json[r'supportedOperations'] as List).cast<String>(),
|
||||||
|
|||||||
@ -23,6 +23,7 @@ class DeviceSummaryDTO {
|
|||||||
this.locationId,
|
this.locationId,
|
||||||
this.providerId,
|
this.providerId,
|
||||||
this.providerName,
|
this.providerName,
|
||||||
|
this.location,
|
||||||
this.lastStateDate,
|
this.lastStateDate,
|
||||||
this.battery,
|
this.battery,
|
||||||
this.batteryStatus,
|
this.batteryStatus,
|
||||||
@ -50,6 +51,8 @@ class DeviceSummaryDTO {
|
|||||||
|
|
||||||
String providerName;
|
String providerName;
|
||||||
|
|
||||||
|
PlaceDTO location;
|
||||||
|
|
||||||
DateTime lastStateDate;
|
DateTime lastStateDate;
|
||||||
|
|
||||||
bool battery;
|
bool battery;
|
||||||
@ -69,6 +72,7 @@ class DeviceSummaryDTO {
|
|||||||
other.locationId == locationId &&
|
other.locationId == locationId &&
|
||||||
other.providerId == providerId &&
|
other.providerId == providerId &&
|
||||||
other.providerName == providerName &&
|
other.providerName == providerName &&
|
||||||
|
other.location == location &&
|
||||||
other.lastStateDate == lastStateDate &&
|
other.lastStateDate == lastStateDate &&
|
||||||
other.battery == battery &&
|
other.battery == battery &&
|
||||||
other.batteryStatus == batteryStatus;
|
other.batteryStatus == batteryStatus;
|
||||||
@ -86,12 +90,13 @@ class DeviceSummaryDTO {
|
|||||||
(locationId == null ? 0 : locationId.hashCode) +
|
(locationId == null ? 0 : locationId.hashCode) +
|
||||||
(providerId == null ? 0 : providerId.hashCode) +
|
(providerId == null ? 0 : providerId.hashCode) +
|
||||||
(providerName == null ? 0 : providerName.hashCode) +
|
(providerName == null ? 0 : providerName.hashCode) +
|
||||||
|
(location == null ? 0 : location.hashCode) +
|
||||||
(lastStateDate == null ? 0 : lastStateDate.hashCode) +
|
(lastStateDate == null ? 0 : lastStateDate.hashCode) +
|
||||||
(battery == null ? 0 : battery.hashCode) +
|
(battery == null ? 0 : battery.hashCode) +
|
||||||
(batteryStatus == null ? 0 : batteryStatus.hashCode);
|
(batteryStatus == null ? 0 : batteryStatus.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'DeviceSummaryDTO[id=$id, userId=$userId, description=$description, name=$name, model=$model, type=$type, status=$status, connectionStatus=$connectionStatus, locationId=$locationId, providerId=$providerId, providerName=$providerName, lastStateDate=$lastStateDate, battery=$battery, batteryStatus=$batteryStatus]';
|
String toString() => 'DeviceSummaryDTO[id=$id, userId=$userId, description=$description, name=$name, model=$model, type=$type, status=$status, connectionStatus=$connectionStatus, locationId=$locationId, providerId=$providerId, providerName=$providerName, location=$location, lastStateDate=$lastStateDate, battery=$battery, batteryStatus=$batteryStatus]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -128,6 +133,9 @@ class DeviceSummaryDTO {
|
|||||||
if (providerName != null) {
|
if (providerName != null) {
|
||||||
json[r'providerName'] = providerName;
|
json[r'providerName'] = providerName;
|
||||||
}
|
}
|
||||||
|
if (location != null) {
|
||||||
|
json[r'location'] = location;
|
||||||
|
}
|
||||||
if (lastStateDate != null) {
|
if (lastStateDate != null) {
|
||||||
json[r'lastStateDate'] = lastStateDate.toUtc().toIso8601String();
|
json[r'lastStateDate'] = lastStateDate.toUtc().toIso8601String();
|
||||||
}
|
}
|
||||||
@ -156,6 +164,7 @@ class DeviceSummaryDTO {
|
|||||||
locationId: json[r'locationId'],
|
locationId: json[r'locationId'],
|
||||||
providerId: json[r'providerId'],
|
providerId: json[r'providerId'],
|
||||||
providerName: json[r'providerName'],
|
providerName: json[r'providerName'],
|
||||||
|
location: PlaceDTO.fromJson(json[r'location']),
|
||||||
lastStateDate: json[r'lastStateDate'] == null
|
lastStateDate: json[r'lastStateDate'] == null
|
||||||
? null
|
? null
|
||||||
: DateTime.parse(json[r'lastStateDate']),
|
: DateTime.parse(json[r'lastStateDate']),
|
||||||
|
|||||||
@ -15,6 +15,7 @@ class OddNice {
|
|||||||
this.teams,
|
this.teams,
|
||||||
this.commenceTime,
|
this.commenceTime,
|
||||||
this.homeTeam,
|
this.homeTeam,
|
||||||
|
this.odds,
|
||||||
});
|
});
|
||||||
|
|
||||||
List<String> teams;
|
List<String> teams;
|
||||||
@ -23,20 +24,24 @@ class OddNice {
|
|||||||
|
|
||||||
String homeTeam;
|
String homeTeam;
|
||||||
|
|
||||||
|
OddObject odds;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is OddNice &&
|
bool operator ==(Object other) => identical(this, other) || other is OddNice &&
|
||||||
other.teams == teams &&
|
other.teams == teams &&
|
||||||
other.commenceTime == commenceTime &&
|
other.commenceTime == commenceTime &&
|
||||||
other.homeTeam == homeTeam;
|
other.homeTeam == homeTeam &&
|
||||||
|
other.odds == odds;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(teams == null ? 0 : teams.hashCode) +
|
(teams == null ? 0 : teams.hashCode) +
|
||||||
(commenceTime == null ? 0 : commenceTime.hashCode) +
|
(commenceTime == null ? 0 : commenceTime.hashCode) +
|
||||||
(homeTeam == null ? 0 : homeTeam.hashCode);
|
(homeTeam == null ? 0 : homeTeam.hashCode) +
|
||||||
|
(odds == null ? 0 : odds.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'OddNice[teams=$teams, commenceTime=$commenceTime, homeTeam=$homeTeam]';
|
String toString() => 'OddNice[teams=$teams, commenceTime=$commenceTime, homeTeam=$homeTeam, odds=$odds]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -49,6 +54,9 @@ class OddNice {
|
|||||||
if (homeTeam != null) {
|
if (homeTeam != null) {
|
||||||
json[r'home_team'] = homeTeam;
|
json[r'home_team'] = homeTeam;
|
||||||
}
|
}
|
||||||
|
if (odds != null) {
|
||||||
|
json[r'odds'] = odds;
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,6 +70,7 @@ class OddNice {
|
|||||||
: (json[r'teams'] as List).cast<String>(),
|
: (json[r'teams'] as List).cast<String>(),
|
||||||
commenceTime: json[r'commence_time'],
|
commenceTime: json[r'commence_time'],
|
||||||
homeTeam: json[r'home_team'],
|
homeTeam: json[r'home_team'],
|
||||||
|
odds: OddObject.fromJson(json[r'odds']),
|
||||||
);
|
);
|
||||||
|
|
||||||
static List<OddNice> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
static List<OddNice> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
part of openapi.api;
|
part of openapi.api;
|
||||||
|
|
||||||
class OddH2H {
|
class OddObject {
|
||||||
/// Returns a new [OddH2H] instance.
|
/// Returns a new [OddObject] instance.
|
||||||
OddH2H({
|
OddObject({
|
||||||
this.homeOdd,
|
this.homeOdd,
|
||||||
this.drawOdd,
|
this.drawOdd,
|
||||||
this.visitOdd,
|
this.visitOdd,
|
||||||
@ -24,7 +24,7 @@ class OddH2H {
|
|||||||
double visitOdd;
|
double visitOdd;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is OddH2H &&
|
bool operator ==(Object other) => identical(this, other) || other is OddObject &&
|
||||||
other.homeOdd == homeOdd &&
|
other.homeOdd == homeOdd &&
|
||||||
other.drawOdd == drawOdd &&
|
other.drawOdd == drawOdd &&
|
||||||
other.visitOdd == visitOdd;
|
other.visitOdd == visitOdd;
|
||||||
@ -36,7 +36,7 @@ class OddH2H {
|
|||||||
(visitOdd == null ? 0 : visitOdd.hashCode);
|
(visitOdd == null ? 0 : visitOdd.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'OddH2H[homeOdd=$homeOdd, drawOdd=$drawOdd, visitOdd=$visitOdd]';
|
String toString() => 'OddObject[homeOdd=$homeOdd, drawOdd=$drawOdd, visitOdd=$visitOdd]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -52,35 +52,35 @@ class OddH2H {
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a new [OddH2H] instance and imports its values from
|
/// Returns a new [OddObject] instance and imports its values from
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
/// [json] if it's non-null, null if [json] is null.
|
||||||
static OddH2H fromJson(Map<String, dynamic> json) => json == null
|
static OddObject fromJson(Map<String, dynamic> json) => json == null
|
||||||
? null
|
? null
|
||||||
: OddH2H(
|
: OddObject(
|
||||||
homeOdd: json[r'homeOdd'],
|
homeOdd: json[r'homeOdd'],
|
||||||
drawOdd: json[r'drawOdd'],
|
drawOdd: json[r'drawOdd'],
|
||||||
visitOdd: json[r'visitOdd'],
|
visitOdd: json[r'visitOdd'],
|
||||||
);
|
);
|
||||||
|
|
||||||
static List<OddH2H> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
static List<OddObject> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
json == null || json.isEmpty
|
json == null || json.isEmpty
|
||||||
? true == emptyIsNull ? null : <OddH2H>[]
|
? true == emptyIsNull ? null : <OddObject>[]
|
||||||
: json.map((v) => OddH2H.fromJson(v)).toList(growable: true == growable);
|
: json.map((v) => OddObject.fromJson(v)).toList(growable: true == growable);
|
||||||
|
|
||||||
static Map<String, OddH2H> mapFromJson(Map<String, dynamic> json) {
|
static Map<String, OddObject> mapFromJson(Map<String, dynamic> json) {
|
||||||
final map = <String, OddH2H>{};
|
final map = <String, OddObject>{};
|
||||||
if (json != null && json.isNotEmpty) {
|
if (json != null && json.isNotEmpty) {
|
||||||
json.forEach((String key, dynamic v) => map[key] = OddH2H.fromJson(v));
|
json.forEach((String key, dynamic v) => map[key] = OddObject.fromJson(v));
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
// maps a json object with a list of OddH2H-objects as value to a dart map
|
// maps a json object with a list of OddObject-objects as value to a dart map
|
||||||
static Map<String, List<OddH2H>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
static Map<String, List<OddObject>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
||||||
final map = <String, List<OddH2H>>{};
|
final map = <String, List<OddObject>>{};
|
||||||
if (json != null && json.isNotEmpty) {
|
if (json != null && json.isNotEmpty) {
|
||||||
json.forEach((String key, dynamic v) {
|
json.forEach((String key, dynamic v) {
|
||||||
map[key] = OddH2H.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
map[key] = OddObject.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
80
mycore_api/lib/model/place_dto.dart
Normal file
80
mycore_api/lib/model/place_dto.dart
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
part of openapi.api;
|
||||||
|
|
||||||
|
class PlaceDTO {
|
||||||
|
/// Returns a new [PlaceDTO] instance.
|
||||||
|
PlaceDTO({
|
||||||
|
this.id,
|
||||||
|
this.name,
|
||||||
|
});
|
||||||
|
|
||||||
|
String id;
|
||||||
|
|
||||||
|
String name;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is PlaceDTO &&
|
||||||
|
other.id == id &&
|
||||||
|
other.name == name;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
(id == null ? 0 : id.hashCode) +
|
||||||
|
(name == null ? 0 : name.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'PlaceDTO[id=$id, name=$name]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (id != null) {
|
||||||
|
json[r'id'] = id;
|
||||||
|
}
|
||||||
|
if (name != null) {
|
||||||
|
json[r'name'] = name;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [PlaceDTO] instance and imports its values from
|
||||||
|
/// [json] if it's non-null, null if [json] is null.
|
||||||
|
static PlaceDTO fromJson(Map<String, dynamic> json) => json == null
|
||||||
|
? null
|
||||||
|
: PlaceDTO(
|
||||||
|
id: json[r'id'],
|
||||||
|
name: json[r'name'],
|
||||||
|
);
|
||||||
|
|
||||||
|
static List<PlaceDTO> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
|
json == null || json.isEmpty
|
||||||
|
? true == emptyIsNull ? null : <PlaceDTO>[]
|
||||||
|
: json.map((v) => PlaceDTO.fromJson(v)).toList(growable: true == growable);
|
||||||
|
|
||||||
|
static Map<String, PlaceDTO> mapFromJson(Map<String, dynamic> json) {
|
||||||
|
final map = <String, PlaceDTO>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) => map[key] = PlaceDTO.fromJson(v));
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of PlaceDTO-objects as value to a dart map
|
||||||
|
static Map<String, List<PlaceDTO>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
||||||
|
final map = <String, List<PlaceDTO>>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) {
|
||||||
|
map[key] = PlaceDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ class ScreenConfiguration {
|
|||||||
|
|
||||||
String type;
|
String type;
|
||||||
|
|
||||||
List<WidgetAPI> widgets;
|
List<ScreenWidget> widgets;
|
||||||
|
|
||||||
int height;
|
int height;
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ class ScreenConfiguration {
|
|||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
type: json[r'type'],
|
type: json[r'type'],
|
||||||
widgets: WidgetAPI.listFromJson(json[r'widgets']),
|
widgets: ScreenWidget.listFromJson(json[r'widgets']),
|
||||||
height: json[r'height'],
|
height: json[r'height'],
|
||||||
width: json[r'width'],
|
width: json[r'width'],
|
||||||
);
|
);
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
part of openapi.api;
|
part of openapi.api;
|
||||||
|
|
||||||
class WidgetAPI {
|
class ScreenWidget {
|
||||||
/// Returns a new [Widget] instance.
|
/// Returns a new [ScreenWidget] instance.
|
||||||
WidgetAPI({
|
ScreenWidget({
|
||||||
this.id,
|
this.id,
|
||||||
this.name,
|
this.name,
|
||||||
this.displayName,
|
this.displayName,
|
||||||
@ -54,7 +54,7 @@ class WidgetAPI {
|
|||||||
int positionY;
|
int positionY;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is WidgetAPI &&
|
bool operator ==(Object other) => identical(this, other) || other is ScreenWidget &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
other.displayName == displayName &&
|
other.displayName == displayName &&
|
||||||
@ -86,7 +86,7 @@ class WidgetAPI {
|
|||||||
(positionY == null ? 0 : positionY.hashCode);
|
(positionY == null ? 0 : positionY.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'Widget[id=$id, name=$name, displayName=$displayName, type=$type, activated=$activated, form=$form, font=$font, color=$color, size=$size, width=$width, height=$height, positionX=$positionX, positionY=$positionY]';
|
String toString() => 'ScreenWidget[id=$id, name=$name, displayName=$displayName, type=$type, activated=$activated, form=$form, font=$font, color=$color, size=$size, width=$width, height=$height, positionX=$positionX, positionY=$positionY]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -132,11 +132,11 @@ class WidgetAPI {
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a new [Widget] instance and imports its values from
|
/// Returns a new [ScreenWidget] instance and imports its values from
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
/// [json] if it's non-null, null if [json] is null.
|
||||||
static WidgetAPI fromJson(Map<String, dynamic> json) => json == null
|
static ScreenWidget fromJson(Map<String, dynamic> json) => json == null
|
||||||
? null
|
? null
|
||||||
: WidgetAPI(
|
: ScreenWidget(
|
||||||
id: json[r'id'],
|
id: json[r'id'],
|
||||||
name: json[r'name'],
|
name: json[r'name'],
|
||||||
displayName: json[r'displayName'],
|
displayName: json[r'displayName'],
|
||||||
@ -152,25 +152,25 @@ class WidgetAPI {
|
|||||||
positionY: json[r'positionY'],
|
positionY: json[r'positionY'],
|
||||||
);
|
);
|
||||||
|
|
||||||
static List<WidgetAPI> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
static List<ScreenWidget> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
json == null || json.isEmpty
|
json == null || json.isEmpty
|
||||||
? true == emptyIsNull ? null : <WidgetAPI>[]
|
? true == emptyIsNull ? null : <ScreenWidget>[]
|
||||||
: json.map((v) => WidgetAPI.fromJson(v)).toList(growable: true == growable);
|
: json.map((v) => ScreenWidget.fromJson(v)).toList(growable: true == growable);
|
||||||
|
|
||||||
static Map<String, WidgetAPI> mapFromJson(Map<String, dynamic> json) {
|
static Map<String, ScreenWidget> mapFromJson(Map<String, dynamic> json) {
|
||||||
final map = <String, WidgetAPI>{};
|
final map = <String, ScreenWidget>{};
|
||||||
if (json != null && json.isNotEmpty) {
|
if (json != null && json.isNotEmpty) {
|
||||||
json.forEach((String key, dynamic v) => map[key] = WidgetAPI.fromJson(v));
|
json.forEach((String key, dynamic v) => map[key] = ScreenWidget.fromJson(v));
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
// maps a json object with a list of Widget-objects as value to a dart map
|
// maps a json object with a list of ScreenWidget-objects as value to a dart map
|
||||||
static Map<String, List<WidgetAPI>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
static Map<String, List<ScreenWidget>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
||||||
final map = <String, List<WidgetAPI>>{};
|
final map = <String, List<ScreenWidget>>{};
|
||||||
if (json != null && json.isNotEmpty) {
|
if (json != null && json.isNotEmpty) {
|
||||||
json.forEach((String key, dynamic v) {
|
json.forEach((String key, dynamic v) {
|
||||||
map[key] = WidgetAPI.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
map[key] = ScreenWidget.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
@ -1,80 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class StateAPI {
|
|
||||||
/// Returns a new [State] instance.
|
|
||||||
StateAPI({
|
|
||||||
this.name,
|
|
||||||
this.value,
|
|
||||||
});
|
|
||||||
|
|
||||||
String name;
|
|
||||||
|
|
||||||
String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is StateAPI &&
|
|
||||||
other.name == name &&
|
|
||||||
other.value == value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(name == null ? 0 : name.hashCode) +
|
|
||||||
(value == null ? 0 : value.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'State[name=$name, value=$value]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (name != null) {
|
|
||||||
json[r'name'] = name;
|
|
||||||
}
|
|
||||||
if (value != null) {
|
|
||||||
json[r'value'] = value;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [State] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static StateAPI fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: StateAPI(
|
|
||||||
name: json[r'name'],
|
|
||||||
value: json[r'value'],
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<StateAPI> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <StateAPI>[]
|
|
||||||
: json.map((v) => StateAPI.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, StateAPI> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, StateAPI>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = StateAPI.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of State-objects as value to a dart map
|
|
||||||
static Map<String, List<StateAPI>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<StateAPI>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = StateAPI.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
118
mycore_api/lib/model/token_dto.dart
Normal file
118
mycore_api/lib/model/token_dto.dart
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
part of openapi.api;
|
||||||
|
|
||||||
|
class TokenDTO {
|
||||||
|
/// Returns a new [TokenDTO] instance.
|
||||||
|
TokenDTO({
|
||||||
|
this.accessToken,
|
||||||
|
this.refreshToken,
|
||||||
|
this.scope,
|
||||||
|
this.tokenType,
|
||||||
|
this.expiresIn,
|
||||||
|
this.expiration,
|
||||||
|
});
|
||||||
|
|
||||||
|
String accessToken;
|
||||||
|
|
||||||
|
String refreshToken;
|
||||||
|
|
||||||
|
String scope;
|
||||||
|
|
||||||
|
String tokenType;
|
||||||
|
|
||||||
|
int expiresIn;
|
||||||
|
|
||||||
|
DateTime expiration;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is TokenDTO &&
|
||||||
|
other.accessToken == accessToken &&
|
||||||
|
other.refreshToken == refreshToken &&
|
||||||
|
other.scope == scope &&
|
||||||
|
other.tokenType == tokenType &&
|
||||||
|
other.expiresIn == expiresIn &&
|
||||||
|
other.expiration == expiration;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
(accessToken == null ? 0 : accessToken.hashCode) +
|
||||||
|
(refreshToken == null ? 0 : refreshToken.hashCode) +
|
||||||
|
(scope == null ? 0 : scope.hashCode) +
|
||||||
|
(tokenType == null ? 0 : tokenType.hashCode) +
|
||||||
|
(expiresIn == null ? 0 : expiresIn.hashCode) +
|
||||||
|
(expiration == null ? 0 : expiration.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'TokenDTO[accessToken=$accessToken, refreshToken=$refreshToken, scope=$scope, tokenType=$tokenType, expiresIn=$expiresIn, expiration=$expiration]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (accessToken != null) {
|
||||||
|
json[r'access_token'] = accessToken;
|
||||||
|
}
|
||||||
|
if (refreshToken != null) {
|
||||||
|
json[r'refresh_token'] = refreshToken;
|
||||||
|
}
|
||||||
|
if (scope != null) {
|
||||||
|
json[r'scope'] = scope;
|
||||||
|
}
|
||||||
|
if (tokenType != null) {
|
||||||
|
json[r'token_type'] = tokenType;
|
||||||
|
}
|
||||||
|
if (expiresIn != null) {
|
||||||
|
json[r'expires_in'] = expiresIn;
|
||||||
|
}
|
||||||
|
if (expiration != null) {
|
||||||
|
json[r'expiration'] = expiration.toUtc().toIso8601String();
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [TokenDTO] instance and imports its values from
|
||||||
|
/// [json] if it's non-null, null if [json] is null.
|
||||||
|
static TokenDTO fromJson(Map<String, dynamic> json) => json == null
|
||||||
|
? null
|
||||||
|
: TokenDTO(
|
||||||
|
accessToken: json[r'access_token'],
|
||||||
|
refreshToken: json[r'refresh_token'],
|
||||||
|
scope: json[r'scope'],
|
||||||
|
tokenType: json[r'token_type'],
|
||||||
|
expiresIn: json[r'expires_in'],
|
||||||
|
expiration: json[r'expiration'] == null
|
||||||
|
? null
|
||||||
|
: DateTime.parse(json[r'expiration']),
|
||||||
|
);
|
||||||
|
|
||||||
|
static List<TokenDTO> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
||||||
|
json == null || json.isEmpty
|
||||||
|
? true == emptyIsNull ? null : <TokenDTO>[]
|
||||||
|
: json.map((v) => TokenDTO.fromJson(v)).toList(growable: true == growable);
|
||||||
|
|
||||||
|
static Map<String, TokenDTO> mapFromJson(Map<String, dynamic> json) {
|
||||||
|
final map = <String, TokenDTO>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) => map[key] = TokenDTO.fromJson(v));
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of TokenDTO-objects as value to a dart map
|
||||||
|
static Map<String, List<TokenDTO>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
||||||
|
final map = <String, List<TokenDTO>>{};
|
||||||
|
if (json != null && json.isNotEmpty) {
|
||||||
|
json.forEach((String key, dynamic v) {
|
||||||
|
map[key] = TokenDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
31
mycore_api/test/automation_state_test.dart
Normal file
31
mycore_api/test/automation_state_test.dart
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for AutomationState
|
||||||
|
void main() {
|
||||||
|
final instance = AutomationState();
|
||||||
|
|
||||||
|
group('test AutomationState', () {
|
||||||
|
// String name
|
||||||
|
test('to test the property `name`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String value
|
||||||
|
test('to test the property `value`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
36
mycore_api/test/odd_object_test.dart
Normal file
36
mycore_api/test/odd_object_test.dart
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for OddObject
|
||||||
|
void main() {
|
||||||
|
final instance = OddObject();
|
||||||
|
|
||||||
|
group('test OddObject', () {
|
||||||
|
// double homeOdd
|
||||||
|
test('to test the property `homeOdd`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// double drawOdd
|
||||||
|
test('to test the property `drawOdd`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// double visitOdd
|
||||||
|
test('to test the property `visitOdd`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
31
mycore_api/test/place_dto_test.dart
Normal file
31
mycore_api/test/place_dto_test.dart
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for PlaceDTO
|
||||||
|
void main() {
|
||||||
|
final instance = PlaceDTO();
|
||||||
|
|
||||||
|
group('test PlaceDTO', () {
|
||||||
|
// String id
|
||||||
|
test('to test the property `id`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String name
|
||||||
|
test('to test the property `name`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
86
mycore_api/test/screen_widget_test.dart
Normal file
86
mycore_api/test/screen_widget_test.dart
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for ScreenWidget
|
||||||
|
void main() {
|
||||||
|
final instance = ScreenWidget();
|
||||||
|
|
||||||
|
group('test ScreenWidget', () {
|
||||||
|
// String id
|
||||||
|
test('to test the property `id`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String name
|
||||||
|
test('to test the property `name`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String displayName
|
||||||
|
test('to test the property `displayName`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String type
|
||||||
|
test('to test the property `type`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// bool activated
|
||||||
|
test('to test the property `activated`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String form
|
||||||
|
test('to test the property `form`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String font
|
||||||
|
test('to test the property `font`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String color
|
||||||
|
test('to test the property `color`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String size
|
||||||
|
test('to test the property `size`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int width
|
||||||
|
test('to test the property `width`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int height
|
||||||
|
test('to test the property `height`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int positionX
|
||||||
|
test('to test the property `positionX`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int positionY
|
||||||
|
test('to test the property `positionY`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
51
mycore_api/test/token_dto_test.dart
Normal file
51
mycore_api/test/token_dto_test.dart
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.0
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
import 'package:mycoreapi/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for TokenDTO
|
||||||
|
void main() {
|
||||||
|
final instance = TokenDTO();
|
||||||
|
|
||||||
|
group('test TokenDTO', () {
|
||||||
|
// String accessToken
|
||||||
|
test('to test the property `accessToken`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String refreshToken
|
||||||
|
test('to test the property `refreshToken`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String scope
|
||||||
|
test('to test the property `scope`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String tokenType
|
||||||
|
test('to test the property `tokenType`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int expiresIn
|
||||||
|
test('to test the property `expiresIn`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// DateTime expiration
|
||||||
|
test('to test the property `expiration`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
315
pubspec.lock
315
pubspec.lock
@ -1,27 +1,6 @@
|
|||||||
# Generated by pub
|
# Generated by pub
|
||||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||||
packages:
|
packages:
|
||||||
analyzer:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: analyzer
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.38.5"
|
|
||||||
analyzer_plugin:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: analyzer_plugin
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.1"
|
|
||||||
args:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: args
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.6.0"
|
|
||||||
async:
|
async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -36,69 +15,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0"
|
version: "2.1.0"
|
||||||
build:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: build
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.2"
|
|
||||||
build_config:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: build_config
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.4.2"
|
|
||||||
build_daemon:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: build_daemon
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
build_resolvers:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: build_resolvers
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.1"
|
|
||||||
build_runner:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description:
|
|
||||||
name: build_runner
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.9.0"
|
|
||||||
build_runner_core:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: build_runner_core
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "5.1.0"
|
|
||||||
built_collection:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: built_collection
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "4.3.2"
|
|
||||||
built_value:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: built_value
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "6.8.2"
|
|
||||||
built_value_generator:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description:
|
|
||||||
name: built_value_generator
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "6.8.2"
|
|
||||||
characters:
|
characters:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -113,13 +29,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.0"
|
||||||
checked_yaml:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: checked_yaml
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.4"
|
|
||||||
clock:
|
clock:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -127,13 +36,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
code_builder:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: code_builder
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "3.2.0"
|
|
||||||
collection:
|
collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -155,13 +57,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.5"
|
version: "2.1.5"
|
||||||
csslib:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: csslib
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.16.2"
|
|
||||||
cupertino_icons:
|
cupertino_icons:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -169,13 +64,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.2"
|
version: "1.0.2"
|
||||||
dart_style:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: dart_style
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.3.3"
|
|
||||||
event_bus:
|
event_bus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -190,20 +78,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.0"
|
||||||
file:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: file
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "5.2.1"
|
|
||||||
fixnum:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: fixnum
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.10.11"
|
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@ -214,34 +88,6 @@ packages:
|
|||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
front_end:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: front_end
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.1.27"
|
|
||||||
glob:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: glob
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.0"
|
|
||||||
graphs:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: graphs
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.0"
|
|
||||||
html:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: html
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.14.0+4"
|
|
||||||
http:
|
http:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -249,13 +95,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.2"
|
version: "0.12.2"
|
||||||
http_multi_server:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: http_multi_server
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.2.0"
|
|
||||||
http_parser:
|
http_parser:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -270,41 +109,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.16.1"
|
version: "0.16.1"
|
||||||
io:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: io
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.3.5"
|
|
||||||
js:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: js
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.6.3"
|
|
||||||
json_annotation:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: json_annotation
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "3.1.1"
|
|
||||||
kernel:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: kernel
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.3.27"
|
|
||||||
logging:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: logging
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.11.4"
|
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -319,13 +123,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0"
|
version: "1.3.0"
|
||||||
mime:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: mime
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.7"
|
|
||||||
mqtt_client:
|
mqtt_client:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -340,34 +137,6 @@ packages:
|
|||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.0.0"
|
version: "1.0.0"
|
||||||
node_interop:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: node_interop
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.1"
|
|
||||||
node_io:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: node_io
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.0"
|
|
||||||
package_config:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: package_config
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.9.3"
|
|
||||||
package_resolver:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: package_resolver
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.10"
|
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -382,34 +151,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.11.0"
|
version: "1.11.0"
|
||||||
pool:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: pool
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.5.0"
|
|
||||||
pub_semver:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: pub_semver
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.4.4"
|
|
||||||
pubspec_parse:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: pubspec_parse
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.1.8"
|
|
||||||
quiver:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: quiver
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.5"
|
|
||||||
rxdart:
|
rxdart:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -417,32 +158,11 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.22.0"
|
version: "0.22.0"
|
||||||
shelf:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: shelf
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.7.9"
|
|
||||||
shelf_web_socket:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: shelf_web_socket
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.4+1"
|
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.99"
|
version: "0.0.99"
|
||||||
source_gen:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: source_gen
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.4+6"
|
|
||||||
source_span:
|
source_span:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -464,13 +184,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0"
|
version: "2.1.0"
|
||||||
stream_transform:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: stream_transform
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.0.20"
|
|
||||||
string_scanner:
|
string_scanner:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -492,13 +205,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.19"
|
version: "0.2.19"
|
||||||
timing:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: timing
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.1.1+3"
|
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -513,26 +219,5 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0"
|
version: "2.1.0"
|
||||||
watcher:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: watcher
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.7+15"
|
|
||||||
web_socket_channel:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: web_socket_channel
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.0"
|
|
||||||
yaml:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: yaml
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.2.1"
|
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.12.0-0.0 <3.0.0"
|
dart: ">=2.12.0-0.0 <3.0.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user