wip mobile submenu + service generation + misc
This commit is contained in:
parent
4ab7b56046
commit
e2edbfd596
@ -6,20 +6,20 @@ import 'package:manager_api_new/api.dart';
|
||||
class ManagerAppContext with ChangeNotifier{
|
||||
String? email;
|
||||
String? instanceId;
|
||||
InstanceDTO? instanceDTO;
|
||||
String? host;
|
||||
String? accessToken;
|
||||
String? pinCode;
|
||||
Client? clientAPI;
|
||||
int? currentPositionMenu;
|
||||
ConfigurationDTO? selectedConfiguration;
|
||||
SectionDTO? selectedSection;
|
||||
bool? isLoading = false;
|
||||
|
||||
ManagerAppContext({this.email, this.accessToken, this.currentPositionMenu});
|
||||
ManagerAppContext({this.email, this.accessToken});
|
||||
|
||||
// Implement toString to make it easier to see information about
|
||||
@override
|
||||
String toString() {
|
||||
return 'ManagerAppContext{email: $email, host: $host, token: $accessToken, instanceId: $instanceId, currentPositionMenu: $currentPositionMenu}, selectedConfiguration: $selectedConfiguration, selectedSection: $selectedSection}';
|
||||
return 'ManagerAppContext{email: $email, host: $host, token: $accessToken, instanceId: $instanceId, instance: $instanceDTO}, selectedConfiguration: $selectedConfiguration, selectedSection: $selectedSection}';
|
||||
}
|
||||
}
|
||||
147
lib/Screens/Applications/add_configuration_link_popup.dart
Normal file
147
lib/Screens/Applications/add_configuration_link_popup.dart
Normal file
@ -0,0 +1,147 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:manager_app/Components/common_loader.dart';
|
||||
import 'package:manager_app/Components/rounded_button.dart';
|
||||
import 'package:manager_app/Components/string_input_container.dart';
|
||||
import 'package:manager_app/Screens/Devices/change_device_info_modal.dart';
|
||||
import 'package:manager_app/Screens/Resources/resources_screen.dart';
|
||||
import 'package:manager_app/app_context.dart';
|
||||
import 'package:manager_app/constants.dart';
|
||||
import 'package:manager_api_new/api.dart';
|
||||
|
||||
dynamic showAddConfigurationLink (BuildContext mainContext, AppContext appContext, InstanceDTO instanceDTO, List<String> configurationIds) async {
|
||||
Size size = MediaQuery.of(mainContext).size;
|
||||
|
||||
List<String> selectedIds = [];
|
||||
|
||||
var result = await showDialog(
|
||||
builder: (BuildContext context) => AlertDialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(20.0))
|
||||
),
|
||||
title: Center(child: Text("Sélectionner une configuration à ajouter")),
|
||||
content: FutureBuilder(
|
||||
future: getConfigurations(appContext),
|
||||
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
List<ConfigurationDTO> configurations = snapshot.data;
|
||||
|
||||
// filter by already linked
|
||||
configurations = configurations.where((c) => !configurationIds.contains(c.id)).toList();
|
||||
|
||||
return StatefulBuilder(
|
||||
builder: (context, setState) {
|
||||
return Container(
|
||||
height: size.height * 0.5,
|
||||
width: size.width * 0.5,
|
||||
constraints: const BoxConstraints(minHeight: 250, minWidth: 250),
|
||||
child: configurations.length == 0 ? Center(child: Text("Aucun élément à afficher")) : ListView.builder(
|
||||
padding: const EdgeInsets.all(25),
|
||||
itemCount: configurations.length,
|
||||
itemBuilder: (context, index) {
|
||||
final configuration = configurations[index];
|
||||
final isSelected = selectedIds.contains(configuration.id);
|
||||
|
||||
return Card(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
),
|
||||
elevation: 4,
|
||||
margin: const EdgeInsets.symmetric(vertical: 8),
|
||||
color: isSelected ? kPrimaryColor.withValues(alpha: 0.2) : null,
|
||||
child: ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 35, vertical: 12),
|
||||
leading: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Container(
|
||||
height: 35,
|
||||
width: 35,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.rectangle,
|
||||
color: kWhite,
|
||||
borderRadius: BorderRadius.circular(30.0),
|
||||
image: configuration.imageId != null
|
||||
? DecorationImage(
|
||||
fit: BoxFit.cover,
|
||||
image: NetworkImage(configuration.imageSource!),
|
||||
)
|
||||
: null,
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
spreadRadius: 0.5,
|
||||
blurRadius: 1,
|
||||
offset: Offset(0, 1.5),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
title: Text(configuration.label!, style: Theme.of(context).textTheme.titleMedium),
|
||||
subtitle: Text(configuration.dateCreation!.toString(), style: Theme.of(context).textTheme.bodyMedium),
|
||||
trailing: Text(configuration.languages!.toString(), style: Theme.of(context).textTheme.bodyMedium),
|
||||
onTap: () {
|
||||
setState(() {
|
||||
if (isSelected) {
|
||||
selectedIds.remove(configuration.id);
|
||||
} else {
|
||||
selectedIds.add(configuration.id!);
|
||||
}
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
} else if (snapshot.connectionState == ConnectionState.none) {
|
||||
return const Text("ERROR");
|
||||
} else {
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
height: size.height * 0.2,
|
||||
child: CommonLoader(),
|
||||
),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
actions: <Widget>[
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 180,
|
||||
height: 70,
|
||||
child: RoundedButton(
|
||||
text: "Annuler",
|
||||
icon: Icons.undo,
|
||||
color: kSecond,
|
||||
press: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
fontSize: 20,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 180,
|
||||
height: 70,
|
||||
child: RoundedButton(
|
||||
text: "Ajouter",
|
||||
icon: Icons.add,
|
||||
color: kPrimaryColor,
|
||||
press: () {
|
||||
Navigator.of(context).pop(selectedIds);
|
||||
},
|
||||
fontSize: 20,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
), context: mainContext
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
176
lib/Screens/Applications/app_configuration_link_screen.dart
Normal file
176
lib/Screens/Applications/app_configuration_link_screen.dart
Normal file
@ -0,0 +1,176 @@
|
||||
import 'package:auto_size_text/auto_size_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:manager_app/Components/common_loader.dart';
|
||||
import 'package:manager_app/Components/confirmation_dialog.dart';
|
||||
import 'package:manager_app/Components/message_notification.dart';
|
||||
import 'package:manager_app/Models/managerContext.dart';
|
||||
import 'package:manager_app/Screens/Applications/add_configuration_link_popup.dart';
|
||||
import 'package:manager_app/Screens/Applications/phone_mockup.dart';
|
||||
import 'package:manager_app/Screens/Devices/device_element.dart';
|
||||
import 'package:manager_app/app_context.dart';
|
||||
import 'package:manager_app/constants.dart';
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class AppConfigurationLinkScreen extends StatefulWidget {
|
||||
final ApplicationInstanceDTO applicationInstanceDTO;
|
||||
AppConfigurationLinkScreen({Key? key, required this.applicationInstanceDTO}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AppConfigurationLinkScreenState createState() => _AppConfigurationLinkScreenState();
|
||||
}
|
||||
|
||||
class _AppConfigurationLinkScreenState extends State<AppConfigurationLinkScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appContext = Provider.of<AppContext>(context);
|
||||
Size size = MediaQuery.of(context).size;
|
||||
ManagerAppContext managerAppContext = appContext.getContext() as ManagerAppContext;
|
||||
|
||||
return FutureBuilder(
|
||||
future: getAppConfigurationLink(appContext, widget.applicationInstanceDTO),
|
||||
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
||||
|
||||
var test = snapshot.data;
|
||||
|
||||
List<AppConfigurationLinkDTO>? appConfigurationLinks = snapshot.data;
|
||||
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
return Container(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional.topCenter,
|
||||
child: appConfigurationLinks != null ? SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () async {
|
||||
// Show configuration selector to link with !
|
||||
var result = await showAddConfigurationLink(context, appContext, managerAppContext.instanceDTO!, appConfigurationLinks.map((acl) => acl.configurationId!).toList() ?? []);
|
||||
if(result != null) {
|
||||
for(var configurationId in result) {
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO = AppConfigurationLinkDTO(applicationInstanceId: widget.applicationInstanceDTO.id, configurationId: configurationId, isActive: true);
|
||||
await addConfigurationToApp(appContext, appConfigurationLinkDTO, widget.applicationInstanceDTO);
|
||||
}
|
||||
setState(() {
|
||||
// Refresh ui
|
||||
});
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
height: 50,
|
||||
width: 50,
|
||||
color: kPrimaryColor,
|
||||
child: Text("ADD CONFIG TO APP")
|
||||
),
|
||||
),
|
||||
PhoneMockup(
|
||||
child: Center(
|
||||
child: GridView.builder(
|
||||
shrinkWrap: true,
|
||||
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 6),
|
||||
itemCount: appConfigurationLinks.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
AppConfigurationLinkDTO appConfigurationLink = appConfigurationLinks[index];
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
),
|
||||
padding: const EdgeInsets.all(15),
|
||||
margin: EdgeInsets.symmetric(vertical: 15, horizontal: 15),
|
||||
child: Stack(
|
||||
children: [
|
||||
Align(
|
||||
alignment: Alignment.center,
|
||||
child: Text(appConfigurationLink.configuration!.label!),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
showConfirmationDialog(
|
||||
"Êtes-vous sûr de vouloir retirer cette configuration de l'application ?",
|
||||
() {},
|
||||
() async {
|
||||
try {
|
||||
var result = await deleteConfigurationToApp(appContext, appConfigurationLink, widget.applicationInstanceDTO);
|
||||
|
||||
showNotification(kSuccess, kWhite, "La configuration a été retirée de l'application avec succès", context, null);
|
||||
|
||||
setState(() {
|
||||
// for refresh ui
|
||||
});
|
||||
} catch(e) {
|
||||
showNotification(kError, kWhite, 'Une erreur est survenue lors du retrait de la configuration', context, null);
|
||||
}
|
||||
},
|
||||
context
|
||||
);
|
||||
},
|
||||
child: Icon(Icons.delete, color: kError, size: 25),
|
||||
)
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
): Center(child: Text("No data")),
|
||||
),
|
||||
);
|
||||
} else if (snapshot.connectionState == ConnectionState.none) {
|
||||
return Text("No data");
|
||||
} else {
|
||||
return Center(
|
||||
child: Container(
|
||||
height: size.height * 0.2,
|
||||
child: CommonLoader()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> updateMainInfos(DeviceDTO deviceToUpdate, dynamic appContext) async {
|
||||
ManagerAppContext managerAppContext = appContext.getContext();
|
||||
await managerAppContext.clientAPI!.deviceApi!.deviceUpdateMainInfos(deviceToUpdate);
|
||||
}
|
||||
|
||||
Future<List<AppConfigurationLinkDTO>?> getAppConfigurationLink(AppContext appContext, ApplicationInstanceDTO applicationInstanceDTO) async {
|
||||
try{
|
||||
List<AppConfigurationLinkDTO>? appConfigurationsLinks = await (appContext.getContext() as ManagerAppContext).clientAPI!.applicationInstanceApi!.applicationInstanceGetAllApplicationLinkFromApplicationInstance(applicationInstanceDTO.id!);
|
||||
|
||||
if(appConfigurationsLinks != null) {
|
||||
appConfigurationsLinks.forEach((element) {
|
||||
print(element);
|
||||
});
|
||||
}
|
||||
|
||||
return appConfigurationsLinks;
|
||||
} catch(e) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Future<AppConfigurationLinkDTO?> addConfigurationToApp(AppContext appContext, AppConfigurationLinkDTO appConfigurationLink, ApplicationInstanceDTO applicationInstanceDTO) async {
|
||||
AppConfigurationLinkDTO? appConfigurationsLink = await (appContext.getContext() as ManagerAppContext).clientAPI!.applicationInstanceApi!.applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceDTO.id!, appConfigurationLink);
|
||||
return appConfigurationsLink;
|
||||
}
|
||||
|
||||
Future<String?> deleteConfigurationToApp(AppContext appContext, AppConfigurationLinkDTO appConfigurationLink, ApplicationInstanceDTO applicationInstanceDTO) async {
|
||||
var result = await (appContext.getContext() as ManagerAppContext).clientAPI!.applicationInstanceApi!.applicationInstanceDeleteAppConfigurationLink(applicationInstanceDTO.id!, appConfigurationLink.id!);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
49
lib/Screens/Applications/phone_mockup.dart
Normal file
49
lib/Screens/Applications/phone_mockup.dart
Normal file
@ -0,0 +1,49 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class PhoneMockup extends StatelessWidget {
|
||||
final Widget child;
|
||||
|
||||
const PhoneMockup({super.key, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Size size = MediaQuery.of(context).size;
|
||||
|
||||
return Container(
|
||||
width: size.width * 0.4,
|
||||
height: size.height * 0.6,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black,
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
border: Border.all(color: Colors.black, width: 8),
|
||||
),
|
||||
child: Stack(
|
||||
children: [
|
||||
// Écran
|
||||
Positioned.fill(
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
child: Container(
|
||||
color: Colors.white,
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
),
|
||||
// Notch
|
||||
Positioned(
|
||||
top: 8,
|
||||
left:(size.width * 0.35) / 2,
|
||||
right: (size.width * 0.35) / 2,
|
||||
child: Container(
|
||||
height: 20,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -10,6 +10,7 @@ import 'package:manager_app/Screens/Configurations/configurations_screen.dart';
|
||||
import 'package:manager_app/Screens/Devices/devices_screen.dart';
|
||||
import 'package:manager_app/Screens/Main/components/background.dart';
|
||||
import 'package:manager_app/Screens/Resources/resources_screen.dart';
|
||||
import 'package:manager_app/Screens/Applications/app_configuration_link_screen.dart';
|
||||
import 'package:manager_app/Screens/login_screen.dart';
|
||||
import 'package:manager_app/app_context.dart';
|
||||
import 'package:manager_app/constants.dart';
|
||||
@ -63,7 +64,7 @@ class _BodyState extends State<Body> {
|
||||
//currentPosition = managerAppContext.currentPositionMenu!;
|
||||
}
|
||||
|
||||
selectedElement = initElementToShow(currentPosition.value!, menu);
|
||||
selectedElement = initElementToShow(currentPosition.value!, menu, widget.instance);
|
||||
}
|
||||
|
||||
Widget buildMenu(BuildContext context, AppContext appContext, ManagerAppContext managerAppContext, bool isDrawer) {
|
||||
@ -100,9 +101,21 @@ class _BodyState extends State<Body> {
|
||||
return ListTile(
|
||||
title: Padding(
|
||||
padding: const EdgeInsets.only(left: 16.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
subSection.type == "mobile" ? Icon(Icons.phone_iphone, color: currentPosition.value == subSection.menuId ? kPrimaryColor : kBodyTextColor, size: 20) :
|
||||
subSection.type == "kiosk" ? Icon(Icons.tablet_rounded, color: currentPosition.value == subSection.menuId ? kPrimaryColor : kBodyTextColor, size: 20) :
|
||||
subSection.type == "web" ? Icon(Icons.public_outlined, color: currentPosition.value == subSection.menuId ? kPrimaryColor : kBodyTextColor, size: 20) :
|
||||
subSection.type == "vr" ? Icon(Icons.panorama_photosphere, color: currentPosition.value == subSection.menuId ? kPrimaryColor : kBodyTextColor, size: 20) : SizedBox(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text(subSection.name, style: TextStyle(color: subSection.menuId == currentPosition.value! ? kPrimaryColor : kBodyTextColor, fontSize: 18)),
|
||||
)
|
||||
],
|
||||
),
|
||||
selected: currentPosition == subSection.menuId,
|
||||
),
|
||||
selected: currentPosition.value == subSection.menuId,
|
||||
onTap: () {
|
||||
currentPosition.value = subSection.menuId;
|
||||
if (isDrawer) Navigator.of(context).pop();
|
||||
@ -191,7 +204,7 @@ class _BodyState extends State<Body> {
|
||||
child: ValueListenableBuilder<int?>(
|
||||
valueListenable: currentPosition,
|
||||
builder: (context, value, _) {
|
||||
selectedElement = initElementToShow(currentPosition.value!, menu);
|
||||
selectedElement = initElementToShow(currentPosition.value!, menu, widget.instance);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: selectedElement,
|
||||
@ -205,7 +218,7 @@ class _BodyState extends State<Body> {
|
||||
}
|
||||
}
|
||||
|
||||
initElementToShow(int currentPosition, Menu menu) {
|
||||
initElementToShow(int currentPosition, Menu menu, InstanceDTO instanceDTO) {
|
||||
MenuSection? elementToShow = menu.sections!.firstWhereOrNull((s) => s.menuId == currentPosition);
|
||||
|
||||
if(elementToShow == null) {
|
||||
@ -214,21 +227,25 @@ class _BodyState extends State<Body> {
|
||||
|
||||
switch (elementToShow.type) {
|
||||
case 'mobile' :
|
||||
var applicationInstanceMobile = instanceDTO.applicationInstanceDTOs!.firstWhere((ai) => ai.appType == AppType.Mobile);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text("TODO mobile")
|
||||
child: AppConfigurationLinkScreen(applicationInstanceDTO: applicationInstanceMobile)
|
||||
);
|
||||
case 'kiosk' :
|
||||
var applicationInstanceTablet = instanceDTO.applicationInstanceDTOs!.firstWhere((ai) => ai.appType == AppType.Tablet);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: DevicesScreen()
|
||||
);
|
||||
case 'web' :
|
||||
var applicationInstanceWeb = instanceDTO.applicationInstanceDTOs!.firstWhere((ai) => ai.appType == AppType.Web);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text("TODO web")
|
||||
);
|
||||
case 'vr' :
|
||||
var applicationInstanceVR = instanceDTO.applicationInstanceDTOs!.firstWhere((ai) => ai.appType == AppType.VR);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text("TODO vr")
|
||||
|
||||
@ -23,12 +23,13 @@ class _MainScreenState extends State<MainScreen> {
|
||||
final GlobalKey<_MainScreenState> key = GlobalKey();
|
||||
final appContext = Provider.of<AppContext>(context);
|
||||
Size size = MediaQuery.of(context).size;
|
||||
ManagerAppContext managerAppContext = appContext.getContext();
|
||||
|
||||
ManagerAppContext managerAppContext = appContext.getContext() as ManagerAppContext;
|
||||
|
||||
//var isFortSt = managerAppContext.instanceId == "633ee379d9405f32f166f047";
|
||||
|
||||
return FutureBuilder(
|
||||
future: getInstanceInfo(managerAppContext),
|
||||
future: getInstanceInfo(appContext),
|
||||
builder: (context, AsyncSnapshot<InstanceDTO?> snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
if (snapshot.data != null) {
|
||||
@ -54,8 +55,10 @@ class _MainScreenState extends State<MainScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
Future<InstanceDTO?> getInstanceInfo(ManagerAppContext managerAppContext) async {
|
||||
Future<InstanceDTO?> getInstanceInfo(AppContext appContext) async {
|
||||
ManagerAppContext managerAppContext = appContext.getContext() as ManagerAppContext;
|
||||
InstanceDTO? instance = await managerAppContext.clientAPI!.instanceApi!.instanceGetDetail(managerAppContext.instanceId!);
|
||||
managerAppContext.instanceDTO = instance;
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,85 +0,0 @@
|
||||
import 'package:auto_size_text/auto_size_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:manager_app/Components/common_loader.dart';
|
||||
import 'package:manager_app/Models/managerContext.dart';
|
||||
import 'package:manager_app/Screens/Devices/device_element.dart';
|
||||
import 'package:manager_app/app_context.dart';
|
||||
import 'package:manager_app/constants.dart';
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class AppConfigurationLinkScreen extends StatefulWidget {
|
||||
AppConfigurationLinkScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AppConfigurationLinkScreenState createState() => _AppConfigurationLinkScreenState();
|
||||
}
|
||||
|
||||
class _AppConfigurationLinkScreenState extends State<AppConfigurationLinkScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appContext = Provider.of<AppContext>(context);
|
||||
Size size = MediaQuery.of(context).size;
|
||||
ManagerAppContext managerAppContext = appContext.getContext();
|
||||
return Container(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional.topCenter,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
FutureBuilder(
|
||||
future: getAppConfigurationLink(appContext),
|
||||
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
return GridView.builder(
|
||||
shrinkWrap: true,
|
||||
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 6),
|
||||
itemCount: snapshot.data.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(15),
|
||||
margin: EdgeInsets.symmetric(vertical: 15, horizontal: 15),
|
||||
child: Align(
|
||||
alignment: Alignment.center,
|
||||
child: DeviceElement(deviceDTO: snapshot.data[index]), //getElement()
|
||||
),
|
||||
);
|
||||
}
|
||||
);
|
||||
} else if (snapshot.connectionState == ConnectionState.none) {
|
||||
return Text("No data");
|
||||
} else {
|
||||
return Center(
|
||||
child: Container(
|
||||
height: size.height * 0.2,
|
||||
child: CommonLoader()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> updateMainInfos(DeviceDTO deviceToUpdate, dynamic appContext) async {
|
||||
ManagerAppContext managerAppContext = appContext.getContext();
|
||||
await managerAppContext.clientAPI!.deviceApi!.deviceUpdateMainInfos(deviceToUpdate);
|
||||
}
|
||||
|
||||
Future<List<AppConfigurationLinkDTO>?> getAppConfigurationLink(AppContext appContext) async {
|
||||
List<DeviceDTO>? devices = await (appContext.getContext() as ManagerAppContext).clientAPI!.apiApi!.deviceGet(instanceId: (appContext.getContext() as ManagerAppContext).instanceId);
|
||||
//print("number of devices " + devices.length.toString());
|
||||
|
||||
if(devices != null) {
|
||||
devices.forEach((element) {
|
||||
//print(element);
|
||||
});
|
||||
}
|
||||
|
||||
return devices;
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
// Openapi Generator last run: : 2025-08-01T15:25:28.408371
|
||||
// Openapi Generator last run: : 2025-08-14T14:27:27.832614
|
||||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
|
||||
|
||||
@Openapi(
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"info": {
|
||||
"title": "Manager Service",
|
||||
"description": "API Manager Service",
|
||||
"version": "Version Alpha"
|
||||
"version": "Version Alpha 1"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
@ -137,7 +137,7 @@
|
||||
"/api/ApplicationInstance": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_Get",
|
||||
"parameters": [
|
||||
@ -179,7 +179,7 @@
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_Create",
|
||||
"requestBody": {
|
||||
@ -244,7 +244,7 @@
|
||||
},
|
||||
"put": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_Update",
|
||||
"requestBody": {
|
||||
@ -311,7 +311,7 @@
|
||||
"/api/ApplicationInstance/{id}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_Delete",
|
||||
"parameters": [
|
||||
@ -378,27 +378,19 @@
|
||||
"/api/ApplicationInstance/{applicationInstanceId}/application-link": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_GetAllApplicationLinkFromApplicationInstance",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "applicationInstanceId",
|
||||
"in": "query",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"x-position": 1
|
||||
},
|
||||
{
|
||||
"name": "applicationInstanceId",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-position": 2
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@ -429,7 +421,7 @@
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_AddConfigurationToApplicationInstance",
|
||||
"parameters": [
|
||||
@ -508,7 +500,7 @@
|
||||
"/api/ApplicationInstance/application-link": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_UpdateApplicationLink",
|
||||
"requestBody": {
|
||||
@ -575,7 +567,7 @@
|
||||
"/api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId}": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"Instance"
|
||||
"ApplicationInstance"
|
||||
],
|
||||
"operationId": "ApplicationInstance_DeleteAppConfigurationLink",
|
||||
"parameters": [
|
||||
@ -6729,10 +6721,26 @@
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"configuration": {
|
||||
"nullable": true,
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ConfigurationDTO"
|
||||
}
|
||||
]
|
||||
},
|
||||
"applicationInstanceId": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"applicationInstance": {
|
||||
"nullable": true,
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ApplicationInstanceDTO"
|
||||
}
|
||||
]
|
||||
},
|
||||
"order": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
@ -7124,6 +7132,13 @@
|
||||
},
|
||||
"isVR": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"applicationInstanceDTOs": {
|
||||
"type": "array",
|
||||
"nullable": true,
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ApplicationInstanceDTO"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -8880,8 +8895,8 @@
|
||||
"description": "Authentication management"
|
||||
},
|
||||
{
|
||||
"name": "Instance",
|
||||
"description": "Instance management"
|
||||
"name": "ApplicationInstance",
|
||||
"description": "Application instance management"
|
||||
},
|
||||
{
|
||||
"name": "Configuration",
|
||||
@ -8891,6 +8906,10 @@
|
||||
"name": "Device",
|
||||
"description": "Device management"
|
||||
},
|
||||
{
|
||||
"name": "Instance",
|
||||
"description": "Instance management"
|
||||
},
|
||||
{
|
||||
"name": "Resource",
|
||||
"description": "Resource management"
|
||||
|
||||
@ -8,6 +8,9 @@ class Client {
|
||||
AuthenticationApi? _authenticationApi;
|
||||
AuthenticationApi? get authenticationApi => _authenticationApi;
|
||||
|
||||
ApplicationInstanceApi? _applicationInstanceApi;
|
||||
ApplicationInstanceApi? get applicationInstanceApi => _applicationInstanceApi;
|
||||
|
||||
UserApi? _userApi;
|
||||
UserApi? get userApi => _userApi;
|
||||
|
||||
@ -40,6 +43,7 @@ class Client {
|
||||
_apiClient!.addDefaultHeader("Access-Control_Allow_Origin", "*");
|
||||
_authenticationApi = AuthenticationApi(_apiClient);
|
||||
_instanceApi = InstanceApi(_apiClient);
|
||||
_applicationInstanceApi = ApplicationInstanceApi(_apiClient);
|
||||
_userApi = UserApi(_apiClient);
|
||||
_configurationApi = ConfigurationApi(_apiClient);
|
||||
_sectionApi = SectionApi(_apiClient);
|
||||
|
||||
@ -8,8 +8,11 @@ doc/AppConfigurationLink.md
|
||||
doc/AppConfigurationLinkApplicationInstance.md
|
||||
doc/AppConfigurationLinkConfiguration.md
|
||||
doc/AppConfigurationLinkDTO.md
|
||||
doc/AppConfigurationLinkDTOApplicationInstance.md
|
||||
doc/AppConfigurationLinkDTOConfiguration.md
|
||||
doc/AppType.md
|
||||
doc/ApplicationInstance.md
|
||||
doc/ApplicationInstanceApi.md
|
||||
doc/ApplicationInstanceDTO.md
|
||||
doc/ApplicationInstanceSectionEvent.md
|
||||
doc/ArticleDTO.md
|
||||
@ -128,6 +131,7 @@ doc/WeatherDTO.md
|
||||
doc/WebDTO.md
|
||||
git_push.sh
|
||||
lib/api.dart
|
||||
lib/api/application_instance_api.dart
|
||||
lib/api/authentication_api.dart
|
||||
lib/api/configuration_api.dart
|
||||
lib/api/device_api.dart
|
||||
@ -153,6 +157,8 @@ lib/model/app_configuration_link.dart
|
||||
lib/model/app_configuration_link_application_instance.dart
|
||||
lib/model/app_configuration_link_configuration.dart
|
||||
lib/model/app_configuration_link_dto.dart
|
||||
lib/model/app_configuration_link_dto_application_instance.dart
|
||||
lib/model/app_configuration_link_dto_configuration.dart
|
||||
lib/model/app_type.dart
|
||||
lib/model/application_instance.dart
|
||||
lib/model/application_instance_dto.dart
|
||||
@ -261,3 +267,5 @@ lib/model/video_dto.dart
|
||||
lib/model/weather_dto.dart
|
||||
lib/model/web_dto.dart
|
||||
pubspec.yaml
|
||||
test/app_configuration_link_dto_application_instance_test.dart
|
||||
test/app_configuration_link_dto_configuration_test.dart
|
||||
|
||||
@ -3,7 +3,7 @@ API Manager Service
|
||||
|
||||
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: Version Alpha 0.1
|
||||
- API version: Version Alpha 1
|
||||
- Generator version: 7.9.0
|
||||
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
||||
|
||||
@ -43,18 +43,15 @@ import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = AuthenticationApi();
|
||||
final grantType = grantType_example; // String |
|
||||
final username = username_example; // String |
|
||||
final password = password_example; // String |
|
||||
final clientId = clientId_example; // String |
|
||||
final clientSecret = clientSecret_example; // String |
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
final appConfigurationLinkDTO = AppConfigurationLinkDTO(); // AppConfigurationLinkDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret);
|
||||
final result = api_instance.applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceId, appConfigurationLinkDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling AuthenticationApi->authenticationAuthenticateWithForm: $e\n');
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceAddConfigurationToApplicationInstance: $e\n');
|
||||
}
|
||||
|
||||
```
|
||||
@ -65,6 +62,14 @@ All URIs are relative to *https://localhost:5001*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*ApplicationInstanceApi* | [**applicationInstanceAddConfigurationToApplicationInstance**](doc//ApplicationInstanceApi.md#applicationinstanceaddconfigurationtoapplicationinstance) | **POST** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceCreate**](doc//ApplicationInstanceApi.md#applicationinstancecreate) | **POST** /api/ApplicationInstance |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceDelete**](doc//ApplicationInstanceApi.md#applicationinstancedelete) | **DELETE** /api/ApplicationInstance/{id} |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceDeleteAppConfigurationLink**](doc//ApplicationInstanceApi.md#applicationinstancedeleteappconfigurationlink) | **DELETE** /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId} |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceGet**](doc//ApplicationInstanceApi.md#applicationinstanceget) | **GET** /api/ApplicationInstance |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceGetAllApplicationLinkFromApplicationInstance**](doc//ApplicationInstanceApi.md#applicationinstancegetallapplicationlinkfromapplicationinstance) | **GET** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceUpdate**](doc//ApplicationInstanceApi.md#applicationinstanceupdate) | **PUT** /api/ApplicationInstance |
|
||||
*ApplicationInstanceApi* | [**applicationInstanceUpdateApplicationLink**](doc//ApplicationInstanceApi.md#applicationinstanceupdateapplicationlink) | **PUT** /api/ApplicationInstance/application-link |
|
||||
*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc//AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token |
|
||||
*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc//AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate |
|
||||
*ConfigurationApi* | [**configurationCreate**](doc//ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration |
|
||||
@ -81,14 +86,6 @@ Class | Method | HTTP request | Description
|
||||
*DeviceApi* | [**deviceGetDetail**](doc//DeviceApi.md#devicegetdetail) | **GET** /api/Device/{id}/detail |
|
||||
*DeviceApi* | [**deviceUpdate**](doc//DeviceApi.md#deviceupdate) | **PUT** /api/Device |
|
||||
*DeviceApi* | [**deviceUpdateMainInfos**](doc//DeviceApi.md#deviceupdatemaininfos) | **PUT** /api/Device/mainInfos |
|
||||
*InstanceApi* | [**applicationInstanceAddConfigurationToApplicationInstance**](doc//InstanceApi.md#applicationinstanceaddconfigurationtoapplicationinstance) | **POST** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
*InstanceApi* | [**applicationInstanceCreate**](doc//InstanceApi.md#applicationinstancecreate) | **POST** /api/ApplicationInstance |
|
||||
*InstanceApi* | [**applicationInstanceDelete**](doc//InstanceApi.md#applicationinstancedelete) | **DELETE** /api/ApplicationInstance/{id} |
|
||||
*InstanceApi* | [**applicationInstanceDeleteAppConfigurationLink**](doc//InstanceApi.md#applicationinstancedeleteappconfigurationlink) | **DELETE** /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId} |
|
||||
*InstanceApi* | [**applicationInstanceGet**](doc//InstanceApi.md#applicationinstanceget) | **GET** /api/ApplicationInstance |
|
||||
*InstanceApi* | [**applicationInstanceGetAllApplicationLinkFromApplicationInstance**](doc//InstanceApi.md#applicationinstancegetallapplicationlinkfromapplicationinstance) | **GET** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
*InstanceApi* | [**applicationInstanceUpdate**](doc//InstanceApi.md#applicationinstanceupdate) | **PUT** /api/ApplicationInstance |
|
||||
*InstanceApi* | [**applicationInstanceUpdateApplicationLink**](doc//InstanceApi.md#applicationinstanceupdateapplicationlink) | **PUT** /api/ApplicationInstance/application-link |
|
||||
*InstanceApi* | [**instanceCreateInstance**](doc//InstanceApi.md#instancecreateinstance) | **POST** /api/Instance |
|
||||
*InstanceApi* | [**instanceDeleteInstance**](doc//InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} |
|
||||
*InstanceApi* | [**instanceGet**](doc//InstanceApi.md#instanceget) | **GET** /api/Instance |
|
||||
@ -170,6 +167,8 @@ Class | Method | HTTP request | Description
|
||||
- [AppConfigurationLinkApplicationInstance](doc//AppConfigurationLinkApplicationInstance.md)
|
||||
- [AppConfigurationLinkConfiguration](doc//AppConfigurationLinkConfiguration.md)
|
||||
- [AppConfigurationLinkDTO](doc//AppConfigurationLinkDTO.md)
|
||||
- [AppConfigurationLinkDTOApplicationInstance](doc//AppConfigurationLinkDTOApplicationInstance.md)
|
||||
- [AppConfigurationLinkDTOConfiguration](doc//AppConfigurationLinkDTOConfiguration.md)
|
||||
- [AppType](doc//AppType.md)
|
||||
- [ApplicationInstance](doc//ApplicationInstance.md)
|
||||
- [ApplicationInstanceDTO](doc//ApplicationInstanceDTO.md)
|
||||
|
||||
@ -10,7 +10,9 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [optional]
|
||||
**configurationId** | **String** | | [optional]
|
||||
**configuration** | [**AppConfigurationLinkDTOConfiguration**](AppConfigurationLinkDTOConfiguration.md) | | [optional]
|
||||
**applicationInstanceId** | **String** | | [optional]
|
||||
**applicationInstance** | [**AppConfigurationLinkDTOApplicationInstance**](AppConfigurationLinkDTOApplicationInstance.md) | | [optional]
|
||||
**order** | **int** | | [optional]
|
||||
**isActive** | **bool** | | [optional]
|
||||
**weightMasonryGrid** | **int** | | [optional]
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
# manager_api_new.model.AppConfigurationLinkDTOApplicationInstance
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [optional]
|
||||
**instanceId** | **String** | | [optional]
|
||||
**appType** | [**AppType**](AppType.md) | | [optional]
|
||||
**configurations** | [**List<AppConfigurationLink>**](AppConfigurationLink.md) | | [optional] [default to const []]
|
||||
**mainImageId** | **String** | | [optional]
|
||||
**mainImageUrl** | **String** | | [optional]
|
||||
**loaderImageId** | **String** | | [optional]
|
||||
**loaderImageUrl** | **String** | | [optional]
|
||||
**isDate** | **bool** | | [optional]
|
||||
**isHour** | **bool** | | [optional]
|
||||
**primaryColor** | **String** | | [optional]
|
||||
**secondaryColor** | **String** | | [optional]
|
||||
**roundedValue** | **int** | | [optional]
|
||||
**screenPercentageSectionsMainPage** | **int** | | [optional]
|
||||
**isSectionImageBackground** | **bool** | | [optional]
|
||||
**languages** | **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)
|
||||
|
||||
|
||||
28
manager_api_new/doc/AppConfigurationLinkDTOConfiguration.md
Normal file
28
manager_api_new/doc/AppConfigurationLinkDTOConfiguration.md
Normal file
@ -0,0 +1,28 @@
|
||||
# manager_api_new.model.AppConfigurationLinkDTOConfiguration
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [optional]
|
||||
**instanceId** | **String** | | [optional]
|
||||
**label** | **String** | | [optional]
|
||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||
**imageId** | **String** | | [optional]
|
||||
**imageSource** | **String** | | [optional]
|
||||
**primaryColor** | **String** | | [optional]
|
||||
**secondaryColor** | **String** | | [optional]
|
||||
**languages** | **List<String>** | | [optional] [default to const []]
|
||||
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**isOffline** | **bool** | | [optional]
|
||||
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
||||
**loaderImageId** | **String** | | [optional]
|
||||
**loaderImageUrl** | **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)
|
||||
|
||||
|
||||
369
manager_api_new/doc/ApplicationInstanceApi.md
Normal file
369
manager_api_new/doc/ApplicationInstanceApi.md
Normal file
@ -0,0 +1,369 @@
|
||||
# manager_api_new.api.ApplicationInstanceApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *https://localhost:5001*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**applicationInstanceAddConfigurationToApplicationInstance**](ApplicationInstanceApi.md#applicationinstanceaddconfigurationtoapplicationinstance) | **POST** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
[**applicationInstanceCreate**](ApplicationInstanceApi.md#applicationinstancecreate) | **POST** /api/ApplicationInstance |
|
||||
[**applicationInstanceDelete**](ApplicationInstanceApi.md#applicationinstancedelete) | **DELETE** /api/ApplicationInstance/{id} |
|
||||
[**applicationInstanceDeleteAppConfigurationLink**](ApplicationInstanceApi.md#applicationinstancedeleteappconfigurationlink) | **DELETE** /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId} |
|
||||
[**applicationInstanceGet**](ApplicationInstanceApi.md#applicationinstanceget) | **GET** /api/ApplicationInstance |
|
||||
[**applicationInstanceGetAllApplicationLinkFromApplicationInstance**](ApplicationInstanceApi.md#applicationinstancegetallapplicationlinkfromapplicationinstance) | **GET** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
[**applicationInstanceUpdate**](ApplicationInstanceApi.md#applicationinstanceupdate) | **PUT** /api/ApplicationInstance |
|
||||
[**applicationInstanceUpdateApplicationLink**](ApplicationInstanceApi.md#applicationinstanceupdateapplicationlink) | **PUT** /api/ApplicationInstance/application-link |
|
||||
|
||||
|
||||
# **applicationInstanceAddConfigurationToApplicationInstance**
|
||||
> AppConfigurationLinkDTO applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceId, appConfigurationLinkDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
final appConfigurationLinkDTO = AppConfigurationLinkDTO(); // AppConfigurationLinkDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceId, appConfigurationLinkDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceAddConfigurationToApplicationInstance: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId** | **String**| |
|
||||
**appConfigurationLinkDTO** | [**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceCreate**
|
||||
> ApplicationInstanceDTO applicationInstanceCreate(applicationInstanceDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceDTO = ApplicationInstanceDTO(); // ApplicationInstanceDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceCreate(applicationInstanceDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceCreate: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceDTO** | [**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceDelete**
|
||||
> String applicationInstanceDelete(id)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final id = id_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceDelete(id);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceDelete: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
**String**
|
||||
|
||||
### 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)
|
||||
|
||||
# **applicationInstanceDeleteAppConfigurationLink**
|
||||
> String applicationInstanceDeleteAppConfigurationLink(applicationInstanceId, appConfigurationLinkId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
final appConfigurationLinkId = appConfigurationLinkId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceDeleteAppConfigurationLink(applicationInstanceId, appConfigurationLinkId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceDeleteAppConfigurationLink: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId** | **String**| |
|
||||
**appConfigurationLinkId** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
**String**
|
||||
|
||||
### 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)
|
||||
|
||||
# **applicationInstanceGet**
|
||||
> List<ApplicationInstanceDTO> applicationInstanceGet(instanceId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final instanceId = instanceId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceGet(instanceId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceGet: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**instanceId** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<ApplicationInstanceDTO>**](ApplicationInstanceDTO.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)
|
||||
|
||||
# **applicationInstanceGetAllApplicationLinkFromApplicationInstance**
|
||||
> List<AppConfigurationLinkDTO> applicationInstanceGetAllApplicationLinkFromApplicationInstance(applicationInstanceId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceGetAllApplicationLinkFromApplicationInstance(applicationInstanceId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceGetAllApplicationLinkFromApplicationInstance: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<AppConfigurationLinkDTO>**](AppConfigurationLinkDTO.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)
|
||||
|
||||
# **applicationInstanceUpdate**
|
||||
> ApplicationInstanceDTO applicationInstanceUpdate(applicationInstanceDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final applicationInstanceDTO = ApplicationInstanceDTO(); // ApplicationInstanceDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceUpdate(applicationInstanceDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceUpdate: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceDTO** | [**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceUpdateApplicationLink**
|
||||
> AppConfigurationLinkDTO applicationInstanceUpdateApplicationLink(appConfigurationLinkDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = ApplicationInstanceApi();
|
||||
final appConfigurationLinkDTO = AppConfigurationLinkDTO(); // AppConfigurationLinkDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceUpdateApplicationLink(appConfigurationLinkDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling ApplicationInstanceApi->applicationInstanceUpdateApplicationLink: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**appConfigurationLinkDTO** | [**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
@ -9,14 +9,6 @@ All URIs are relative to *https://localhost:5001*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**applicationInstanceAddConfigurationToApplicationInstance**](InstanceApi.md#applicationinstanceaddconfigurationtoapplicationinstance) | **POST** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
[**applicationInstanceCreate**](InstanceApi.md#applicationinstancecreate) | **POST** /api/ApplicationInstance |
|
||||
[**applicationInstanceDelete**](InstanceApi.md#applicationinstancedelete) | **DELETE** /api/ApplicationInstance/{id} |
|
||||
[**applicationInstanceDeleteAppConfigurationLink**](InstanceApi.md#applicationinstancedeleteappconfigurationlink) | **DELETE** /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId} |
|
||||
[**applicationInstanceGet**](InstanceApi.md#applicationinstanceget) | **GET** /api/ApplicationInstance |
|
||||
[**applicationInstanceGetAllApplicationLinkFromApplicationInstance**](InstanceApi.md#applicationinstancegetallapplicationlinkfromapplicationinstance) | **GET** /api/ApplicationInstance/{applicationInstanceId}/application-link |
|
||||
[**applicationInstanceUpdate**](InstanceApi.md#applicationinstanceupdate) | **PUT** /api/ApplicationInstance |
|
||||
[**applicationInstanceUpdateApplicationLink**](InstanceApi.md#applicationinstanceupdateapplicationlink) | **PUT** /api/ApplicationInstance/application-link |
|
||||
[**instanceCreateInstance**](InstanceApi.md#instancecreateinstance) | **POST** /api/Instance |
|
||||
[**instanceDeleteInstance**](InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} |
|
||||
[**instanceGet**](InstanceApi.md#instanceget) | **GET** /api/Instance |
|
||||
@ -25,356 +17,6 @@ Method | HTTP request | Description
|
||||
[**instanceUpdateinstance**](InstanceApi.md#instanceupdateinstance) | **PUT** /api/Instance |
|
||||
|
||||
|
||||
# **applicationInstanceAddConfigurationToApplicationInstance**
|
||||
> AppConfigurationLinkDTO applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceId, appConfigurationLinkDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
final appConfigurationLinkDTO = AppConfigurationLinkDTO(); // AppConfigurationLinkDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceAddConfigurationToApplicationInstance(applicationInstanceId, appConfigurationLinkDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceAddConfigurationToApplicationInstance: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId** | **String**| |
|
||||
**appConfigurationLinkDTO** | [**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceCreate**
|
||||
> ApplicationInstanceDTO applicationInstanceCreate(applicationInstanceDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final applicationInstanceDTO = ApplicationInstanceDTO(); // ApplicationInstanceDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceCreate(applicationInstanceDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceCreate: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceDTO** | [**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceDelete**
|
||||
> String applicationInstanceDelete(id)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final id = id_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceDelete(id);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceDelete: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
**String**
|
||||
|
||||
### 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)
|
||||
|
||||
# **applicationInstanceDeleteAppConfigurationLink**
|
||||
> String applicationInstanceDeleteAppConfigurationLink(applicationInstanceId, appConfigurationLinkId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
final appConfigurationLinkId = appConfigurationLinkId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceDeleteAppConfigurationLink(applicationInstanceId, appConfigurationLinkId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceDeleteAppConfigurationLink: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId** | **String**| |
|
||||
**appConfigurationLinkId** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
**String**
|
||||
|
||||
### 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)
|
||||
|
||||
# **applicationInstanceGet**
|
||||
> List<ApplicationInstanceDTO> applicationInstanceGet(instanceId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final instanceId = instanceId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceGet(instanceId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceGet: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**instanceId** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<ApplicationInstanceDTO>**](ApplicationInstanceDTO.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)
|
||||
|
||||
# **applicationInstanceGetAllApplicationLinkFromApplicationInstance**
|
||||
> List<AppConfigurationLinkDTO> applicationInstanceGetAllApplicationLinkFromApplicationInstance(applicationInstanceId2, applicationInstanceId)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final applicationInstanceId2 = applicationInstanceId_example; // String |
|
||||
final applicationInstanceId = applicationInstanceId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceGetAllApplicationLinkFromApplicationInstance(applicationInstanceId2, applicationInstanceId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceGetAllApplicationLinkFromApplicationInstance: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceId2** | **String**| |
|
||||
**applicationInstanceId** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<AppConfigurationLinkDTO>**](AppConfigurationLinkDTO.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)
|
||||
|
||||
# **applicationInstanceUpdate**
|
||||
> ApplicationInstanceDTO applicationInstanceUpdate(applicationInstanceDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final applicationInstanceDTO = ApplicationInstanceDTO(); // ApplicationInstanceDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceUpdate(applicationInstanceDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceUpdate: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**applicationInstanceDTO** | [**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ApplicationInstanceDTO**](ApplicationInstanceDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **applicationInstanceUpdateApplicationLink**
|
||||
> AppConfigurationLinkDTO applicationInstanceUpdateApplicationLink(appConfigurationLinkDTO)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:manager_api_new/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
final api_instance = InstanceApi();
|
||||
final appConfigurationLinkDTO = AppConfigurationLinkDTO(); // AppConfigurationLinkDTO |
|
||||
|
||||
try {
|
||||
final result = api_instance.applicationInstanceUpdateApplicationLink(appConfigurationLinkDTO);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling InstanceApi->applicationInstanceUpdateApplicationLink: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**appConfigurationLinkDTO** | [**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AppConfigurationLinkDTO**](AppConfigurationLinkDTO.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearer](../README.md#bearer)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
# **instanceCreateInstance**
|
||||
> InstanceDTO instanceCreateInstance(instanceDTO)
|
||||
|
||||
|
||||
@ -18,6 +18,7 @@ Name | Type | Description | Notes
|
||||
**isTablet** | **bool** | | [optional]
|
||||
**isWeb** | **bool** | | [optional]
|
||||
**isVR** | **bool** | | [optional]
|
||||
**applicationInstanceDTOs** | [**List<ApplicationInstanceDTO>**](ApplicationInstanceDTO.md) | | [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)
|
||||
|
||||
|
||||
@ -28,6 +28,7 @@ part 'auth/oauth.dart';
|
||||
part 'auth/http_basic_auth.dart';
|
||||
part 'auth/http_bearer_auth.dart';
|
||||
|
||||
part 'api/application_instance_api.dart';
|
||||
part 'api/authentication_api.dart';
|
||||
part 'api/configuration_api.dart';
|
||||
part 'api/device_api.dart';
|
||||
@ -46,6 +47,8 @@ part 'model/app_configuration_link.dart';
|
||||
part 'model/app_configuration_link_application_instance.dart';
|
||||
part 'model/app_configuration_link_configuration.dart';
|
||||
part 'model/app_configuration_link_dto.dart';
|
||||
part 'model/app_configuration_link_dto_application_instance.dart';
|
||||
part 'model/app_configuration_link_dto_configuration.dart';
|
||||
part 'model/app_type.dart';
|
||||
part 'model/application_instance.dart';
|
||||
part 'model/application_instance_dto.dart';
|
||||
|
||||
492
manager_api_new/lib/api/application_instance_api.dart
Normal file
492
manager_api_new/lib/api/application_instance_api.dart
Normal file
@ -0,0 +1,492 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class ApplicationInstanceApi {
|
||||
ApplicationInstanceApi([ApiClient? apiClient])
|
||||
: apiClient = apiClient ?? defaultApiClient;
|
||||
|
||||
final ApiClient apiClient;
|
||||
|
||||
/// Performs an HTTP 'POST /api/ApplicationInstance/{applicationInstanceId}/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<Response>
|
||||
applicationInstanceAddConfigurationToApplicationInstanceWithHttpInfo(
|
||||
String applicationInstanceId,
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = appConfigurationLinkDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'POST',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<AppConfigurationLinkDTO?>
|
||||
applicationInstanceAddConfigurationToApplicationInstance(
|
||||
String applicationInstanceId,
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
final response =
|
||||
await applicationInstanceAddConfigurationToApplicationInstanceWithHttpInfo(
|
||||
applicationInstanceId,
|
||||
appConfigurationLinkDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'AppConfigurationLinkDTO',
|
||||
) as AppConfigurationLinkDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'POST /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<Response> applicationInstanceCreateWithHttpInfo(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = applicationInstanceDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'POST',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<ApplicationInstanceDTO?> applicationInstanceCreate(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceCreateWithHttpInfo(
|
||||
applicationInstanceDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'ApplicationInstanceDTO',
|
||||
) as ApplicationInstanceDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'DELETE /api/ApplicationInstance/{id}' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<Response> applicationInstanceDeleteWithHttpInfo(
|
||||
String id,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance/{id}'.replaceAll('{id}', id);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'DELETE',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<String?> applicationInstanceDelete(
|
||||
String id,
|
||||
) async {
|
||||
final response = await applicationInstanceDeleteWithHttpInfo(
|
||||
id,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'String',
|
||||
) as String;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'DELETE /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId}' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [String] appConfigurationLinkId (required):
|
||||
Future<Response> applicationInstanceDeleteAppConfigurationLinkWithHttpInfo(
|
||||
String applicationInstanceId,
|
||||
String appConfigurationLinkId,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId}'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId)
|
||||
.replaceAll('{appConfigurationLinkId}', appConfigurationLinkId);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'DELETE',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [String] appConfigurationLinkId (required):
|
||||
Future<String?> applicationInstanceDeleteAppConfigurationLink(
|
||||
String applicationInstanceId,
|
||||
String appConfigurationLinkId,
|
||||
) async {
|
||||
final response =
|
||||
await applicationInstanceDeleteAppConfigurationLinkWithHttpInfo(
|
||||
applicationInstanceId,
|
||||
appConfigurationLinkId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'String',
|
||||
) as String;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<Response> applicationInstanceGetWithHttpInfo({
|
||||
String? instanceId,
|
||||
}) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
if (instanceId != null) {
|
||||
queryParams.addAll(_queryParams('', 'instanceId', instanceId));
|
||||
}
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'GET',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<List<ApplicationInstanceDTO>?> applicationInstanceGet({
|
||||
String? instanceId,
|
||||
}) async {
|
||||
final response = await applicationInstanceGetWithHttpInfo(
|
||||
instanceId: instanceId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
final responseBody = await _decodeBodyBytes(response);
|
||||
return (await apiClient.deserializeAsync(
|
||||
responseBody, 'List<ApplicationInstanceDTO>') as List)
|
||||
.cast<ApplicationInstanceDTO>()
|
||||
.toList(growable: false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /api/ApplicationInstance/{applicationInstanceId}/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
Future<Response>
|
||||
applicationInstanceGetAllApplicationLinkFromApplicationInstanceWithHttpInfo(
|
||||
String applicationInstanceId,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'GET',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
Future<List<AppConfigurationLinkDTO>?>
|
||||
applicationInstanceGetAllApplicationLinkFromApplicationInstance(
|
||||
String applicationInstanceId,
|
||||
) async {
|
||||
final response =
|
||||
await applicationInstanceGetAllApplicationLinkFromApplicationInstanceWithHttpInfo(
|
||||
applicationInstanceId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
final responseBody = await _decodeBodyBytes(response);
|
||||
return (await apiClient.deserializeAsync(
|
||||
responseBody, 'List<AppConfigurationLinkDTO>') as List)
|
||||
.cast<AppConfigurationLinkDTO>()
|
||||
.toList(growable: false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'PUT /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<Response> applicationInstanceUpdateWithHttpInfo(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = applicationInstanceDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'PUT',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<ApplicationInstanceDTO?> applicationInstanceUpdate(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceUpdateWithHttpInfo(
|
||||
applicationInstanceDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'ApplicationInstanceDTO',
|
||||
) as ApplicationInstanceDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'PUT /api/ApplicationInstance/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<Response> applicationInstanceUpdateApplicationLinkWithHttpInfo(
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance/application-link';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = appConfigurationLinkDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'PUT',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<AppConfigurationLinkDTO?> applicationInstanceUpdateApplicationLink(
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceUpdateApplicationLinkWithHttpInfo(
|
||||
appConfigurationLinkDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'AppConfigurationLinkDTO',
|
||||
) as AppConfigurationLinkDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -16,492 +16,6 @@ class InstanceApi {
|
||||
|
||||
final ApiClient apiClient;
|
||||
|
||||
/// Performs an HTTP 'POST /api/ApplicationInstance/{applicationInstanceId}/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<Response>
|
||||
applicationInstanceAddConfigurationToApplicationInstanceWithHttpInfo(
|
||||
String applicationInstanceId,
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = appConfigurationLinkDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'POST',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<AppConfigurationLinkDTO?>
|
||||
applicationInstanceAddConfigurationToApplicationInstance(
|
||||
String applicationInstanceId,
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
final response =
|
||||
await applicationInstanceAddConfigurationToApplicationInstanceWithHttpInfo(
|
||||
applicationInstanceId,
|
||||
appConfigurationLinkDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'AppConfigurationLinkDTO',
|
||||
) as AppConfigurationLinkDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'POST /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<Response> applicationInstanceCreateWithHttpInfo(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = applicationInstanceDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'POST',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<ApplicationInstanceDTO?> applicationInstanceCreate(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceCreateWithHttpInfo(
|
||||
applicationInstanceDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'ApplicationInstanceDTO',
|
||||
) as ApplicationInstanceDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'DELETE /api/ApplicationInstance/{id}' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<Response> applicationInstanceDeleteWithHttpInfo(
|
||||
String id,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance/{id}'.replaceAll('{id}', id);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'DELETE',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<String?> applicationInstanceDelete(
|
||||
String id,
|
||||
) async {
|
||||
final response = await applicationInstanceDeleteWithHttpInfo(
|
||||
id,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'String',
|
||||
) as String;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'DELETE /api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId}' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [String] appConfigurationLinkId (required):
|
||||
Future<Response> applicationInstanceDeleteAppConfigurationLinkWithHttpInfo(
|
||||
String applicationInstanceId,
|
||||
String appConfigurationLinkId,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link/{appConfigurationLinkId}'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId)
|
||||
.replaceAll('{appConfigurationLinkId}', appConfigurationLinkId);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'DELETE',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId (required):
|
||||
///
|
||||
/// * [String] appConfigurationLinkId (required):
|
||||
Future<String?> applicationInstanceDeleteAppConfigurationLink(
|
||||
String applicationInstanceId,
|
||||
String appConfigurationLinkId,
|
||||
) async {
|
||||
final response =
|
||||
await applicationInstanceDeleteAppConfigurationLinkWithHttpInfo(
|
||||
applicationInstanceId,
|
||||
appConfigurationLinkId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'String',
|
||||
) as String;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<Response> applicationInstanceGetWithHttpInfo({
|
||||
String? instanceId,
|
||||
}) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
if (instanceId != null) {
|
||||
queryParams.addAll(_queryParams('', 'instanceId', instanceId));
|
||||
}
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'GET',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<List<ApplicationInstanceDTO>?> applicationInstanceGet({
|
||||
String? instanceId,
|
||||
}) async {
|
||||
final response = await applicationInstanceGetWithHttpInfo(
|
||||
instanceId: instanceId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
final responseBody = await _decodeBodyBytes(response);
|
||||
return (await apiClient.deserializeAsync(
|
||||
responseBody, 'List<ApplicationInstanceDTO>') as List)
|
||||
.cast<ApplicationInstanceDTO>()
|
||||
.toList(growable: false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /api/ApplicationInstance/{applicationInstanceId}/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId2 (required):
|
||||
///
|
||||
/// * [String] applicationInstanceId:
|
||||
Future<Response>
|
||||
applicationInstanceGetAllApplicationLinkFromApplicationInstanceWithHttpInfo(
|
||||
String applicationInstanceId2, {
|
||||
String? applicationInstanceId,
|
||||
}) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path =
|
||||
r'/api/ApplicationInstance/{applicationInstanceId}/application-link'
|
||||
.replaceAll('{applicationInstanceId}', applicationInstanceId2);
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
if (applicationInstanceId != null) {
|
||||
queryParams.addAll(
|
||||
_queryParams('', 'applicationInstanceId', applicationInstanceId));
|
||||
}
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'GET',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] applicationInstanceId2 (required):
|
||||
///
|
||||
/// * [String] applicationInstanceId:
|
||||
Future<List<AppConfigurationLinkDTO>?>
|
||||
applicationInstanceGetAllApplicationLinkFromApplicationInstance(
|
||||
String applicationInstanceId2, {
|
||||
String? applicationInstanceId,
|
||||
}) async {
|
||||
final response =
|
||||
await applicationInstanceGetAllApplicationLinkFromApplicationInstanceWithHttpInfo(
|
||||
applicationInstanceId2,
|
||||
applicationInstanceId: applicationInstanceId,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
final responseBody = await _decodeBodyBytes(response);
|
||||
return (await apiClient.deserializeAsync(
|
||||
responseBody, 'List<AppConfigurationLinkDTO>') as List)
|
||||
.cast<AppConfigurationLinkDTO>()
|
||||
.toList(growable: false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'PUT /api/ApplicationInstance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<Response> applicationInstanceUpdateWithHttpInfo(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = applicationInstanceDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'PUT',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [ApplicationInstanceDTO] applicationInstanceDTO (required):
|
||||
Future<ApplicationInstanceDTO?> applicationInstanceUpdate(
|
||||
ApplicationInstanceDTO applicationInstanceDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceUpdateWithHttpInfo(
|
||||
applicationInstanceDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'ApplicationInstanceDTO',
|
||||
) as ApplicationInstanceDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'PUT /api/ApplicationInstance/application-link' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<Response> applicationInstanceUpdateApplicationLinkWithHttpInfo(
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/ApplicationInstance/application-link';
|
||||
|
||||
// ignore: prefer_final_locals
|
||||
Object? postBody = appConfigurationLinkDTO;
|
||||
|
||||
final queryParams = <QueryParam>[];
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
const contentTypes = <String>['application/json'];
|
||||
|
||||
return apiClient.invokeAPI(
|
||||
path,
|
||||
'PUT',
|
||||
queryParams,
|
||||
postBody,
|
||||
headerParams,
|
||||
formParams,
|
||||
contentTypes.isEmpty ? null : contentTypes.first,
|
||||
);
|
||||
}
|
||||
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [AppConfigurationLinkDTO] appConfigurationLinkDTO (required):
|
||||
Future<AppConfigurationLinkDTO?> applicationInstanceUpdateApplicationLink(
|
||||
AppConfigurationLinkDTO appConfigurationLinkDTO,
|
||||
) async {
|
||||
final response = await applicationInstanceUpdateApplicationLinkWithHttpInfo(
|
||||
appConfigurationLinkDTO,
|
||||
);
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _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.isNotEmpty &&
|
||||
response.statusCode != HttpStatus.noContent) {
|
||||
return await apiClient.deserializeAsync(
|
||||
await _decodeBodyBytes(response),
|
||||
'AppConfigurationLinkDTO',
|
||||
) as AppConfigurationLinkDTO;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'POST /api/Instance' operation and returns the [Response].
|
||||
/// Parameters:
|
||||
///
|
||||
|
||||
@ -241,6 +241,10 @@ class ApiClient {
|
||||
return AppConfigurationLinkConfiguration.fromJson(value);
|
||||
case 'AppConfigurationLinkDTO':
|
||||
return AppConfigurationLinkDTO.fromJson(value);
|
||||
case 'AppConfigurationLinkDTOApplicationInstance':
|
||||
return AppConfigurationLinkDTOApplicationInstance.fromJson(value);
|
||||
case 'AppConfigurationLinkDTOConfiguration':
|
||||
return AppConfigurationLinkDTOConfiguration.fromJson(value);
|
||||
case 'AppType':
|
||||
return AppTypeTypeTransformer().decode(value);
|
||||
case 'ApplicationInstance':
|
||||
|
||||
@ -15,7 +15,9 @@ class AppConfigurationLinkDTO {
|
||||
AppConfigurationLinkDTO({
|
||||
this.id,
|
||||
this.configurationId,
|
||||
this.configuration,
|
||||
this.applicationInstanceId,
|
||||
this.applicationInstance,
|
||||
this.order,
|
||||
this.isActive,
|
||||
this.weightMasonryGrid,
|
||||
@ -25,8 +27,12 @@ class AppConfigurationLinkDTO {
|
||||
|
||||
String? configurationId;
|
||||
|
||||
AppConfigurationLinkDTOConfiguration? configuration;
|
||||
|
||||
String? applicationInstanceId;
|
||||
|
||||
AppConfigurationLinkDTOApplicationInstance? applicationInstance;
|
||||
|
||||
int? order;
|
||||
|
||||
///
|
||||
@ -45,7 +51,9 @@ class AppConfigurationLinkDTO {
|
||||
other is AppConfigurationLinkDTO &&
|
||||
other.id == id &&
|
||||
other.configurationId == configurationId &&
|
||||
other.configuration == configuration &&
|
||||
other.applicationInstanceId == applicationInstanceId &&
|
||||
other.applicationInstance == applicationInstance &&
|
||||
other.order == order &&
|
||||
other.isActive == isActive &&
|
||||
other.weightMasonryGrid == weightMasonryGrid;
|
||||
@ -55,14 +63,16 @@ class AppConfigurationLinkDTO {
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(configurationId == null ? 0 : configurationId!.hashCode) +
|
||||
(configuration == null ? 0 : configuration!.hashCode) +
|
||||
(applicationInstanceId == null ? 0 : applicationInstanceId!.hashCode) +
|
||||
(applicationInstance == null ? 0 : applicationInstance!.hashCode) +
|
||||
(order == null ? 0 : order!.hashCode) +
|
||||
(isActive == null ? 0 : isActive!.hashCode) +
|
||||
(weightMasonryGrid == null ? 0 : weightMasonryGrid!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'AppConfigurationLinkDTO[id=$id, configurationId=$configurationId, applicationInstanceId=$applicationInstanceId, order=$order, isActive=$isActive, weightMasonryGrid=$weightMasonryGrid]';
|
||||
'AppConfigurationLinkDTO[id=$id, configurationId=$configurationId, configuration=$configuration, applicationInstanceId=$applicationInstanceId, applicationInstance=$applicationInstance, order=$order, isActive=$isActive, weightMasonryGrid=$weightMasonryGrid]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@ -76,11 +86,21 @@ class AppConfigurationLinkDTO {
|
||||
} else {
|
||||
json[r'configurationId'] = null;
|
||||
}
|
||||
if (this.configuration != null) {
|
||||
json[r'configuration'] = this.configuration;
|
||||
} else {
|
||||
json[r'configuration'] = null;
|
||||
}
|
||||
if (this.applicationInstanceId != null) {
|
||||
json[r'applicationInstanceId'] = this.applicationInstanceId;
|
||||
} else {
|
||||
json[r'applicationInstanceId'] = null;
|
||||
}
|
||||
if (this.applicationInstance != null) {
|
||||
json[r'applicationInstance'] = this.applicationInstance;
|
||||
} else {
|
||||
json[r'applicationInstance'] = null;
|
||||
}
|
||||
if (this.order != null) {
|
||||
json[r'order'] = this.order;
|
||||
} else {
|
||||
@ -122,8 +142,13 @@ class AppConfigurationLinkDTO {
|
||||
return AppConfigurationLinkDTO(
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
configurationId: mapValueOfType<String>(json, r'configurationId'),
|
||||
configuration: AppConfigurationLinkDTOConfiguration.fromJson(
|
||||
json[r'configuration']),
|
||||
applicationInstanceId:
|
||||
mapValueOfType<String>(json, r'applicationInstanceId'),
|
||||
applicationInstance:
|
||||
AppConfigurationLinkDTOApplicationInstance.fromJson(
|
||||
json[r'applicationInstance']),
|
||||
order: mapValueOfType<int>(json, r'order'),
|
||||
isActive: mapValueOfType<bool>(json, r'isActive'),
|
||||
weightMasonryGrid: mapValueOfType<int>(json, r'weightMasonryGrid'),
|
||||
|
||||
@ -0,0 +1,330 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class AppConfigurationLinkDTOApplicationInstance {
|
||||
/// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance.
|
||||
AppConfigurationLinkDTOApplicationInstance({
|
||||
this.id,
|
||||
this.instanceId,
|
||||
this.appType,
|
||||
this.configurations = const [],
|
||||
this.mainImageId,
|
||||
this.mainImageUrl,
|
||||
this.loaderImageId,
|
||||
this.loaderImageUrl,
|
||||
this.isDate,
|
||||
this.isHour,
|
||||
this.primaryColor,
|
||||
this.secondaryColor,
|
||||
this.roundedValue,
|
||||
this.screenPercentageSectionsMainPage,
|
||||
this.isSectionImageBackground,
|
||||
this.languages = const [],
|
||||
});
|
||||
|
||||
String? id;
|
||||
|
||||
String? instanceId;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
AppType? appType;
|
||||
|
||||
List<AppConfigurationLink>? configurations;
|
||||
|
||||
String? mainImageId;
|
||||
|
||||
String? mainImageUrl;
|
||||
|
||||
String? loaderImageId;
|
||||
|
||||
String? loaderImageUrl;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isDate;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isHour;
|
||||
|
||||
String? primaryColor;
|
||||
|
||||
String? secondaryColor;
|
||||
|
||||
int? roundedValue;
|
||||
|
||||
int? screenPercentageSectionsMainPage;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isSectionImageBackground;
|
||||
|
||||
List<String>? languages;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is AppConfigurationLinkDTOApplicationInstance &&
|
||||
other.id == id &&
|
||||
other.instanceId == instanceId &&
|
||||
other.appType == appType &&
|
||||
_deepEquality.equals(other.configurations, configurations) &&
|
||||
other.mainImageId == mainImageId &&
|
||||
other.mainImageUrl == mainImageUrl &&
|
||||
other.loaderImageId == loaderImageId &&
|
||||
other.loaderImageUrl == loaderImageUrl &&
|
||||
other.isDate == isDate &&
|
||||
other.isHour == isHour &&
|
||||
other.primaryColor == primaryColor &&
|
||||
other.secondaryColor == secondaryColor &&
|
||||
other.roundedValue == roundedValue &&
|
||||
other.screenPercentageSectionsMainPage ==
|
||||
screenPercentageSectionsMainPage &&
|
||||
other.isSectionImageBackground == isSectionImageBackground &&
|
||||
_deepEquality.equals(other.languages, languages);
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(instanceId == null ? 0 : instanceId!.hashCode) +
|
||||
(appType == null ? 0 : appType!.hashCode) +
|
||||
(configurations == null ? 0 : configurations!.hashCode) +
|
||||
(mainImageId == null ? 0 : mainImageId!.hashCode) +
|
||||
(mainImageUrl == null ? 0 : mainImageUrl!.hashCode) +
|
||||
(loaderImageId == null ? 0 : loaderImageId!.hashCode) +
|
||||
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
|
||||
(isDate == null ? 0 : isDate!.hashCode) +
|
||||
(isHour == null ? 0 : isHour!.hashCode) +
|
||||
(primaryColor == null ? 0 : primaryColor!.hashCode) +
|
||||
(secondaryColor == null ? 0 : secondaryColor!.hashCode) +
|
||||
(roundedValue == null ? 0 : roundedValue!.hashCode) +
|
||||
(screenPercentageSectionsMainPage == null
|
||||
? 0
|
||||
: screenPercentageSectionsMainPage!.hashCode) +
|
||||
(isSectionImageBackground == null
|
||||
? 0
|
||||
: isSectionImageBackground!.hashCode) +
|
||||
(languages == null ? 0 : languages!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'AppConfigurationLinkDTOApplicationInstance[id=$id, instanceId=$instanceId, appType=$appType, configurations=$configurations, mainImageId=$mainImageId, mainImageUrl=$mainImageUrl, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, isDate=$isDate, isHour=$isHour, primaryColor=$primaryColor, secondaryColor=$secondaryColor, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage, isSectionImageBackground=$isSectionImageBackground, languages=$languages]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.id != null) {
|
||||
json[r'id'] = this.id;
|
||||
} else {
|
||||
json[r'id'] = null;
|
||||
}
|
||||
if (this.instanceId != null) {
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
} else {
|
||||
json[r'instanceId'] = null;
|
||||
}
|
||||
if (this.appType != null) {
|
||||
json[r'appType'] = this.appType;
|
||||
} else {
|
||||
json[r'appType'] = null;
|
||||
}
|
||||
if (this.configurations != null) {
|
||||
json[r'configurations'] = this.configurations;
|
||||
} else {
|
||||
json[r'configurations'] = null;
|
||||
}
|
||||
if (this.mainImageId != null) {
|
||||
json[r'mainImageId'] = this.mainImageId;
|
||||
} else {
|
||||
json[r'mainImageId'] = null;
|
||||
}
|
||||
if (this.mainImageUrl != null) {
|
||||
json[r'mainImageUrl'] = this.mainImageUrl;
|
||||
} else {
|
||||
json[r'mainImageUrl'] = null;
|
||||
}
|
||||
if (this.loaderImageId != null) {
|
||||
json[r'loaderImageId'] = this.loaderImageId;
|
||||
} else {
|
||||
json[r'loaderImageId'] = null;
|
||||
}
|
||||
if (this.loaderImageUrl != null) {
|
||||
json[r'loaderImageUrl'] = this.loaderImageUrl;
|
||||
} else {
|
||||
json[r'loaderImageUrl'] = null;
|
||||
}
|
||||
if (this.isDate != null) {
|
||||
json[r'isDate'] = this.isDate;
|
||||
} else {
|
||||
json[r'isDate'] = null;
|
||||
}
|
||||
if (this.isHour != null) {
|
||||
json[r'isHour'] = this.isHour;
|
||||
} else {
|
||||
json[r'isHour'] = null;
|
||||
}
|
||||
if (this.primaryColor != null) {
|
||||
json[r'primaryColor'] = this.primaryColor;
|
||||
} else {
|
||||
json[r'primaryColor'] = null;
|
||||
}
|
||||
if (this.secondaryColor != null) {
|
||||
json[r'secondaryColor'] = this.secondaryColor;
|
||||
} else {
|
||||
json[r'secondaryColor'] = null;
|
||||
}
|
||||
if (this.roundedValue != null) {
|
||||
json[r'roundedValue'] = this.roundedValue;
|
||||
} else {
|
||||
json[r'roundedValue'] = null;
|
||||
}
|
||||
if (this.screenPercentageSectionsMainPage != null) {
|
||||
json[r'screenPercentageSectionsMainPage'] =
|
||||
this.screenPercentageSectionsMainPage;
|
||||
} else {
|
||||
json[r'screenPercentageSectionsMainPage'] = null;
|
||||
}
|
||||
if (this.isSectionImageBackground != null) {
|
||||
json[r'isSectionImageBackground'] = this.isSectionImageBackground;
|
||||
} else {
|
||||
json[r'isSectionImageBackground'] = null;
|
||||
}
|
||||
if (this.languages != null) {
|
||||
json[r'languages'] = this.languages;
|
||||
} else {
|
||||
json[r'languages'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static AppConfigurationLinkDTOApplicationInstance? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return AppConfigurationLinkDTOApplicationInstance(
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||
appType: AppType.fromJson(json[r'appType']),
|
||||
configurations:
|
||||
AppConfigurationLink.listFromJson(json[r'configurations']),
|
||||
mainImageId: mapValueOfType<String>(json, r'mainImageId'),
|
||||
mainImageUrl: mapValueOfType<String>(json, r'mainImageUrl'),
|
||||
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
|
||||
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
|
||||
isDate: mapValueOfType<bool>(json, r'isDate'),
|
||||
isHour: mapValueOfType<bool>(json, r'isHour'),
|
||||
primaryColor: mapValueOfType<String>(json, r'primaryColor'),
|
||||
secondaryColor: mapValueOfType<String>(json, r'secondaryColor'),
|
||||
roundedValue: mapValueOfType<int>(json, r'roundedValue'),
|
||||
screenPercentageSectionsMainPage:
|
||||
mapValueOfType<int>(json, r'screenPercentageSectionsMainPage'),
|
||||
isSectionImageBackground:
|
||||
mapValueOfType<bool>(json, r'isSectionImageBackground'),
|
||||
languages: json[r'languages'] is Iterable
|
||||
? (json[r'languages'] as Iterable)
|
||||
.cast<String>()
|
||||
.toList(growable: false)
|
||||
: const [],
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<AppConfigurationLinkDTOApplicationInstance> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <AppConfigurationLinkDTOApplicationInstance>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = AppConfigurationLinkDTOApplicationInstance.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, AppConfigurationLinkDTOApplicationInstance> mapFromJson(
|
||||
dynamic json) {
|
||||
final map = <String, AppConfigurationLinkDTOApplicationInstance>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value =
|
||||
AppConfigurationLinkDTOApplicationInstance.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of AppConfigurationLinkDTOApplicationInstance-objects as value to a dart map
|
||||
static Map<String, List<AppConfigurationLinkDTOApplicationInstance>>
|
||||
mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<AppConfigurationLinkDTOApplicationInstance>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] =
|
||||
AppConfigurationLinkDTOApplicationInstance.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -0,0 +1,290 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class AppConfigurationLinkDTOConfiguration {
|
||||
/// Returns a new [AppConfigurationLinkDTOConfiguration] instance.
|
||||
AppConfigurationLinkDTOConfiguration({
|
||||
this.id,
|
||||
this.instanceId,
|
||||
this.label,
|
||||
this.title = const [],
|
||||
this.imageId,
|
||||
this.imageSource,
|
||||
this.primaryColor,
|
||||
this.secondaryColor,
|
||||
this.languages = const [],
|
||||
this.dateCreation,
|
||||
this.isOffline,
|
||||
this.sectionIds = const [],
|
||||
this.loaderImageId,
|
||||
this.loaderImageUrl,
|
||||
});
|
||||
|
||||
String? id;
|
||||
|
||||
String? instanceId;
|
||||
|
||||
String? label;
|
||||
|
||||
List<TranslationDTO>? title;
|
||||
|
||||
String? imageId;
|
||||
|
||||
String? imageSource;
|
||||
|
||||
String? primaryColor;
|
||||
|
||||
String? secondaryColor;
|
||||
|
||||
List<String>? languages;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
DateTime? dateCreation;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isOffline;
|
||||
|
||||
List<String>? sectionIds;
|
||||
|
||||
String? loaderImageId;
|
||||
|
||||
String? loaderImageUrl;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is AppConfigurationLinkDTOConfiguration &&
|
||||
other.id == id &&
|
||||
other.instanceId == instanceId &&
|
||||
other.label == label &&
|
||||
_deepEquality.equals(other.title, title) &&
|
||||
other.imageId == imageId &&
|
||||
other.imageSource == imageSource &&
|
||||
other.primaryColor == primaryColor &&
|
||||
other.secondaryColor == secondaryColor &&
|
||||
_deepEquality.equals(other.languages, languages) &&
|
||||
other.dateCreation == dateCreation &&
|
||||
other.isOffline == isOffline &&
|
||||
_deepEquality.equals(other.sectionIds, sectionIds) &&
|
||||
other.loaderImageId == loaderImageId &&
|
||||
other.loaderImageUrl == loaderImageUrl;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(instanceId == null ? 0 : instanceId!.hashCode) +
|
||||
(label == null ? 0 : label!.hashCode) +
|
||||
(title == null ? 0 : title!.hashCode) +
|
||||
(imageId == null ? 0 : imageId!.hashCode) +
|
||||
(imageSource == null ? 0 : imageSource!.hashCode) +
|
||||
(primaryColor == null ? 0 : primaryColor!.hashCode) +
|
||||
(secondaryColor == null ? 0 : secondaryColor!.hashCode) +
|
||||
(languages == null ? 0 : languages!.hashCode) +
|
||||
(dateCreation == null ? 0 : dateCreation!.hashCode) +
|
||||
(isOffline == null ? 0 : isOffline!.hashCode) +
|
||||
(sectionIds == null ? 0 : sectionIds!.hashCode) +
|
||||
(loaderImageId == null ? 0 : loaderImageId!.hashCode) +
|
||||
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'AppConfigurationLinkDTOConfiguration[id=$id, instanceId=$instanceId, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isOffline=$isOffline, sectionIds=$sectionIds, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.id != null) {
|
||||
json[r'id'] = this.id;
|
||||
} else {
|
||||
json[r'id'] = null;
|
||||
}
|
||||
if (this.instanceId != null) {
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
} else {
|
||||
json[r'instanceId'] = null;
|
||||
}
|
||||
if (this.label != null) {
|
||||
json[r'label'] = this.label;
|
||||
} else {
|
||||
json[r'label'] = null;
|
||||
}
|
||||
if (this.title != null) {
|
||||
json[r'title'] = this.title;
|
||||
} else {
|
||||
json[r'title'] = null;
|
||||
}
|
||||
if (this.imageId != null) {
|
||||
json[r'imageId'] = this.imageId;
|
||||
} else {
|
||||
json[r'imageId'] = null;
|
||||
}
|
||||
if (this.imageSource != null) {
|
||||
json[r'imageSource'] = this.imageSource;
|
||||
} else {
|
||||
json[r'imageSource'] = null;
|
||||
}
|
||||
if (this.primaryColor != null) {
|
||||
json[r'primaryColor'] = this.primaryColor;
|
||||
} else {
|
||||
json[r'primaryColor'] = null;
|
||||
}
|
||||
if (this.secondaryColor != null) {
|
||||
json[r'secondaryColor'] = this.secondaryColor;
|
||||
} else {
|
||||
json[r'secondaryColor'] = null;
|
||||
}
|
||||
if (this.languages != null) {
|
||||
json[r'languages'] = this.languages;
|
||||
} else {
|
||||
json[r'languages'] = null;
|
||||
}
|
||||
if (this.dateCreation != null) {
|
||||
json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String();
|
||||
} else {
|
||||
json[r'dateCreation'] = null;
|
||||
}
|
||||
if (this.isOffline != null) {
|
||||
json[r'isOffline'] = this.isOffline;
|
||||
} else {
|
||||
json[r'isOffline'] = null;
|
||||
}
|
||||
if (this.sectionIds != null) {
|
||||
json[r'sectionIds'] = this.sectionIds;
|
||||
} else {
|
||||
json[r'sectionIds'] = null;
|
||||
}
|
||||
if (this.loaderImageId != null) {
|
||||
json[r'loaderImageId'] = this.loaderImageId;
|
||||
} else {
|
||||
json[r'loaderImageId'] = null;
|
||||
}
|
||||
if (this.loaderImageUrl != null) {
|
||||
json[r'loaderImageUrl'] = this.loaderImageUrl;
|
||||
} else {
|
||||
json[r'loaderImageUrl'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [AppConfigurationLinkDTOConfiguration] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static AppConfigurationLinkDTOConfiguration? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "AppConfigurationLinkDTOConfiguration[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "AppConfigurationLinkDTOConfiguration[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return AppConfigurationLinkDTOConfiguration(
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||
label: mapValueOfType<String>(json, r'label'),
|
||||
title: TranslationDTO.listFromJson(json[r'title']),
|
||||
imageId: mapValueOfType<String>(json, r'imageId'),
|
||||
imageSource: mapValueOfType<String>(json, r'imageSource'),
|
||||
primaryColor: mapValueOfType<String>(json, r'primaryColor'),
|
||||
secondaryColor: mapValueOfType<String>(json, r'secondaryColor'),
|
||||
languages: json[r'languages'] is Iterable
|
||||
? (json[r'languages'] as Iterable)
|
||||
.cast<String>()
|
||||
.toList(growable: false)
|
||||
: const [],
|
||||
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
||||
isOffline: mapValueOfType<bool>(json, r'isOffline'),
|
||||
sectionIds: json[r'sectionIds'] is Iterable
|
||||
? (json[r'sectionIds'] as Iterable)
|
||||
.cast<String>()
|
||||
.toList(growable: false)
|
||||
: const [],
|
||||
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
|
||||
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<AppConfigurationLinkDTOConfiguration> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <AppConfigurationLinkDTOConfiguration>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = AppConfigurationLinkDTOConfiguration.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, AppConfigurationLinkDTOConfiguration> mapFromJson(
|
||||
dynamic json) {
|
||||
final map = <String, AppConfigurationLinkDTOConfiguration>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value =
|
||||
AppConfigurationLinkDTOConfiguration.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of AppConfigurationLinkDTOConfiguration-objects as value to a dart map
|
||||
static Map<String, List<AppConfigurationLinkDTOConfiguration>>
|
||||
mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<AppConfigurationLinkDTOConfiguration>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = AppConfigurationLinkDTOConfiguration.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -23,17 +23,17 @@ class AppType {
|
||||
|
||||
int toJson() => value;
|
||||
|
||||
static const number0 = AppType._(0);
|
||||
static const number1 = AppType._(1);
|
||||
static const number2 = AppType._(2);
|
||||
static const number3 = AppType._(3);
|
||||
static const Mobile = AppType._(0);
|
||||
static const Tablet = AppType._(1);
|
||||
static const Web = AppType._(2);
|
||||
static const VR = AppType._(3);
|
||||
|
||||
/// List of all possible values in this [enum][AppType].
|
||||
static const values = <AppType>[
|
||||
number0,
|
||||
number1,
|
||||
number2,
|
||||
number3,
|
||||
Mobile,
|
||||
Tablet,
|
||||
Web,
|
||||
VR,
|
||||
];
|
||||
|
||||
static AppType? fromJson(dynamic value) =>
|
||||
@ -76,20 +76,32 @@ class AppTypeTypeTransformer {
|
||||
/// and users are still using an old app with the old code.
|
||||
AppType? decode(dynamic data, {bool allowNull = true}) {
|
||||
if (data != null) {
|
||||
switch (data) {
|
||||
case 0:
|
||||
return AppType.number0;
|
||||
case 1:
|
||||
return AppType.number1;
|
||||
case 2:
|
||||
return AppType.number2;
|
||||
case 3:
|
||||
return AppType.number3;
|
||||
|
||||
if(data.runtimeType == String) {
|
||||
switch (data.toString()) {
|
||||
case r'Mobile': return AppType.Mobile;
|
||||
case r'Tablet': return AppType.Tablet;
|
||||
case r'Web': return AppType.Web;
|
||||
case r'VR': return AppType.VR;
|
||||
default:
|
||||
if (!allowNull) {
|
||||
throw ArgumentError('Unknown enum value to decode: $data');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(data.runtimeType == int) {
|
||||
switch (data) {
|
||||
case 0: return AppType.Mobile;
|
||||
case 1: return AppType.Tablet;
|
||||
case 2: return AppType.Web;
|
||||
case 3: return AppType.VR;
|
||||
default:
|
||||
if (!allowNull) {
|
||||
throw ArgumentError('Unknown enum value to decode: $data');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ class InstanceDTO {
|
||||
this.isTablet,
|
||||
this.isWeb,
|
||||
this.isVR,
|
||||
this.applicationInstanceDTOs = const [],
|
||||
});
|
||||
|
||||
String? id;
|
||||
@ -81,6 +82,8 @@ class InstanceDTO {
|
||||
///
|
||||
bool? isVR;
|
||||
|
||||
List<ApplicationInstanceDTO>? applicationInstanceDTOs;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
@ -94,7 +97,9 @@ class InstanceDTO {
|
||||
other.isMobile == isMobile &&
|
||||
other.isTablet == isTablet &&
|
||||
other.isWeb == isWeb &&
|
||||
other.isVR == isVR;
|
||||
other.isVR == isVR &&
|
||||
_deepEquality.equals(
|
||||
other.applicationInstanceDTOs, applicationInstanceDTOs);
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@ -108,11 +113,12 @@ class InstanceDTO {
|
||||
(isMobile == null ? 0 : isMobile!.hashCode) +
|
||||
(isTablet == null ? 0 : isTablet!.hashCode) +
|
||||
(isWeb == null ? 0 : isWeb!.hashCode) +
|
||||
(isVR == null ? 0 : isVR!.hashCode);
|
||||
(isVR == null ? 0 : isVR!.hashCode) +
|
||||
(applicationInstanceDTOs == null ? 0 : applicationInstanceDTOs!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'InstanceDTO[id=$id, name=$name, dateCreation=$dateCreation, pinCode=$pinCode, isPushNotification=$isPushNotification, isStatistic=$isStatistic, isMobile=$isMobile, isTablet=$isTablet, isWeb=$isWeb, isVR=$isVR]';
|
||||
'InstanceDTO[id=$id, name=$name, dateCreation=$dateCreation, pinCode=$pinCode, isPushNotification=$isPushNotification, isStatistic=$isStatistic, isMobile=$isMobile, isTablet=$isTablet, isWeb=$isWeb, isVR=$isVR, applicationInstanceDTOs=$applicationInstanceDTOs]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@ -166,6 +172,11 @@ class InstanceDTO {
|
||||
} else {
|
||||
json[r'isVR'] = null;
|
||||
}
|
||||
if (this.applicationInstanceDTOs != null) {
|
||||
json[r'applicationInstanceDTOs'] = this.applicationInstanceDTOs;
|
||||
} else {
|
||||
json[r'applicationInstanceDTOs'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@ -200,6 +211,8 @@ class InstanceDTO {
|
||||
isTablet: mapValueOfType<bool>(json, r'isTablet'),
|
||||
isWeb: mapValueOfType<bool>(json, r'isWeb'),
|
||||
isVR: mapValueOfType<bool>(json, r'isVR'),
|
||||
applicationInstanceDTOs: ApplicationInstanceDTO.listFromJson(
|
||||
json[r'applicationInstanceDTOs']),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
@ -0,0 +1,99 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for AppConfigurationLinkDTOApplicationInstance
|
||||
void main() {
|
||||
// final instance = AppConfigurationLinkDTOApplicationInstance();
|
||||
|
||||
group('test AppConfigurationLinkDTOApplicationInstance', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instanceId
|
||||
test('to test the property `instanceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// AppType appType
|
||||
test('to test the property `appType`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<AppConfigurationLink> configurations (default value: const [])
|
||||
test('to test the property `configurations`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String mainImageId
|
||||
test('to test the property `mainImageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String mainImageUrl
|
||||
test('to test the property `mainImageUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageId
|
||||
test('to test the property `loaderImageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageUrl
|
||||
test('to test the property `loaderImageUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDate
|
||||
test('to test the property `isDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isHour
|
||||
test('to test the property `isHour`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String primaryColor
|
||||
test('to test the property `primaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String secondaryColor
|
||||
test('to test the property `secondaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int roundedValue
|
||||
test('to test the property `roundedValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int screenPercentageSectionsMainPage
|
||||
test('to test the property `screenPercentageSectionsMainPage`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isSectionImageBackground
|
||||
test('to test the property `isSectionImageBackground`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> languages (default value: const [])
|
||||
test('to test the property `languages`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for AppConfigurationLinkDTOConfiguration
|
||||
void main() {
|
||||
// final instance = AppConfigurationLinkDTOConfiguration();
|
||||
|
||||
group('test AppConfigurationLinkDTOConfiguration', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instanceId
|
||||
test('to test the property `instanceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String label
|
||||
test('to test the property `label`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<TranslationDTO> title (default value: const [])
|
||||
test('to test the property `title`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String imageId
|
||||
test('to test the property `imageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String imageSource
|
||||
test('to test the property `imageSource`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String primaryColor
|
||||
test('to test the property `primaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String secondaryColor
|
||||
test('to test the property `secondaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> languages (default value: const [])
|
||||
test('to test the property `languages`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime dateCreation
|
||||
test('to test the property `dateCreation`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isOffline
|
||||
test('to test the property `isOffline`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> sectionIds (default value: const [])
|
||||
test('to test the property `sectionIds`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageId
|
||||
test('to test the property `loaderImageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageUrl
|
||||
test('to test the property `loaderImageUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
61
manager_api_new/test/application_instance_api_test.dart
Normal file
61
manager_api_new/test/application_instance_api_test.dart
Normal file
@ -0,0 +1,61 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
/// tests for ApplicationInstanceApi
|
||||
void main() {
|
||||
// final instance = ApplicationInstanceApi();
|
||||
|
||||
group('tests for ApplicationInstanceApi', () {
|
||||
//Future<AppConfigurationLinkDTO> applicationInstanceAddConfigurationToApplicationInstance(String applicationInstanceId, AppConfigurationLinkDTO appConfigurationLinkDTO) async
|
||||
test('test applicationInstanceAddConfigurationToApplicationInstance',
|
||||
() async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<ApplicationInstanceDTO> applicationInstanceCreate(ApplicationInstanceDTO applicationInstanceDTO) async
|
||||
test('test applicationInstanceCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<String> applicationInstanceDelete(String id) async
|
||||
test('test applicationInstanceDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<String> applicationInstanceDeleteAppConfigurationLink(String applicationInstanceId, String appConfigurationLinkId) async
|
||||
test('test applicationInstanceDeleteAppConfigurationLink', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<ApplicationInstanceDTO>> applicationInstanceGet({ String instanceId }) async
|
||||
test('test applicationInstanceGet', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<AppConfigurationLinkDTO>> applicationInstanceGetAllApplicationLinkFromApplicationInstance(String applicationInstanceId2, { String applicationInstanceId }) async
|
||||
test('test applicationInstanceGetAllApplicationLinkFromApplicationInstance',
|
||||
() async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<ApplicationInstanceDTO> applicationInstanceUpdate(ApplicationInstanceDTO applicationInstanceDTO) async
|
||||
test('test applicationInstanceUpdate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<AppConfigurationLinkDTO> applicationInstanceUpdateApplicationLink(AppConfigurationLinkDTO appConfigurationLinkDTO) async
|
||||
test('test applicationInstanceUpdateApplicationLink', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user