mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
Update flutter version + upgrade packages + use openapi gen + update to null safety
This commit is contained in:
parent
fd168a9f2c
commit
7c1f562870
20
README.md
20
README.md
@ -14,3 +14,23 @@ A few resources to get you started if this is your first Flutter project:
|
||||
For help getting started with Flutter, view our
|
||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
|
||||
# OPENAPI Generation cmd
|
||||
|
||||
flutter clean
|
||||
|
||||
flutter pub get
|
||||
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
|
||||
Le fichier est dans le projet.
|
||||
|
||||
# Publication sur le Google PlayStore
|
||||
|
||||
// Les paramètres de signing sont les mêmes que pour l'application tablet (donc la même android key).
|
||||
|
||||
Puis :
|
||||
|
||||
flutter build appbundle
|
||||
|
||||
Faut pas oublier d'aller changer la version avant chaque upload de version (Puis mettre l'app bundle dans le dossier du PC, peut-être mettre sur le repos aussi ?)
|
||||
|
||||
@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion 31
|
||||
compileSdkVersion 32
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
@ -36,16 +36,62 @@ android {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
|
||||
def versionPropsFile = file('version.properties')
|
||||
def value = 0
|
||||
|
||||
Properties versionProps = new Properties()
|
||||
|
||||
if (!versionPropsFile.exists()) {
|
||||
versionProps['VERSION_MAJOR'] = "1"
|
||||
versionProps['VERSION_MINOR'] = "0"
|
||||
versionProps['VERSION_PATCH'] = "0"
|
||||
versionProps['VERSION_BUILD'] = "0"
|
||||
versionProps.store(versionPropsFile.newWriter(), null)
|
||||
}
|
||||
|
||||
def runTasks = gradle.startParameter.taskNames
|
||||
if ('assembleRelease' in runTasks) {
|
||||
value = 1
|
||||
}
|
||||
|
||||
if (versionPropsFile.canRead()) {
|
||||
|
||||
versionProps.load(new FileInputStream(versionPropsFile))
|
||||
|
||||
versionProps['VERSION_PATCH'] = (versionProps['VERSION_PATCH'].toInteger() + value).toString()
|
||||
versionProps['VERSION_BUILD'] = (versionProps['VERSION_BUILD'].toInteger() + 1).toString()
|
||||
|
||||
versionProps.store(versionPropsFile.newWriter(), null)
|
||||
|
||||
// change major and minor version here
|
||||
def mVersionName = "${versionProps['VERSION_MAJOR']}.${versionProps['VERSION_MINOR']}.${versionProps['VERSION_PATCH']}"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "be.unov.myhomie" // leave it at the value you have in your file
|
||||
minSdkVersion 23 // this as well
|
||||
targetSdkVersion 28 // and this
|
||||
versionCode versionProps['VERSION_BUILD'].toInteger()
|
||||
versionName "${mVersionName} Build: ${versionProps['VERSION_BUILD']}"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw new GradleException("Could not read version.properties!")
|
||||
}
|
||||
|
||||
/*
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "be.unov.myhomie"
|
||||
minSdkVersion 20
|
||||
targetSdkVersion 31
|
||||
targetSdkVersion 32
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
multiDexEnabled true
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
|
||||
5
android/app/version.properties
Normal file
5
android/app/version.properties
Normal file
@ -0,0 +1,5 @@
|
||||
#Fri Mar 17 18:03:23 CET 2023
|
||||
VERSION_BUILD=17
|
||||
VERSION_MAJOR=1
|
||||
VERSION_MINOR=0
|
||||
VERSION_PATCH=0
|
||||
@ -2,35 +2,44 @@ import 'package:flutter/material.dart';
|
||||
import 'package:myhomie_app/constants.dart';
|
||||
|
||||
class RoundedButton extends StatelessWidget {
|
||||
final String text;
|
||||
final Function press;
|
||||
final String? text;
|
||||
final Function? press;
|
||||
final IconData? icon;
|
||||
final Color color, textColor;
|
||||
final double fontSize;
|
||||
final double? fontSize;
|
||||
final double? vertical;
|
||||
final double? horizontal;
|
||||
|
||||
const RoundedButton({
|
||||
Key key,
|
||||
Key? key,
|
||||
this.text,
|
||||
this.press,
|
||||
this.icon,
|
||||
this.color = kBodyTextColor, // TODO
|
||||
this.textColor = Colors.white,
|
||||
this.fontSize
|
||||
this.fontSize,
|
||||
this.vertical,
|
||||
this.horizontal
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Size size = MediaQuery.of(context).size;
|
||||
return FlatButton(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(35.0),
|
||||
//side: BorderSide(color: kSubTitleColor)
|
||||
return TextButton(
|
||||
style: ButtonStyle(
|
||||
padding: MaterialStateProperty.resolveWith((states) => EdgeInsets.symmetric(vertical: this.vertical != null ? this.vertical! : 25, horizontal: this.horizontal != null ? this.horizontal! : (icon == null ? 85 : 30))),
|
||||
backgroundColor: MaterialStateColor.resolveWith((states) => color),
|
||||
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
||||
RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(30.0),
|
||||
)
|
||||
)
|
||||
),
|
||||
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 25),
|
||||
color: color,
|
||||
onPressed: () => {
|
||||
press()
|
||||
press!()
|
||||
},
|
||||
child: Text(
|
||||
text,
|
||||
text!,
|
||||
style: new TextStyle(color: textColor, fontSize: fontSize, fontWeight: FontWeight.w400),
|
||||
),
|
||||
);
|
||||
|
||||
@ -10,7 +10,7 @@ class CustomNavItem extends StatelessWidget {
|
||||
final int id;
|
||||
final Function setPage;
|
||||
|
||||
const CustomNavItem({this.setPage, this.icon, this.id});
|
||||
const CustomNavItem({required this.setPage, required this.icon, required this.id});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@ -2,7 +2,7 @@ import 'package:flare_flutter/flare_actor.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Loading extends StatelessWidget {
|
||||
Loading({Key key}) : super(key: key);
|
||||
Loading({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@ -3,14 +3,14 @@ import 'package:myhomie_app/Components/text_field_container.dart';
|
||||
import 'package:myhomie_app/constants.dart';
|
||||
|
||||
class RoundedInputField extends StatelessWidget {
|
||||
final String hintText;
|
||||
final IconData icon;
|
||||
final ValueChanged<String> onChanged;
|
||||
final String initialValue;
|
||||
final String? hintText;
|
||||
final IconData? icon;
|
||||
final ValueChanged<String>? onChanged;
|
||||
final String? initialValue;
|
||||
final Color color, textColor, iconColor;
|
||||
final int maxLength;
|
||||
final int? maxLength;
|
||||
const RoundedInputField({
|
||||
Key key,
|
||||
Key? key,
|
||||
this.hintText,
|
||||
this.initialValue,
|
||||
this.icon,
|
||||
|
||||
@ -3,9 +3,9 @@ import 'package:myhomie_app/Components/text_field_container.dart';
|
||||
import 'package:myhomie_app/constants.dart';
|
||||
|
||||
class RoundedPasswordField extends StatelessWidget {
|
||||
final ValueChanged<String> onChanged;
|
||||
final ValueChanged<String>? onChanged;
|
||||
const RoundedPasswordField({
|
||||
Key key,
|
||||
Key? key,
|
||||
this.onChanged,
|
||||
}) : super(key: key);
|
||||
|
||||
|
||||
@ -2,10 +2,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:myhomie_app/constants.dart';
|
||||
|
||||
class TextFieldContainer extends StatelessWidget {
|
||||
final Widget child;
|
||||
final Widget? child;
|
||||
final Color color;
|
||||
const TextFieldContainer({
|
||||
Key key,
|
||||
Key? key,
|
||||
this.child,
|
||||
this.color = kBackgroundColor, // TODO
|
||||
}) : super(key: key);
|
||||
|
||||
@ -19,12 +19,9 @@ class DatabaseHelper {
|
||||
DatabaseHelper._privateConstructor();
|
||||
static final DatabaseHelper instance = DatabaseHelper._privateConstructor();
|
||||
|
||||
static Database _database;
|
||||
Future<Database> get database async {
|
||||
if (_database != null) return _database;
|
||||
_database = await _initDatabase();
|
||||
return _database;
|
||||
}
|
||||
static Database? _database;
|
||||
Future<Database> get database async =>
|
||||
_database ??= await _initDatabase();
|
||||
|
||||
_initDatabase() async {
|
||||
String path = join(await getDatabasesPath(), _databaseName);
|
||||
@ -48,8 +45,14 @@ class DatabaseHelper {
|
||||
Future<int> insert(HomieAppContext homieAppContext) async {
|
||||
Database db = await instance.database;
|
||||
|
||||
var res = await db.insert(table, homieAppContext.toMap());
|
||||
return res;
|
||||
var test = await instance.getData();
|
||||
if(test != null) {
|
||||
var res = await db.update(table, homieAppContext.toMap());
|
||||
return res;
|
||||
} else {
|
||||
var res = await db.insert(table, homieAppContext.toMap());
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> update(HomieAppContext homieAppContext) async {
|
||||
@ -75,15 +78,17 @@ class DatabaseHelper {
|
||||
return await db.delete(table, where: '$columnUserId = ?', whereArgs: [userId]);
|
||||
}
|
||||
|
||||
Future<void> clearTable() async {
|
||||
Future<List<Map<String, Object?>>> clearTable() async {
|
||||
Database db = await instance.database;
|
||||
return await db.rawQuery("DELETE FROM $table");
|
||||
}
|
||||
|
||||
Future<HomieAppContext> getData() async {
|
||||
HomieAppContext homieAppContext;
|
||||
Future<HomieAppContext?> getData() async {
|
||||
HomieAppContext? homieAppContext;
|
||||
|
||||
await DatabaseHelper.instance.queryAllRows().then((value) {
|
||||
print("value");
|
||||
print(value);
|
||||
value.forEach((element) {
|
||||
print("DB - CONTEXT --- ");
|
||||
|
||||
|
||||
@ -21,22 +21,22 @@ class MQTTHelper {
|
||||
|
||||
print(homieAppContext.clientMQTT);
|
||||
|
||||
homieAppContext.clientMQTT.updates.listen((List<MqttReceivedMessage<MqttMessage>> c) async {
|
||||
homieAppContext.clientMQTT.updates!.listen((List<MqttReceivedMessage<MqttMessage>> c) async {
|
||||
print("IN Received message");
|
||||
final MqttPublishMessage message = c[0].payload;
|
||||
final payload = MqttPublishPayload.bytesToStringAsString(message.payload.message);
|
||||
print('Received message:$payload from topic: ${c[0].topic}');
|
||||
final MqttMessage? message = c[0].payload;
|
||||
/*final payload = MqttPublishPayload.bytesToStringAsString(message!);
|
||||
print('Received message:$payload from topic: ${c[0].topic}');*/
|
||||
|
||||
appContext.setLastMessage('Received message:$payload from topic: ${c[0].topic}');
|
||||
appContext.setLastMessage('Received message:$message from topic: ${c[0].topic}');
|
||||
|
||||
var topic = c[0].topic.split('/')[0];
|
||||
|
||||
switch(topic) {
|
||||
case "config":
|
||||
print('Get message in topic config = $payload');
|
||||
print('Get message in topic config = $message');
|
||||
break;
|
||||
case "player":
|
||||
print('Get message in topic player = $payload');
|
||||
print('Get message in topic player = $message');
|
||||
// refresh device info
|
||||
try {
|
||||
}
|
||||
@ -68,7 +68,7 @@ class MQTTHelper {
|
||||
print('Unsubscribed topic: $topic');
|
||||
}
|
||||
|
||||
Future<MqttServerClient> connect(dynamic appContext) async {
|
||||
Future<MqttServerClient?> connect(dynamic appContext) async {
|
||||
HomieAppContext homieAppContext = appContext.getContext();
|
||||
|
||||
if (homieAppContext == null) {
|
||||
@ -78,7 +78,7 @@ class MQTTHelper {
|
||||
print(homieAppContext.host);
|
||||
|
||||
if(homieAppContext.host != null) {
|
||||
homieAppContext.clientMQTT = MqttServerClient.withPort(homieAppContext.host.replaceAll('http://', ''), 'homie_app_'+ Uuid().v1(), 1883);
|
||||
homieAppContext.clientMQTT = MqttServerClient.withPort(homieAppContext.host!.replaceAll('http://', ''), 'homie_app_'+ Uuid().v1(), 1883);
|
||||
isInstantiated = true;
|
||||
|
||||
homieAppContext.clientMQTT.logging(on: false);
|
||||
@ -98,7 +98,7 @@ class MQTTHelper {
|
||||
.keepAliveFor(60)
|
||||
.withWillTopic('player/status')
|
||||
.withWillMessage(jsonEncode(message))
|
||||
.withClientIdentifier('tablet_app_'+homieAppContext.userId)
|
||||
.withClientIdentifier('tablet_app_'+homieAppContext.userId!)
|
||||
.startClean()
|
||||
.withWillQos(MqttQos.atLeastOnce);
|
||||
|
||||
|
||||
@ -1,19 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mqtt_client/mqtt_server_client.dart';
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:myhomie_app/client.dart';
|
||||
|
||||
|
||||
class HomieAppContext with ChangeNotifier{
|
||||
Client clientAPI;
|
||||
MqttServerClient clientMQTT;
|
||||
String userId;
|
||||
String homeId;
|
||||
String token;
|
||||
String host;
|
||||
String language;
|
||||
Client clientAPI = Client("http://192.168.31.140"); // Replace by https://api.mymuseum.be //http://192.168.31.140:8089
|
||||
MqttServerClient clientMQTT = MqttServerClient.withPort("192.168.31.140", "TODO", 1883); // Replace by https://api.mymuseum.be //http://192.168.31.140:8089
|
||||
String? userId;
|
||||
String? homeId;
|
||||
String? token;
|
||||
String? host;
|
||||
String? language;
|
||||
|
||||
HomieAppContext({this.userId, this.homeId, this.host, this.language, this.token});
|
||||
|
||||
@ -41,6 +40,6 @@ class HomieAppContext with ChangeNotifier{
|
||||
// Implement toString to make it easier to see information about
|
||||
@override
|
||||
String toString() {
|
||||
return 'TabletAppContext{userId: $userId, homeId: $homeId, language: $language, host: $host}';
|
||||
return 'HomieAppContext{userId: $userId, homeId: $homeId, language: $language, host: $host}';
|
||||
}
|
||||
}
|
||||
@ -5,7 +5,7 @@ import 'package:myhomie_app/app_context.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class DebugPage extends StatefulWidget {
|
||||
DebugPage({Key key}) : super(key: key);
|
||||
DebugPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_DebugPageState createState() => _DebugPageState();
|
||||
|
||||
@ -3,8 +3,8 @@ import 'package:flutter/material.dart';
|
||||
class Background extends StatelessWidget {
|
||||
final Widget child;
|
||||
const Background({
|
||||
Key key,
|
||||
@required this.child,
|
||||
Key? key,
|
||||
required this.child,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:mqtt_client/mqtt_server_client.dart';
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
import 'package:myhomie_app/Components/Buttons/rounded_button.dart';
|
||||
import 'package:myhomie_app/Components/rounded_input_field.dart';
|
||||
import 'package:myhomie_app/Components/rounded_password_field.dart';
|
||||
@ -18,7 +18,7 @@ import '../../../Helpers/DatabaseHelper.dart';
|
||||
|
||||
class Body extends StatefulWidget {
|
||||
const Body({
|
||||
Key key,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
@ -27,7 +27,8 @@ class Body extends StatefulWidget {
|
||||
|
||||
class _BodyState extends State<Body> {
|
||||
final clientAPI = Client('http://192.168.31.140'); // TODO field
|
||||
TokenDTO token;
|
||||
TokenDTO? token;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appContext = Provider.of<AppContext>(context);
|
||||
@ -62,33 +63,37 @@ class _BodyState extends State<Body> {
|
||||
if (connected) {
|
||||
HomieAppContext homieAppContext = new HomieAppContext();
|
||||
|
||||
UserInfoDetailDTO user = await clientAPI.userApi.userGet("6182c472e20a6dbcfe8fe82c"); // TO replace user get by email
|
||||
UserInfoDetailDTO? user = await clientAPI.userApi!.userGet("6182c472e20a6dbcfe8fe82c"); // TO replace user get by email
|
||||
|
||||
print(user);
|
||||
|
||||
homieAppContext.host = "http://192.168.31.140";// TODO
|
||||
homieAppContext.clientMQTT = new MqttServerClient(homieAppContext.host.replaceAll('http://', ''),'my_homie_app_'+ Uuid().v1());
|
||||
homieAppContext.clientAPI = clientAPI;
|
||||
homieAppContext.userId = user.id;
|
||||
homieAppContext.language = user.language == null ? 'FR': user.language; //
|
||||
homieAppContext.token = token.accessToken;
|
||||
if(user != null) {
|
||||
homieAppContext.host = "http://192.168.31.140";// TODO
|
||||
homieAppContext.clientMQTT = new MqttServerClient(homieAppContext.host!.replaceAll('http://', ''),'my_homie_app_'+ Uuid().v1());
|
||||
homieAppContext.clientAPI = clientAPI;
|
||||
homieAppContext.userId = user.id;
|
||||
homieAppContext.language = user.language == null ? 'FR': user.language; //
|
||||
homieAppContext.token = token!.accessToken;
|
||||
|
||||
// TODO check if we select by default or ask user to select
|
||||
if(user.homeIds.length > 0) {
|
||||
homieAppContext.homeId = user.homeIds.first;
|
||||
} else {
|
||||
// TODO invite home creation
|
||||
// TODO check if we select by default or ask user to select
|
||||
if(user.homeIds!.length > 0) {
|
||||
homieAppContext.homeId = user.homeIds!.first;
|
||||
} else {
|
||||
// TODO invite home creation
|
||||
}
|
||||
|
||||
setState(() {
|
||||
appContext.setContext(homieAppContext);
|
||||
});
|
||||
}
|
||||
|
||||
setState(() {
|
||||
appContext.setContext(homieAppContext);
|
||||
});
|
||||
|
||||
// STORE IT LOCALLY (SQLite)
|
||||
HomieAppContext localContext = await DatabaseHelper.instance.getData();
|
||||
HomieAppContext? localContext = await DatabaseHelper.instance.getData();
|
||||
if (localContext != null) { // Check if sql DB exist
|
||||
print("STORE IT LOCALLY - update");
|
||||
await DatabaseHelper.instance.update(homieAppContext);
|
||||
} else {
|
||||
print("STORE IT LOCALLY - insert");
|
||||
await DatabaseHelper.instance.insert(homieAppContext);
|
||||
}
|
||||
|
||||
@ -143,11 +148,11 @@ class _BodyState extends State<Body> {
|
||||
try {
|
||||
//LoginDTO loginDTO = new LoginDTO(email: "test@email.be", password: "kljqsdkljqsd");
|
||||
LoginDTO loginDTO = new LoginDTO(email: "", password: "");
|
||||
token = await clientAPI.authenticationApi.authenticationAuthenticateWithJson(loginDTO);
|
||||
token = await clientAPI.authenticationApi!.authenticationAuthenticateWithJson(loginDTO);
|
||||
print("Token ??");
|
||||
print(token);
|
||||
print(token.accessToken);
|
||||
setAccessToken(token.accessToken);
|
||||
print(token!.accessToken);
|
||||
setAccessToken(token!.accessToken!);
|
||||
isConnected = true; // TODO update context + db
|
||||
}
|
||||
catch (e) {
|
||||
@ -215,10 +220,11 @@ class _BodyState extends State<Body> {
|
||||
}
|
||||
|
||||
void setAccessToken(String accessToken) {
|
||||
clientAPI.apiApi.authentications.forEach((key, auth) {
|
||||
clientAPI.apiApi!.addDefaultHeader('authorization', 'Bearer '+accessToken);
|
||||
/*clientAPI.apiApi!.authentications!.forEach((key, auth) {
|
||||
if (auth is OAuth) {
|
||||
auth.accessToken = accessToken;
|
||||
}
|
||||
});
|
||||
});*/
|
||||
}
|
||||
}
|
||||
@ -3,7 +3,7 @@ import 'package:myhomie_app/app_context.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class AutomationsScreen extends StatefulWidget {
|
||||
AutomationsScreen({Key key}) : super(key: key);
|
||||
AutomationsScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AutomationsScreenState createState() => _AutomationsScreenState();
|
||||
|
||||
@ -3,7 +3,7 @@ import 'package:myhomie_app/app_context.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class EnergyScreen extends StatefulWidget {
|
||||
EnergyScreen({Key key}) : super(key: key);
|
||||
EnergyScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_EnergyScreenState createState() => _EnergyScreenState();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
import 'package:myhomie_app/Components/loading.dart';
|
||||
import 'package:myhomie_app/Models/homieContext.dart';
|
||||
import 'package:myhomie_app/app_context.dart';
|
||||
@ -7,7 +7,7 @@ import 'package:myhomie_app/constants.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class HomeScreen extends StatefulWidget {
|
||||
HomeScreen({Key key}) : super(key: key);
|
||||
HomeScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_HomeScreenState createState() => _HomeScreenState();
|
||||
@ -35,13 +35,13 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
return interfaceElements();
|
||||
} else {*/
|
||||
return FutureBuilder(
|
||||
future: homieAppContext.clientAPI.roomApi.roomGetAllWithMainDetails(homieAppContext.homeId),
|
||||
builder: (context, AsyncSnapshot<List<RoomMainDetailDTO>> snapshot) {
|
||||
future: homieAppContext.clientAPI.roomApi!.roomGetAllWithMainDetails(homieAppContext.homeId!),
|
||||
builder: (context, AsyncSnapshot<List<RoomMainDetailDTO>?> snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
print("connectionState done");
|
||||
print(snapshot);
|
||||
if(snapshot.data != null) {
|
||||
return interfaceElements(snapshot.data);
|
||||
return interfaceElements(snapshot.data!);
|
||||
} else {
|
||||
return Text("No data - or error");
|
||||
}
|
||||
@ -70,7 +70,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
displacement: 20,
|
||||
onRefresh: () async {
|
||||
print("onRefresh");
|
||||
await homieAppContext.clientAPI.roomApi.roomGetAllWithMainDetails(homieAppContext.homeId);
|
||||
await homieAppContext.clientAPI.roomApi!.roomGetAllWithMainDetails(homieAppContext.homeId!);
|
||||
},
|
||||
child: Container(
|
||||
height: size.height * 0.8,
|
||||
@ -101,14 +101,14 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
roomsMaindetails[index].name,
|
||||
roomsMaindetails[index].name!,
|
||||
style: new TextStyle(fontSize: kDetailSize, color: kBackgroundSecondGrey),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
if(roomsMaindetails[index].isTemperature)
|
||||
if(roomsMaindetails[index].isTemperature!)
|
||||
Positioned(
|
||||
bottom: 10,
|
||||
left: 0,
|
||||
@ -120,7 +120,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
color: kMainColor,
|
||||
),
|
||||
Text(
|
||||
roomsMaindetails[index].temperature,
|
||||
roomsMaindetails[index].temperature!,
|
||||
style: new TextStyle(fontSize: kDescriptionDetailSize, color: kBackgroundSecondGrey),
|
||||
maxLines: 1,
|
||||
),
|
||||
@ -128,10 +128,10 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
)
|
||||
),
|
||||
|
||||
if(roomsMaindetails[index].isHumidity)
|
||||
if(roomsMaindetails[index].isHumidity!)
|
||||
Positioned(
|
||||
bottom: 10,
|
||||
left: roomsMaindetails[index].isTemperature ? 55 : 0,
|
||||
left: roomsMaindetails[index].isTemperature! ? 60 : 0,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
@ -140,7 +140,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
color: kMainColor,
|
||||
),
|
||||
Text(
|
||||
roomsMaindetails[index].humidity,
|
||||
roomsMaindetails[index].humidity!,
|
||||
style: new TextStyle(fontSize: kDescriptionDetailSize, color: kBackgroundSecondGrey),
|
||||
maxLines: 1,
|
||||
),
|
||||
@ -148,7 +148,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
)
|
||||
),
|
||||
|
||||
if(roomsMaindetails[index].isDoor)
|
||||
if(roomsMaindetails[index].isDoor!)
|
||||
Positioned(
|
||||
bottom: 10,
|
||||
right: 5,
|
||||
@ -157,22 +157,22 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
Icon(
|
||||
Icons.motion_photos_on_rounded,
|
||||
size: 20,
|
||||
color: !roomsMaindetails[index].door ? kMainColor : kBackgroundSecondGrey,
|
||||
color: !roomsMaindetails[index].door! ? kMainColor : kBackgroundSecondGrey,
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
|
||||
if(roomsMaindetails[index].isMotion)
|
||||
if(roomsMaindetails[index].isMotion!)
|
||||
Positioned(
|
||||
bottom: 10,
|
||||
right: roomsMaindetails[index].isDoor ? 20 : 5,
|
||||
right: roomsMaindetails[index].isDoor! ? 20 : 5,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.directions_walk,
|
||||
size: 20,
|
||||
color: roomsMaindetails[index].motion ? kMainColor : kBackgroundSecondGrey,
|
||||
color: roomsMaindetails[index].motion! ? kMainColor : kBackgroundSecondGrey,
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
@ -22,7 +22,7 @@ PageController pageController = PageController(initialPage: 0);
|
||||
int currentIndex = 0;
|
||||
|
||||
class MainPage extends StatefulWidget {
|
||||
MainPage({Key key}) : super(key: key);
|
||||
MainPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_MainPageState createState() => _MainPageState();
|
||||
|
||||
@ -3,7 +3,7 @@ import 'package:myhomie_app/app_context.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class ProfileScreen extends StatefulWidget {
|
||||
ProfileScreen({Key key}) : super(key: key);
|
||||
ProfileScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ProfileScreenState createState() => _ProfileScreenState();
|
||||
|
||||
@ -3,7 +3,7 @@ import 'package:myhomie_app/app_context.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class SecurityScreen extends StatefulWidget {
|
||||
SecurityScreen({Key key}) : super(key: key);
|
||||
SecurityScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SecurityScreenState createState() => _SecurityScreenState();
|
||||
|
||||
15
lib/api/openApiTest.dart
Normal file
15
lib/api/openApiTest.dart
Normal file
@ -0,0 +1,15 @@
|
||||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
|
||||
|
||||
@Openapi(
|
||||
additionalProperties:
|
||||
AdditionalProperties(pubName: 'mycore_api', pubAuthor: 'Fransolet Thomas', useEnumExtension: true),
|
||||
inputSpecFile: 'lib/api/swagger.yaml',
|
||||
generatorName: Generator.dart,
|
||||
alwaysRun: true,
|
||||
outputDirectory: 'mycore_api')
|
||||
class Example extends OpenapiGeneratorConfig {}
|
||||
|
||||
/*
|
||||
RUN
|
||||
>flutter pub run build_runner build --delete-conflicting-outputs
|
||||
*/
|
||||
4888
lib/api/swagger.yaml
Normal file
4888
lib/api/swagger.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@ import 'Models/homieContext.dart';
|
||||
|
||||
class AppContext with ChangeNotifier {
|
||||
HomieAppContext _homieContext;
|
||||
Client clientAPI;
|
||||
Client clientAPI = Client("http://192.168.31.140");
|
||||
List<String> _lastMQTTMessages = [];
|
||||
|
||||
AppContext(this._homieContext);
|
||||
|
||||
@ -1,42 +1,41 @@
|
||||
import 'package:mycoreapi/api.dart';
|
||||
//import 'package:openapi_dart_common/openapi.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
|
||||
class Client {
|
||||
ApiClient _apiClient;
|
||||
ApiClient get apiApi => _apiClient;
|
||||
ApiClient? _apiClient;
|
||||
ApiClient? get apiApi => _apiClient;
|
||||
|
||||
TokenApi _tokenApi;
|
||||
TokenApi get tokenApi => _tokenApi;
|
||||
TokenApi? _tokenApi;
|
||||
TokenApi? get tokenApi => _tokenApi;
|
||||
|
||||
AuthenticationApi _authenticationApi;
|
||||
AuthenticationApi get authenticationApi => _authenticationApi;
|
||||
AuthenticationApi? _authenticationApi;
|
||||
AuthenticationApi? get authenticationApi => _authenticationApi;
|
||||
|
||||
UserApi _userApi;
|
||||
UserApi get userApi => _userApi;
|
||||
UserApi? _userApi;
|
||||
UserApi? get userApi => _userApi;
|
||||
|
||||
HomeApi _homeApi;
|
||||
HomeApi get homeApi => _homeApi;
|
||||
HomeApi? _homeApi;
|
||||
HomeApi? get homeApi => _homeApi;
|
||||
|
||||
AlarmApi _alarmApi;
|
||||
AlarmApi get alarmApi => _alarmApi;
|
||||
AlarmApi? _alarmApi;
|
||||
AlarmApi? get alarmApi => _alarmApi;
|
||||
|
||||
EventApi _eventApi;
|
||||
EventApi get eventApi => _eventApi;
|
||||
EventApi? _eventApi;
|
||||
EventApi? get eventApi => _eventApi;
|
||||
|
||||
GroupApi _groupApi;
|
||||
GroupApi get groupApi => _groupApi;
|
||||
GroupApi? _groupApi;
|
||||
GroupApi? get groupApi => _groupApi;
|
||||
|
||||
DeviceApi _deviceApi;
|
||||
DeviceApi get deviceApi => _deviceApi;
|
||||
DeviceApi? _deviceApi;
|
||||
DeviceApi? get deviceApi => _deviceApi;
|
||||
|
||||
AutomationApi _automationApi;
|
||||
AutomationApi get automationApi => _automationApi;
|
||||
AutomationApi? _automationApi;
|
||||
AutomationApi? get automationApi => _automationApi;
|
||||
|
||||
ProviderApi _providerApi;
|
||||
ProviderApi get providerApi => _providerApi;
|
||||
ProviderApi? _providerApi;
|
||||
ProviderApi? get providerApi => _providerApi;
|
||||
|
||||
RoomApi _roomApi;
|
||||
RoomApi get roomApi => _roomApi;
|
||||
RoomApi? _roomApi;
|
||||
RoomApi? get roomApi => _roomApi;
|
||||
|
||||
Client(String path) {
|
||||
_apiClient = ApiClient(
|
||||
|
||||
@ -12,14 +12,14 @@ import 'constants.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
String initialRoute;
|
||||
HomieAppContext localContext = new HomieAppContext();
|
||||
HomieAppContext? localContext = new HomieAppContext();
|
||||
bool isLogged = false;
|
||||
|
||||
localContext = await DatabaseHelper.instance.getData();
|
||||
|
||||
if(localContext != null) {
|
||||
print("we've got an local db !");
|
||||
localContext.clientAPI = new Client(localContext.host); // TODO "http://192.168.31.140"
|
||||
localContext.clientAPI = new Client(localContext.host!); // TODO "http://192.168.31.140"
|
||||
//isLogged = localContext.token != null; // TODO refresh token..
|
||||
isLogged = false;
|
||||
print(localContext);
|
||||
@ -31,16 +31,16 @@ void main() async {
|
||||
|
||||
final MyApp myApp = MyApp(
|
||||
initialRoute: initialRoute,
|
||||
homieAppContext: localContext,
|
||||
homieAppContext: localContext!,
|
||||
);
|
||||
|
||||
runApp(myApp);
|
||||
}
|
||||
|
||||
class MyApp extends StatefulWidget {
|
||||
final String initialRoute;
|
||||
final HomieAppContext homieAppContext;
|
||||
MyApp({this.initialRoute, this.homieAppContext});
|
||||
String initialRoute = "";
|
||||
HomieAppContext homieAppContext;
|
||||
MyApp({Key? key, required this.initialRoute, required this.homieAppContext}) : super(key: key);
|
||||
|
||||
@override
|
||||
_MyAppState createState() => _MyAppState();
|
||||
|
||||
@ -5,6 +5,9 @@
|
||||
list(APPEND FLUTTER_PLUGIN_LIST
|
||||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
)
|
||||
|
||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||
|
||||
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||
@ -13,3 +16,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
||||
endforeach(plugin)
|
||||
|
||||
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
||||
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
|
||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
||||
endforeach(ffi_plugin)
|
||||
|
||||
32
mycore_api/.gitignore
vendored
32
mycore_api/.gitignore
vendored
@ -1,27 +1,17 @@
|
||||
# See https://www.dartlang.org/tools/private-files.html
|
||||
# See https://dart.dev/guides/libraries/private-files
|
||||
|
||||
# Files and directories created by pub
|
||||
.buildlog
|
||||
.dart_tool/
|
||||
.packages
|
||||
.project
|
||||
.pub/
|
||||
build/
|
||||
**/packages/
|
||||
pubspec.lock # Except for application packages
|
||||
|
||||
# Files created by dart2js
|
||||
# (Most Dart developers will use pub build to compile Dart, use/modify these
|
||||
# rules if you intend to use dart2js directly
|
||||
# Convention is to use extension '.dart.js' for Dart compiled to Javascript to
|
||||
# differentiate from explicit Javascript files)
|
||||
*.dart.js
|
||||
*.part.js
|
||||
*.js.deps
|
||||
*.js.map
|
||||
*.info.json
|
||||
|
||||
# Directory created by dartdoc
|
||||
doc/api/
|
||||
|
||||
# Don't commit pubspec lock file
|
||||
# (Library packages only! Remove pattern if developing an application package)
|
||||
pubspec.lock
|
||||
# IntelliJ
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# Mac
|
||||
.DS_Store
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
README.md
|
||||
analysis_options.yaml
|
||||
doc/Action.md
|
||||
doc/ActionType.md
|
||||
doc/AlarmApi.md
|
||||
@ -10,6 +12,8 @@ doc/AlarmModeCreateOrUpdateDetailDTOAllOf.md
|
||||
doc/AlarmModeDTO.md
|
||||
doc/AlarmModeDetailDTO.md
|
||||
doc/AlarmModeDetailDTOAllOf.md
|
||||
doc/AlarmModeGeolocalizedMode.md
|
||||
doc/AlarmModeProgrammedMode.md
|
||||
doc/AlarmTriggered.md
|
||||
doc/AlarmType.md
|
||||
doc/AuthenticationApi.md
|
||||
@ -24,6 +28,7 @@ doc/AzureApi.md
|
||||
doc/Book.md
|
||||
doc/BooksApi.md
|
||||
doc/Condition.md
|
||||
doc/ConditionState.md
|
||||
doc/ConditionType.md
|
||||
doc/ConditionValue.md
|
||||
doc/ConnectionStatus.md
|
||||
@ -42,6 +47,8 @@ doc/EventDTO.md
|
||||
doc/EventDetailDTO.md
|
||||
doc/EventDetailDTOAllOf.md
|
||||
doc/EventFilter.md
|
||||
doc/EventGetDeviceTypeParameter.md
|
||||
doc/EventGetEventTypeParameter.md
|
||||
doc/EventHomeFilter.md
|
||||
doc/EventHomeFilterAllOf.md
|
||||
doc/EventType.md
|
||||
@ -58,17 +65,20 @@ doc/GroupDetailDTOAllOf.md
|
||||
doc/GroupSummaryDTO.md
|
||||
doc/HomeApi.md
|
||||
doc/HomeDTO.md
|
||||
doc/HomeDTOCurrentAlarmMode.md
|
||||
doc/HomeDetailDTO.md
|
||||
doc/HomeDetailDTOAllOf.md
|
||||
doc/IOTApi.md
|
||||
doc/LayoutApi.md
|
||||
doc/ListResponseOfEventDetailDTOAndEventHomeFilter.md
|
||||
doc/ListResponseOfEventDetailDTOAndEventHomeFilterRequestParameters.md
|
||||
doc/LoginDTO.md
|
||||
doc/MQTTApi.md
|
||||
doc/MeansOfCommunication.md
|
||||
doc/MqttMessageDTO.md
|
||||
doc/OddApi.md
|
||||
doc/OddNice.md
|
||||
doc/OddNiceOdds.md
|
||||
doc/OddObject.md
|
||||
doc/PanelMenuItem.md
|
||||
doc/PanelSection.md
|
||||
@ -87,6 +97,7 @@ doc/ScreenDeviceApi.md
|
||||
doc/SmartGardenMessage.md
|
||||
doc/SmartPrinterMessage.md
|
||||
doc/TimePeriodAlarm.md
|
||||
doc/TimePeriodAlarmAlarmMode.md
|
||||
doc/TokenApi.md
|
||||
doc/TokenDTO.md
|
||||
doc/Trigger.md
|
||||
@ -140,6 +151,8 @@ lib/model/alarm_mode_create_or_update_detail_dto_all_of.dart
|
||||
lib/model/alarm_mode_detail_dto.dart
|
||||
lib/model/alarm_mode_detail_dto_all_of.dart
|
||||
lib/model/alarm_mode_dto.dart
|
||||
lib/model/alarm_mode_geolocalized_mode.dart
|
||||
lib/model/alarm_mode_programmed_mode.dart
|
||||
lib/model/alarm_triggered.dart
|
||||
lib/model/alarm_type.dart
|
||||
lib/model/automation_detail_dto.dart
|
||||
@ -150,6 +163,7 @@ lib/model/automation_triggered.dart
|
||||
lib/model/azure_ad_auth_model.dart
|
||||
lib/model/book.dart
|
||||
lib/model/condition.dart
|
||||
lib/model/condition_state.dart
|
||||
lib/model/condition_type.dart
|
||||
lib/model/condition_value.dart
|
||||
lib/model/connection_status.dart
|
||||
@ -165,6 +179,8 @@ lib/model/event_detail_dto.dart
|
||||
lib/model/event_detail_dto_all_of.dart
|
||||
lib/model/event_dto.dart
|
||||
lib/model/event_filter.dart
|
||||
lib/model/event_get_device_type_parameter.dart
|
||||
lib/model/event_get_event_type_parameter.dart
|
||||
lib/model/event_home_filter.dart
|
||||
lib/model/event_home_filter_all_of.dart
|
||||
lib/model/event_type.dart
|
||||
@ -179,11 +195,14 @@ lib/model/group_summary_dto.dart
|
||||
lib/model/home_detail_dto.dart
|
||||
lib/model/home_detail_dto_all_of.dart
|
||||
lib/model/home_dto.dart
|
||||
lib/model/home_dto_current_alarm_mode.dart
|
||||
lib/model/list_response_of_event_detail_dto_and_event_home_filter.dart
|
||||
lib/model/list_response_of_event_detail_dto_and_event_home_filter_request_parameters.dart
|
||||
lib/model/login_dto.dart
|
||||
lib/model/means_of_communication.dart
|
||||
lib/model/mqtt_message_dto.dart
|
||||
lib/model/odd_nice.dart
|
||||
lib/model/odd_nice_odds.dart
|
||||
lib/model/odd_object.dart
|
||||
lib/model/panel_menu_item.dart
|
||||
lib/model/panel_section.dart
|
||||
@ -199,6 +218,7 @@ lib/model/screen_device.dart
|
||||
lib/model/smart_garden_message.dart
|
||||
lib/model/smart_printer_message.dart
|
||||
lib/model/time_period_alarm.dart
|
||||
lib/model/time_period_alarm_alarm_mode.dart
|
||||
lib/model/token_dto.dart
|
||||
lib/model/trigger.dart
|
||||
lib/model/trigger_type.dart
|
||||
@ -208,3 +228,110 @@ lib/model/user_info.dart
|
||||
lib/model/user_info_detail_dto.dart
|
||||
lib/model/view_by.dart
|
||||
pubspec.yaml
|
||||
test/action_test.dart
|
||||
test/action_type_test.dart
|
||||
test/alarm_api_test.dart
|
||||
test/alarm_mode_create_or_update_detail_dto_all_of_test.dart
|
||||
test/alarm_mode_create_or_update_detail_dto_test.dart
|
||||
test/alarm_mode_detail_dto_all_of_test.dart
|
||||
test/alarm_mode_detail_dto_test.dart
|
||||
test/alarm_mode_dto_test.dart
|
||||
test/alarm_mode_geolocalized_mode_test.dart
|
||||
test/alarm_mode_programmed_mode_test.dart
|
||||
test/alarm_mode_test.dart
|
||||
test/alarm_triggered_test.dart
|
||||
test/alarm_type_test.dart
|
||||
test/authentication_api_test.dart
|
||||
test/automation_api_test.dart
|
||||
test/automation_detail_dto_all_of_test.dart
|
||||
test/automation_detail_dto_test.dart
|
||||
test/automation_dto_test.dart
|
||||
test/automation_state_test.dart
|
||||
test/automation_triggered_test.dart
|
||||
test/azure_ad_auth_model_test.dart
|
||||
test/azure_api_test.dart
|
||||
test/book_test.dart
|
||||
test/books_api_test.dart
|
||||
test/condition_state_test.dart
|
||||
test/condition_test.dart
|
||||
test/condition_type_test.dart
|
||||
test/condition_value_test.dart
|
||||
test/connection_status_test.dart
|
||||
test/create_or_update_home_dto_all_of_test.dart
|
||||
test/create_or_update_home_dto_test.dart
|
||||
test/device_api_test.dart
|
||||
test/device_detail_dto_all_of_test.dart
|
||||
test/device_detail_dto_test.dart
|
||||
test/device_state_test.dart
|
||||
test/device_summary_dto_test.dart
|
||||
test/device_type_test.dart
|
||||
test/electricity_production_test.dart
|
||||
test/energy_api_test.dart
|
||||
test/event_api_test.dart
|
||||
test/event_detail_dto_all_of_test.dart
|
||||
test/event_detail_dto_test.dart
|
||||
test/event_dto_test.dart
|
||||
test/event_filter_test.dart
|
||||
test/event_get_device_type_parameter_test.dart
|
||||
test/event_get_event_type_parameter_test.dart
|
||||
test/event_home_filter_all_of_test.dart
|
||||
test/event_home_filter_test.dart
|
||||
test/event_type_test.dart
|
||||
test/facebook_api_test.dart
|
||||
test/facebook_auth_model_test.dart
|
||||
test/geolocalized_mode_test.dart
|
||||
test/google_api_test.dart
|
||||
test/google_auth_model_test.dart
|
||||
test/group_api_test.dart
|
||||
test/group_create_or_update_detail_dto_all_of_test.dart
|
||||
test/group_create_or_update_detail_dto_test.dart
|
||||
test/group_detail_dto_all_of_test.dart
|
||||
test/group_detail_dto_test.dart
|
||||
test/group_summary_dto_test.dart
|
||||
test/home_api_test.dart
|
||||
test/home_detail_dto_all_of_test.dart
|
||||
test/home_detail_dto_test.dart
|
||||
test/home_dto_current_alarm_mode_test.dart
|
||||
test/home_dto_test.dart
|
||||
test/iot_api_test.dart
|
||||
test/layout_api_test.dart
|
||||
test/list_response_of_event_detail_dto_and_event_home_filter_request_parameters_test.dart
|
||||
test/list_response_of_event_detail_dto_and_event_home_filter_test.dart
|
||||
test/login_dto_test.dart
|
||||
test/means_of_communication_test.dart
|
||||
test/mqtt_api_test.dart
|
||||
test/mqtt_message_dto_test.dart
|
||||
test/odd_api_test.dart
|
||||
test/odd_nice_odds_test.dart
|
||||
test/odd_nice_test.dart
|
||||
test/odd_object_test.dart
|
||||
test/panel_menu_item_test.dart
|
||||
test/panel_section_test.dart
|
||||
test/programmed_mode_test.dart
|
||||
test/provider_api_test.dart
|
||||
test/provider_dto_test.dart
|
||||
test/provider_type_test.dart
|
||||
test/room_api_test.dart
|
||||
test/room_create_or_update_detail_dto_test.dart
|
||||
test/room_detail_dto_test.dart
|
||||
test/room_main_detail_dto_all_of_test.dart
|
||||
test/room_main_detail_dto_test.dart
|
||||
test/room_summary_dto_test.dart
|
||||
test/screen_device_api_test.dart
|
||||
test/screen_device_test.dart
|
||||
test/smart_garden_message_test.dart
|
||||
test/smart_printer_message_test.dart
|
||||
test/time_period_alarm_alarm_mode_test.dart
|
||||
test/time_period_alarm_test.dart
|
||||
test/token_api_test.dart
|
||||
test/token_dto_test.dart
|
||||
test/trigger_test.dart
|
||||
test/trigger_type_test.dart
|
||||
test/twitter_api_test.dart
|
||||
test/twitter_auth_model_test.dart
|
||||
test/user_api_test.dart
|
||||
test/user_info_detail_dto_test.dart
|
||||
test/user_info_test.dart
|
||||
test/user_test.dart
|
||||
test/values_api_test.dart
|
||||
test/view_by_test.dart
|
||||
|
||||
@ -1 +1 @@
|
||||
5.1.0
|
||||
unset
|
||||
@ -6,7 +6,7 @@
|
||||
language: dart
|
||||
dart:
|
||||
# Install a specific stable release
|
||||
- "2.2.0"
|
||||
- "2.12"
|
||||
install:
|
||||
- pub get
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# mycoreapi
|
||||
# mycore_api
|
||||
API description
|
||||
|
||||
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
@ -8,7 +8,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https://
|
||||
|
||||
## Requirements
|
||||
|
||||
Dart 2.0 or later
|
||||
Dart 2.12 or later
|
||||
|
||||
## Installation & Usage
|
||||
|
||||
@ -16,7 +16,7 @@ Dart 2.0 or later
|
||||
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
|
||||
```
|
||||
dependencies:
|
||||
mycoreapi:
|
||||
mycore_api:
|
||||
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
||||
```
|
||||
|
||||
@ -24,8 +24,8 @@ dependencies:
|
||||
To use the package in your local drive, add the following dependency to your pubspec.yaml
|
||||
```
|
||||
dependencies:
|
||||
mycoreapi:
|
||||
path: /path/to/mycoreapi
|
||||
mycore_api:
|
||||
path: /path/to/mycore_api
|
||||
```
|
||||
|
||||
## Tests
|
||||
@ -37,7 +37,7 @@ TODO
|
||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
||||
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
@ -56,7 +56,7 @@ try {
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
@ -167,6 +167,8 @@ Class | Method | HTTP request | Description
|
||||
- [AlarmModeDTO](doc\/AlarmModeDTO.md)
|
||||
- [AlarmModeDetailDTO](doc\/AlarmModeDetailDTO.md)
|
||||
- [AlarmModeDetailDTOAllOf](doc\/AlarmModeDetailDTOAllOf.md)
|
||||
- [AlarmModeGeolocalizedMode](doc\/AlarmModeGeolocalizedMode.md)
|
||||
- [AlarmModeProgrammedMode](doc\/AlarmModeProgrammedMode.md)
|
||||
- [AlarmTriggered](doc\/AlarmTriggered.md)
|
||||
- [AlarmType](doc\/AlarmType.md)
|
||||
- [AutomationDTO](doc\/AutomationDTO.md)
|
||||
@ -177,6 +179,7 @@ Class | Method | HTTP request | Description
|
||||
- [AzureADAuthModel](doc\/AzureADAuthModel.md)
|
||||
- [Book](doc\/Book.md)
|
||||
- [Condition](doc\/Condition.md)
|
||||
- [ConditionState](doc\/ConditionState.md)
|
||||
- [ConditionType](doc\/ConditionType.md)
|
||||
- [ConditionValue](doc\/ConditionValue.md)
|
||||
- [ConnectionStatus](doc\/ConnectionStatus.md)
|
||||
@ -192,6 +195,8 @@ Class | Method | HTTP request | Description
|
||||
- [EventDetailDTO](doc\/EventDetailDTO.md)
|
||||
- [EventDetailDTOAllOf](doc\/EventDetailDTOAllOf.md)
|
||||
- [EventFilter](doc\/EventFilter.md)
|
||||
- [EventGetDeviceTypeParameter](doc\/EventGetDeviceTypeParameter.md)
|
||||
- [EventGetEventTypeParameter](doc\/EventGetEventTypeParameter.md)
|
||||
- [EventHomeFilter](doc\/EventHomeFilter.md)
|
||||
- [EventHomeFilterAllOf](doc\/EventHomeFilterAllOf.md)
|
||||
- [EventType](doc\/EventType.md)
|
||||
@ -204,13 +209,16 @@ Class | Method | HTTP request | Description
|
||||
- [GroupDetailDTOAllOf](doc\/GroupDetailDTOAllOf.md)
|
||||
- [GroupSummaryDTO](doc\/GroupSummaryDTO.md)
|
||||
- [HomeDTO](doc\/HomeDTO.md)
|
||||
- [HomeDTOCurrentAlarmMode](doc\/HomeDTOCurrentAlarmMode.md)
|
||||
- [HomeDetailDTO](doc\/HomeDetailDTO.md)
|
||||
- [HomeDetailDTOAllOf](doc\/HomeDetailDTOAllOf.md)
|
||||
- [ListResponseOfEventDetailDTOAndEventHomeFilter](doc\/ListResponseOfEventDetailDTOAndEventHomeFilter.md)
|
||||
- [ListResponseOfEventDetailDTOAndEventHomeFilterRequestParameters](doc\/ListResponseOfEventDetailDTOAndEventHomeFilterRequestParameters.md)
|
||||
- [LoginDTO](doc\/LoginDTO.md)
|
||||
- [MeansOfCommunication](doc\/MeansOfCommunication.md)
|
||||
- [MqttMessageDTO](doc\/MqttMessageDTO.md)
|
||||
- [OddNice](doc\/OddNice.md)
|
||||
- [OddNiceOdds](doc\/OddNiceOdds.md)
|
||||
- [OddObject](doc\/OddObject.md)
|
||||
- [PanelMenuItem](doc\/PanelMenuItem.md)
|
||||
- [PanelSection](doc\/PanelSection.md)
|
||||
@ -226,6 +234,7 @@ Class | Method | HTTP request | Description
|
||||
- [SmartGardenMessage](doc\/SmartGardenMessage.md)
|
||||
- [SmartPrinterMessage](doc\/SmartPrinterMessage.md)
|
||||
- [TimePeriodAlarm](doc\/TimePeriodAlarm.md)
|
||||
- [TimePeriodAlarmAlarmMode](doc\/TimePeriodAlarmAlarmMode.md)
|
||||
- [TokenDTO](doc\/TokenDTO.md)
|
||||
- [Trigger](doc\/Trigger.md)
|
||||
- [TriggerType](doc\/TriggerType.md)
|
||||
@ -252,4 +261,3 @@ Class | Method | HTTP request | Description
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
0
mycore_api/analysis_options.yaml
Normal file
0
mycore_api/analysis_options.yaml
Normal file
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.Action
|
||||
# mycore_api.model.Action
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.ActionType
|
||||
# mycore_api.model.ActionType
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.AlarmApi
|
||||
# mycore_api.api.AlarmApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -26,7 +26,7 @@ Activate specified alarm mode
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -69,7 +69,7 @@ Create an alarm mode
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -112,7 +112,7 @@ Create default alarm modes
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -155,7 +155,7 @@ Delete an alarm mode
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -198,7 +198,7 @@ Delete all alarm mode for a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -241,7 +241,7 @@ Get all alarm modes for the specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -284,7 +284,7 @@ Get detail info of a specified alarm mode
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -327,7 +327,7 @@ Update an alarm mode
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmMode
|
||||
# mycore_api.model.AlarmMode
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -17,8 +17,8 @@ Name | Type | Description | Notes
|
||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**type** | [**AlarmType**](AlarmType.md) | | [optional]
|
||||
**programmedMode** | [**OneOfProgrammedMode**](OneOfProgrammedMode.md) | | [optional]
|
||||
**geolocalizedMode** | [**OneOfGeolocalizedMode**](OneOfGeolocalizedMode.md) | | [optional]
|
||||
**programmedMode** | [**AlarmModeProgrammedMode**](AlarmModeProgrammedMode.md) | | [optional]
|
||||
**geolocalizedMode** | [**AlarmModeGeolocalizedMode**](AlarmModeGeolocalizedMode.md) | | [optional]
|
||||
**triggers** | [**List<Trigger>**](Trigger.md) | | [optional] [default to const []]
|
||||
**actions** | [**List<Action>**](Action.md) | | [optional] [default to const []]
|
||||
**devicesIds** | **List<String>** | | [optional] [default to const []]
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmModeCreateOrUpdateDetailDTO
|
||||
# mycore_api.model.AlarmModeCreateOrUpdateDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmModeCreateOrUpdateDetailDTOAllOf
|
||||
# mycore_api.model.AlarmModeCreateOrUpdateDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmModeDTO
|
||||
# mycore_api.model.AlarmModeDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmModeDetailDTO
|
||||
# mycore_api.model.AlarmModeDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmModeDetailDTOAllOf
|
||||
# mycore_api.model.AlarmModeDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
18
mycore_api/doc/AlarmModeGeolocalizedMode.md
Normal file
18
mycore_api/doc/AlarmModeGeolocalizedMode.md
Normal file
@ -0,0 +1,18 @@
|
||||
# mycore_api.model.AlarmModeGeolocalizedMode
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**latitude** | **String** | | [optional]
|
||||
**longitude** | **String** | | [optional]
|
||||
**homeMode** | [**TimePeriodAlarmAlarmMode**](TimePeriodAlarmAlarmMode.md) | | [optional]
|
||||
**absentMode** | [**TimePeriodAlarmAlarmMode**](TimePeriodAlarmAlarmMode.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
21
mycore_api/doc/AlarmModeProgrammedMode.md
Normal file
21
mycore_api/doc/AlarmModeProgrammedMode.md
Normal file
@ -0,0 +1,21 @@
|
||||
# mycore_api.model.AlarmModeProgrammedMode
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**monday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**tuesday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**wednesday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**thursday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**friday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**saturday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.md) | | [optional] [default to const []]
|
||||
**sunday** | [**List<TimePeriodAlarm>**](TimePeriodAlarm.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)
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmTriggered
|
||||
# mycore_api.model.AlarmTriggered
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AlarmType
|
||||
# mycore_api.model.AlarmType
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.AuthenticationApi
|
||||
# mycore_api.api.AuthenticationApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -20,7 +20,7 @@ Authenticate with form parameters (used by Swagger test client)
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -71,7 +71,7 @@ Authenticate with Json parameters (used by most clients)
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.AutomationApi
|
||||
# mycore_api.api.AutomationApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -24,7 +24,7 @@ Create an automation
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -67,7 +67,7 @@ Delete an automation
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -110,7 +110,7 @@ Delete all automation for a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -153,7 +153,7 @@ Get all automations for the specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -196,7 +196,7 @@ Get detail info of a specified automation
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -239,7 +239,7 @@ Update an automation
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AutomationDTO
|
||||
# mycore_api.model.AutomationDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AutomationDetailDTO
|
||||
# mycore_api.model.AutomationDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AutomationDetailDTOAllOf
|
||||
# mycore_api.model.AutomationDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AutomationState
|
||||
# mycore_api.model.AutomationState
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AutomationTriggered
|
||||
# mycore_api.model.AutomationTriggered
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.AzureADAuthModel
|
||||
# mycore_api.model.AzureADAuthModel
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.AzureApi
|
||||
# mycore_api.api.AzureApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -19,7 +19,7 @@ Method | HTTP request | Description
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.Book
|
||||
# mycore_api.model.Book
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.BooksApi
|
||||
# mycore_api.api.BooksApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -23,7 +23,7 @@ Method | HTTP request | Description
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -66,7 +66,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -109,7 +109,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -152,7 +152,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -191,7 +191,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
# mycoreapi.model.Condition
|
||||
# mycore_api.model.Condition
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**deviceId** | **String** | | [optional]
|
||||
**state** | [**OneOfAutomationState**](OneOfAutomationState.md) | | [optional]
|
||||
**state** | [**ConditionState**](ConditionState.md) | | [optional]
|
||||
**startTime** | **String** | | [optional]
|
||||
**endTime** | **String** | | [optional]
|
||||
**type** | [**ConditionType**](ConditionType.md) | | [optional]
|
||||
|
||||
16
mycore_api/doc/ConditionState.md
Normal file
16
mycore_api/doc/ConditionState.md
Normal file
@ -0,0 +1,16 @@
|
||||
# mycore_api.model.ConditionState
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **String** | | [optional]
|
||||
**value** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.ConditionType
|
||||
# mycore_api.model.ConditionType
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.ConditionValue
|
||||
# mycore_api.model.ConditionValue
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.ConnectionStatus
|
||||
# mycore_api.model.ConnectionStatus
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.CreateOrUpdateHomeDTO
|
||||
# mycore_api.model.CreateOrUpdateHomeDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
**isAlarm** | **bool** | | [optional]
|
||||
**isDefault** | **bool** | | [optional]
|
||||
**currentAlarmMode** | [**OneOfAlarmModeDTO**](OneOfAlarmModeDTO.md) | | [optional]
|
||||
**currentAlarmMode** | [**HomeDTOCurrentAlarmMode**](HomeDTOCurrentAlarmMode.md) | | [optional]
|
||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**usersIds** | **List<String>** | | [optional] [default to const []]
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.CreateOrUpdateHomeDTOAllOf
|
||||
# mycore_api.model.CreateOrUpdateHomeDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.DeviceApi
|
||||
# mycore_api.api.DeviceApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -30,7 +30,7 @@ Create a device
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -73,7 +73,7 @@ Create devices from provider
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -118,7 +118,7 @@ Delete a device
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -161,7 +161,7 @@ Delete all device for a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -204,7 +204,7 @@ Delete devices from provider
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -249,7 +249,7 @@ Get all devices summary
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -292,7 +292,7 @@ Get a specific device info
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -335,7 +335,7 @@ Get list of devices from a type
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -380,7 +380,7 @@ Get devices from provider
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -425,7 +425,7 @@ Get all zigbee2Mqtt devices
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -468,7 +468,7 @@ Send action to device
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -511,7 +511,7 @@ Update a device
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.DeviceDetailDTO
|
||||
# mycore_api.model.DeviceDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.DeviceDetailDTOAllOf
|
||||
# mycore_api.model.DeviceDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.DeviceState
|
||||
# mycore_api.model.DeviceState
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.DeviceSummaryDTO
|
||||
# mycore_api.model.DeviceSummaryDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.DeviceType
|
||||
# mycore_api.model.DeviceType
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.ElectricityProduction
|
||||
# mycore_api.model.ElectricityProduction
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.EnergyApi
|
||||
# mycore_api.api.EnergyApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -19,7 +19,7 @@ Get summary production of Kwh/Year
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.EventApi
|
||||
# mycore_api.api.EventApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -22,7 +22,7 @@ Delete an event
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -65,7 +65,7 @@ Delete all events for a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -108,7 +108,7 @@ Get events for the specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -120,8 +120,8 @@ final startIndex = 56; // int |
|
||||
final count = 56; // int |
|
||||
final dateStart = 2013-10-20T19:20:30+01:00; // DateTime |
|
||||
final dateEnd = 2013-10-20T19:20:30+01:00; // DateTime |
|
||||
final eventType = ; // OneOfEventType |
|
||||
final deviceType = ; // OneOfDeviceType |
|
||||
final eventType = ; // EventGetEventTypeParameter |
|
||||
final deviceType = ; // EventGetDeviceTypeParameter |
|
||||
|
||||
try {
|
||||
final result = api_instance.eventGet(homeId, deviceId, roomId, startIndex, count, dateStart, dateEnd, eventType, deviceType);
|
||||
@ -142,8 +142,8 @@ Name | Type | Description | Notes
|
||||
**count** | **int**| | [optional]
|
||||
**dateStart** | **DateTime**| | [optional]
|
||||
**dateEnd** | **DateTime**| | [optional]
|
||||
**eventType** | [**OneOfEventType**](.md)| | [optional]
|
||||
**deviceType** | [**OneOfDeviceType**](.md)| | [optional]
|
||||
**eventType** | [**EventGetEventTypeParameter**](.md)| | [optional]
|
||||
**deviceType** | [**EventGetDeviceTypeParameter**](.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -167,7 +167,7 @@ Get detail info of a specified event
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventDTO
|
||||
# mycore_api.model.EventDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventDetailDTO
|
||||
# mycore_api.model.EventDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventDetailDTOAllOf
|
||||
# mycore_api.model.EventDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventFilter
|
||||
# mycore_api.model.EventFilter
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -12,8 +12,8 @@ Name | Type | Description | Notes
|
||||
**count** | **int** | | [optional]
|
||||
**dateStart** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**dateEnd** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**eventType** | [**OneOfEventType**](OneOfEventType.md) | | [optional]
|
||||
**deviceType** | [**OneOfDeviceType**](OneOfDeviceType.md) | | [optional]
|
||||
**eventType** | [**EventGetEventTypeParameter**](EventGetEventTypeParameter.md) | | [optional]
|
||||
**deviceType** | [**EventGetDeviceTypeParameter**](EventGetDeviceTypeParameter.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
14
mycore_api/doc/EventGetDeviceTypeParameter.md
Normal file
14
mycore_api/doc/EventGetDeviceTypeParameter.md
Normal file
@ -0,0 +1,14 @@
|
||||
# mycore_api.model.EventGetDeviceTypeParameter
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
14
mycore_api/doc/EventGetEventTypeParameter.md
Normal file
14
mycore_api/doc/EventGetEventTypeParameter.md
Normal file
@ -0,0 +1,14 @@
|
||||
# mycore_api.model.EventGetEventTypeParameter
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventHomeFilter
|
||||
# mycore_api.model.EventHomeFilter
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -12,8 +12,8 @@ Name | Type | Description | Notes
|
||||
**count** | **int** | | [optional]
|
||||
**dateStart** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**dateEnd** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**eventType** | [**OneOfEventType**](OneOfEventType.md) | | [optional]
|
||||
**deviceType** | [**OneOfDeviceType**](OneOfDeviceType.md) | | [optional]
|
||||
**eventType** | [**EventGetEventTypeParameter**](EventGetEventTypeParameter.md) | | [optional]
|
||||
**deviceType** | [**EventGetDeviceTypeParameter**](EventGetDeviceTypeParameter.md) | | [optional]
|
||||
**deviceId** | **String** | | [optional]
|
||||
**roomId** | **String** | | [optional]
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventHomeFilterAllOf
|
||||
# mycore_api.model.EventHomeFilterAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.EventType
|
||||
# mycore_api.model.EventType
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.FacebookApi
|
||||
# mycore_api.api.FacebookApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -19,7 +19,7 @@ Method | HTTP request | Description
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.FacebookAuthModel
|
||||
# mycore_api.model.FacebookAuthModel
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GeolocalizedMode
|
||||
# mycore_api.model.GeolocalizedMode
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -10,8 +10,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**latitude** | **String** | | [optional]
|
||||
**longitude** | **String** | | [optional]
|
||||
**homeMode** | [**OneOfAlarmMode**](OneOfAlarmMode.md) | | [optional]
|
||||
**absentMode** | [**OneOfAlarmMode**](OneOfAlarmMode.md) | | [optional]
|
||||
**homeMode** | [**TimePeriodAlarmAlarmMode**](TimePeriodAlarmAlarmMode.md) | | [optional]
|
||||
**absentMode** | [**TimePeriodAlarmAlarmMode**](TimePeriodAlarmAlarmMode.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.GoogleApi
|
||||
# mycore_api.api.GoogleApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -19,7 +19,7 @@ Method | HTTP request | Description
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GoogleAuthModel
|
||||
# mycore_api.model.GoogleAuthModel
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.GroupApi
|
||||
# mycore_api.api.GroupApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -28,7 +28,7 @@ Create a group
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -71,7 +71,7 @@ Create groups from provider
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -114,7 +114,7 @@ Delete device from a group
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -159,7 +159,7 @@ Delete a group
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -202,7 +202,7 @@ Delete all group for a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -245,7 +245,7 @@ Get all groups for the specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -288,7 +288,7 @@ Get detail info of a specified group
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -331,7 +331,7 @@ Get list of group from a type
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -376,7 +376,7 @@ Get all zigbee2Mqtt groups
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -419,7 +419,7 @@ Update a group
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GroupCreateOrUpdateDetailDTO
|
||||
# mycore_api.model.GroupCreateOrUpdateDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GroupCreateOrUpdateDetailDTOAllOf
|
||||
# mycore_api.model.GroupCreateOrUpdateDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GroupDetailDTO
|
||||
# mycore_api.model.GroupDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GroupDetailDTOAllOf
|
||||
# mycore_api.model.GroupDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.GroupSummaryDTO
|
||||
# mycore_api.model.GroupSummaryDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.HomeApi
|
||||
# mycore_api.api.HomeApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -23,7 +23,7 @@ Create a home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -66,7 +66,7 @@ Delete a home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -109,7 +109,7 @@ Get all home for specified user
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -152,7 +152,7 @@ Get detail info of a specified home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -195,7 +195,7 @@ Update a home
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.HomeDTO
|
||||
# mycore_api.model.HomeDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
**isAlarm** | **bool** | | [optional]
|
||||
**isDefault** | **bool** | | [optional]
|
||||
**currentAlarmMode** | [**OneOfAlarmModeDTO**](OneOfAlarmModeDTO.md) | | [optional]
|
||||
**currentAlarmMode** | [**HomeDTOCurrentAlarmMode**](HomeDTOCurrentAlarmMode.md) | | [optional]
|
||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**usersIds** | **List<String>** | | [optional] [default to const []]
|
||||
|
||||
23
mycore_api/doc/HomeDTOCurrentAlarmMode.md
Normal file
23
mycore_api/doc/HomeDTOCurrentAlarmMode.md
Normal file
@ -0,0 +1,23 @@
|
||||
# mycore_api.model.HomeDTOCurrentAlarmMode
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | | [optional]
|
||||
**homeId** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**type** | [**AlarmType**](AlarmType.md) | | [optional]
|
||||
**activated** | **bool** | | [optional]
|
||||
**isDefault** | **bool** | | [optional]
|
||||
**notification** | **bool** | | [optional]
|
||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.HomeDetailDTO
|
||||
# mycore_api.model.HomeDetailDTO
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
**isAlarm** | **bool** | | [optional]
|
||||
**isDefault** | **bool** | | [optional]
|
||||
**currentAlarmMode** | [**OneOfAlarmModeDTO**](OneOfAlarmModeDTO.md) | | [optional]
|
||||
**currentAlarmMode** | [**HomeDTOCurrentAlarmMode**](HomeDTOCurrentAlarmMode.md) | | [optional]
|
||||
**createdDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**usersIds** | **List<String>** | | [optional] [default to const []]
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# mycoreapi.model.HomeDetailDTOAllOf
|
||||
# mycore_api.model.HomeDetailDTOAllOf
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.IOTApi
|
||||
# mycore_api.api.IOTApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -21,7 +21,7 @@ Retrieve all SmartPrinterMessage
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -66,7 +66,7 @@ It's the method to post data from mqtt broker to Database (Thanks Rpi!)
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
@ -111,7 +111,7 @@ It's the method to post data from mqtt broker to Database (Thanks Rpi!)
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
# mycoreapi.api.LayoutApi
|
||||
# mycore_api.api.LayoutApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost:5000*
|
||||
All URIs are relative to *http://192.168.31.140*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@ -19,7 +19,7 @@ It's a test ! :)
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:mycoreapi/api.dart';
|
||||
import 'package:mycore_api/api.dart';
|
||||
// TODO Configure OAuth2 access token for authorization: bearer
|
||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user