Browse Source

first prototype of event alerting

master
Niklas Gschaider 11 months ago
parent
commit
2aceba8299
  1. 860
      .gitignore
  2. 14
      .idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml
  3. 14
      .idea/.idea.ngschaiderBot/.idea/indexLayout.xml
  4. 10
      .idea/.idea.ngschaiderBot/.idea/misc.xml
  5. 16
      .idea/.idea.ngschaiderBot/.idea/modules.xml
  6. 10
      .idea/.idea.ngschaiderBot/.idea/projectSettingsUpdater.xml
  7. 10
      .idea/.idea.ngschaiderBot/.idea/vcs.xml
  8. 14
      .idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml
  9. 14
      .idea/.idea.usrspaceBot/.idea/indexLayout.xml
  10. 16
      .idea/.idea.usrspaceBot/.idea/misc.xml
  11. 16
      .idea/.idea.usrspaceBot/.idea/modules.xml
  12. 10
      .idea/.idea.usrspaceBot/.idea/projectSettingsUpdater.xml
  13. 10
      .idea/.idea.usrspaceBot/.idea/vcs.xml
  14. 12
      .idea/.idea.usrspaceBot/riderModule.iml
  15. 1242
      LICENSE
  16. 6
      README.md
  17. 16
      ngschaider.CalendarAPI/CalendarException.cs
  18. 48
      ngschaider.CalendarAPI/Event.cs
  19. 48
      ngschaider.SpaceAPI/SpaceAPI.cs
  20. 16
      ngschaider.SpaceAPI/SpaceAPIException.cs
  21. 92
      ngschaider.SpaceAPI/SpaceAPIResults.cs
  22. 22
      ngschaider.SpaceAPI/Types/Cache.cs
  23. 70
      ngschaider.SpaceAPI/Types/Contact.cs
  24. 34
      ngschaider.SpaceAPI/Types/Event.cs
  25. 26
      ngschaider.SpaceAPI/Types/Feed.cs
  26. 34
      ngschaider.SpaceAPI/Types/FeedCollection.cs
  27. 30
      ngschaider.SpaceAPI/Types/GeoLocation.cs
  28. 38
      ngschaider.SpaceAPI/Types/Person.cs
  29. 38
      ngschaider.SpaceAPI/Types/RadioShow.cs
  30. 22
      ngschaider.SpaceAPI/Types/Sensors/BoolSensor.cs
  31. 30
      ngschaider.SpaceAPI/Types/Sensors/DescriptiveSensor.cs
  32. 26
      ngschaider.SpaceAPI/Types/Sensors/Machine.cs
  33. 30
      ngschaider.SpaceAPI/Types/Sensors/NetworkConnection.cs
  34. 26
      ngschaider.SpaceAPI/Types/Sensors/Numeric.cs
  35. 22
      ngschaider.SpaceAPI/Types/Sensors/NumericNamesSensor.cs
  36. 22
      ngschaider.SpaceAPI/Types/Sensors/NumericSensor.cs
  37. 22
      ngschaider.SpaceAPI/Types/Sensors/NumericUnitSensor.cs
  38. 34
      ngschaider.SpaceAPI/Types/Sensors/RadiationSensorCollection.cs
  39. 26
      ngschaider.SpaceAPI/Types/Sensors/RadiationUnitSensor.cs
  40. 68
      ngschaider.SpaceAPI/Types/Sensors/SensorCollection.cs
  41. 34
      ngschaider.SpaceAPI/Types/Sensors/WindProperties.cs
  42. 22
      ngschaider.SpaceAPI/Types/Sensors/WindSensor.cs
  43. 30
      ngschaider.SpaceAPI/Types/SpaceFED.cs
  44. 38
      ngschaider.SpaceAPI/Types/State.cs
  45. 26
      ngschaider.SpaceAPI/Types/StateIcon.cs
  46. 30
      ngschaider.SpaceAPI/Types/Stream.cs
  47. 28
      ngschaider.SpaceAPI/ngschaider.SpaceAPI.csproj
  48. 74
      usrspaceBot.sln
  49. 6
      usrspaceBot.sln.DotSettings
  50. 36
      usrspaceBot/Commands/BotinfoCommand.cs
  51. 48
      usrspaceBot/Commands/BroadcastCommand.cs
  52. 80
      usrspaceBot/Commands/HelpCommand.cs
  53. 38
      usrspaceBot/Commands/MyUserCommand.cs
  54. 30
      usrspaceBot/Commands/PingCommand.cs
  55. 74
      usrspaceBot/Commands/PrintsetcommandsCommand.cs
  56. 116
      usrspaceBot/Commands/SQLCommand.cs
  57. 34
      usrspaceBot/Commands/StartCommand.cs
  58. 54
      usrspaceBot/Commands/StateCommand.cs
  59. 332
      usrspaceBot/Conversations/GroupConversation.cs
  60. 183
      usrspaceBot/Conversations/SubscriptionConversation.cs
  61. 186
      usrspaceBot/Conversations/UserConversation.cs
  62. 226
      usrspaceBot/Core/Command.cs
  63. 124
      usrspaceBot/Core/Conversation.cs
  64. 112
      usrspaceBot/Database.cs
  65. 100
      usrspaceBot/Handler/CommandHandler.cs
  66. 148
      usrspaceBot/Handler/ConversationHandler.cs
  67. 68
      usrspaceBot/Handler/GeneralHandler.cs
  68. 22
      usrspaceBot/Handler/IMessageHandler.cs
  69. 80
      usrspaceBot/Migrations/20200814161712_InitialCreate.Designer.cs
  70. 62
      usrspaceBot/Migrations/20200814161712_InitialCreate.cs
  71. 40
      usrspaceBot/Migrations/20200819120040_AddSubscriptions.cs
  72. 214
      usrspaceBot/Migrations/20200820094250_InitialCreate.Designer.cs
  73. 97
      usrspaceBot/Migrations/20200820094250_InitialCreate.cs
  74. 210
      usrspaceBot/Migrations/DatabaseModelSnapshot.cs
  75. 104
      usrspaceBot/Models/Group.cs
  76. 39
      usrspaceBot/Models/Subscription.cs
  77. 166
      usrspaceBot/Models/User.cs
  78. 130
      usrspaceBot/Program.cs
  79. 58
      usrspaceBot/Settings.cs
  80. 180
      usrspaceBot/TelegramBot.cs
  81. 186
      usrspaceBot/Utils/Crypto.cs
  82. 22
      usrspaceBot/Utils/Emoji.cs
  83. 40
      usrspaceBot/Utils/Keyboard.cs
  84. 26
      usrspaceBot/Utils/LogLevel.cs
  85. 30
      usrspaceBot/Utils/Logger.cs
  86. 16
      usrspaceBot/Utils/Permission.cs
  87. 40
      usrspaceBot/Utils/QR.cs
  88. 24
      usrspaceBot/Utils/RegexUtils.cs
  89. 362
      usrspaceBot/Utils/Table.cs
  90. BIN
      usrspaceBot/database.sqlite
  91. 70
      usrspaceBot/usrspaceBot.csproj

860
.gitignore

@ -1,430 +1,430 @@
# ---> VisualStudio
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*[.json, .xml, .info]
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# ---> JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
*SettingsSecret.cs
# ---> VisualStudio
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*[.json, .xml, .info]
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# ---> JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
*SettingsSecret.cs

14
.idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

14
.idea/.idea.ngschaiderBot/.idea/indexLayout.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

10
.idea/.idea.ngschaiderBot/.idea/misc.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
</project>

16
.idea/.idea.ngschaiderBot/.idea/modules.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml" filepath="$PROJECT_DIR$/.idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.ngschaiderBot/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.ngschaiderBot/riderModule.iml" />
</modules>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml" filepath="$PROJECT_DIR$/.idea/.idea.ngschaiderBot/.idea/.idea.ngschaiderBot.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.ngschaiderBot/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.ngschaiderBot/riderModule.iml" />
</modules>
</component>
</project>

10
.idea/.idea.ngschaiderBot/.idea/projectSettingsUpdater.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
</project>

10
.idea/.idea.ngschaiderBot/.idea/vcs.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

14
.idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

14
.idea/.idea.usrspaceBot/.idea/indexLayout.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

16
.idea/.idea.usrspaceBot/.idea/misc.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
</project>

16
.idea/.idea.usrspaceBot/.idea/modules.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml" filepath="$PROJECT_DIR$/.idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.usrspaceBot/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.usrspaceBot/riderModule.iml" />
</modules>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml" filepath="$PROJECT_DIR$/.idea/.idea.usrspaceBot/.idea/.idea.usrspaceBot.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.usrspaceBot/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.usrspaceBot/riderModule.iml" />
</modules>
</component>
</project>

10
.idea/.idea.usrspaceBot/.idea/projectSettingsUpdater.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
</project>

10
.idea/.idea.usrspaceBot/.idea/vcs.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

12
.idea/.idea.usrspaceBot/riderModule.iml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$/../.." />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$/../.." />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

1242
LICENSE
File diff suppressed because it is too large
View File

6
README.md

@ -1,3 +1,3 @@
# usrspace-telegram-bot
Telegram Bot providing useful information and tools regarding /usr/space
# usrspace-telegram-bot
Telegram Bot providing useful information and tools regarding /usr/space

16
ngschaider.CalendarAPI/CalendarException.cs

@ -1,9 +1,9 @@
using System;
namespace ngschaider.CalendarAPI {
public class CalendarAPIException : Exception {
}
using System;
namespace ngschaider.CalendarAPI {
public class CalendarAPIException : Exception {
}
}

48
ngschaider.CalendarAPI/Event.cs

@ -1,21 +1,29 @@
using System;
using Newtonsoft.Json;
namespace ngschaider.CalendarAPI {
public class Event {
[JsonProperty("name")]
public string Name;
[JsonProperty("begin")]
public DateTime Begin;
[JsonProperty("end")]
public DateTime End;
[JsonProperty("location")]
public string Location;
[JsonProperty("description")]
public string Description;
}
using System;
using Newtonsoft.Json;
namespace ngschaider.CalendarAPI {
public class Event {
[JsonProperty("name")] public string Name;
[JsonProperty("begin")] public DateTime Begin;
[JsonProperty("end")] public DateTime End;
[JsonProperty("location")] public string Location;
[JsonProperty("description")] public string Description;
public string GetInfo(string format = "") {
string fs = format == "html" ? "<b>" : "";
string fe = format == "html" ? "</b>" : "";
string lb = format == "html" ? "<br>" : "\n";
string message = $"{fs}Name:{fe} " + Name + lb;
message += $"{fs}Beginn:{fe} " + Begin.ToShortTimeString() + lb;
message += $"{fs}Ende:{fe} " + End.ToShortTimeString() + lb;
message += $"{fs}Ort:{fe} " + Location + lb;
return message;
}
}
}

48
ngschaider.SpaceAPI/SpaceAPI.cs

@ -1,25 +1,25 @@
using RestSharp;
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI {
public static class SpaceAPI {
private static readonly RestClient client = new RestClient();
public static SpaceAPIResults GetResults(string apiUrl) {
RestRequest request = new RestRequest(apiUrl, Method.GET, DataFormat.Json);
IRestResponse response = client.Execute(request);
try {
SpaceAPIResults results = JsonConvert.DeserializeObject<SpaceAPIResults>(response.Content);
return results;
} catch (JsonReaderException) {
throw new SpaceAPIException();
}
}
}
using RestSharp;
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI {
public static class SpaceAPI {
private static readonly RestClient client = new RestClient();
public static SpaceAPIResults GetResults(string apiUrl) {
RestRequest request = new RestRequest(apiUrl, Method.GET, DataFormat.Json);
IRestResponse response = client.Execute(request);
try {
SpaceAPIResults results = JsonConvert.DeserializeObject<SpaceAPIResults>(response.Content);
return results;
} catch (JsonReaderException) {
throw new SpaceAPIException();
}
}
}
}

16
ngschaider.SpaceAPI/SpaceAPIException.cs

@ -1,9 +1,9 @@
using System;
namespace ngschaider.SpaceAPI {
public class SpaceAPIException : Exception {
}
using System;
namespace ngschaider.SpaceAPI {
public class SpaceAPIException : Exception {
}
}

92
ngschaider.SpaceAPI/SpaceAPIResults.cs

@ -1,47 +1,47 @@
using System.Runtime.Serialization;
using Newtonsoft.Json;
using ngschaider.SpaceAPI.Types;
using ngschaider.SpaceAPI.Types.Sensors;
namespace ngschaider.SpaceAPI {
public class SpaceAPIResults {
[JsonProperty("api")]
public string APIVersion;
[JsonProperty("space")]
public string SpaceName;
[JsonProperty("logo")]
public string LogoUrl;
[JsonProperty("url")]
public string Url;
[JsonProperty("location")]
public GeoLocation Location;
[JsonProperty("spacefed")]
public SpaceFED SpaceFED;
[JsonProperty("cam")]
public string[] Cam;
[JsonProperty("stream")]
public Stream Stream;
[JsonProperty("state")]
public State State;
[JsonProperty("events")]
public Event[] Events;
[JsonProperty("contact")]
public Contact Contact;
[JsonProperty("issue_report_channels")]
public string[] IssueReportChannels;
[JsonProperty("sensors")]
public SensorCollection[] Sensors;
[JsonProperty("feeds")]
public FeedCollection Feeds;
[DataMember(Name="cache")]
public Cache Cache;
[DataMember(Name="projects")]
public string[] Projects;
[DataMember(Name="radio_show")]
public RadioShow[] RadioShows;
}
using System.Runtime.Serialization;
using Newtonsoft.Json;
using ngschaider.SpaceAPI.Types;
using ngschaider.SpaceAPI.Types.Sensors;
namespace ngschaider.SpaceAPI {
public class SpaceAPIResults {
[JsonProperty("api")]
public string APIVersion;
[JsonProperty("space")]
public string SpaceName;
[JsonProperty("logo")]
public string LogoUrl;
[JsonProperty("url")]
public string Url;
[JsonProperty("location")]
public GeoLocation Location;
[JsonProperty("spacefed")]
public SpaceFED SpaceFED;
[JsonProperty("cam")]
public string[] Cam;
[JsonProperty("stream")]
public Stream Stream;
[JsonProperty("state")]
public State State;
[JsonProperty("events")]
public Event[] Events;
[JsonProperty("contact")]
public Contact Contact;
[JsonProperty("issue_report_channels")]
public string[] IssueReportChannels;
[JsonProperty("sensors")]
public SensorCollection[] Sensors;
[JsonProperty("feeds")]
public FeedCollection Feeds;
[DataMember(Name="cache")]
public Cache Cache;
[DataMember(Name="projects")]
public string[] Projects;
[DataMember(Name="radio_show")]
public RadioShow[] RadioShows;
}
}

22
ngschaider.SpaceAPI/Types/Cache.cs

@ -1,12 +1,12 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Cache {
[JsonProperty("schedule")]
public string Schedule;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Cache {
[JsonProperty("schedule")]
public string Schedule;
}
}

70
ngschaider.SpaceAPI/Types/Contact.cs

@ -1,36 +1,36 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Contact {
[JsonProperty("phone")]
public string Phone;
[JsonProperty("sip")]
public string SIP;
[JsonProperty("keymasters")]
public Person[] Keymasters;
[JsonProperty("irc")]
public string IRC;
[JsonProperty("twitter")]
public string Twitter;
[JsonProperty("facebook")]
public string Facebook;
[JsonProperty("google")]
public string Google;
[JsonProperty("identica")]
public string Identica;
[JsonProperty("foursquare")]
public string Foursquare;
[JsonProperty("email")]
public string Email;
[JsonProperty("ml")]
public string ML;
[JsonProperty("jabber")]
public string Jabber;
[JsonProperty("issue_mail")]
public string IssueMail;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Contact {
[JsonProperty("phone")]
public string Phone;
[JsonProperty("sip")]
public string SIP;
[JsonProperty("keymasters")]
public Person[] Keymasters;
[JsonProperty("irc")]
public string IRC;
[JsonProperty("twitter")]
public string Twitter;
[JsonProperty("facebook")]
public string Facebook;
[JsonProperty("google")]
public string Google;
[JsonProperty("identica")]
public string Identica;
[JsonProperty("foursquare")]
public string Foursquare;
[JsonProperty("email")]
public string Email;
[JsonProperty("ml")]
public string ML;
[JsonProperty("jabber")]
public string Jabber;
[JsonProperty("issue_mail")]
public string IssueMail;
}
}

34
ngschaider.SpaceAPI/Types/Event.cs

@ -1,18 +1,18 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Event {
[JsonProperty("name")]
public string Name;
[JsonProperty("type")]
public string Type;
[JsonProperty("timestamp")]
public int Timestamp;
[JsonProperty("extra")]
public string Extra;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Event {
[JsonProperty("name")]
public string Name;
[JsonProperty("type")]
public string Type;
[JsonProperty("timestamp")]
public int Timestamp;
[JsonProperty("extra")]
public string Extra;
}
}

26
ngschaider.SpaceAPI/Types/Feed.cs

@ -1,14 +1,14 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Feed {
[JsonProperty("type")]
public string Type;
[JsonProperty("url")]
public string Url;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Feed {
[JsonProperty("type")]
public string Type;
[JsonProperty("url")]
public string Url;
}
}

34
ngschaider.SpaceAPI/Types/FeedCollection.cs

@ -1,18 +1,18 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class FeedCollection {
[JsonProperty("blog")]
public Feed Blog;
[JsonProperty("wiki")]
public Feed Wiki;
[JsonProperty("calendar")]
public Feed Calendar;
[JsonProperty("flickr")]
public Feed Flickr;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class FeedCollection {
[JsonProperty("blog")]
public Feed Blog;
[JsonProperty("wiki")]
public Feed Wiki;
[JsonProperty("calendar")]
public Feed Calendar;
[JsonProperty("flickr")]
public Feed Flickr;
}
}

30
ngschaider.SpaceAPI/Types/GeoLocation.cs

@ -1,16 +1,16 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class GeoLocation {
[JsonProperty("lat")]
public float Latitude;
[JsonProperty("lon")]
public float Longitude;
[JsonProperty("address")]
public string Address;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class GeoLocation {
[JsonProperty("lat")]
public float Latitude;
[JsonProperty("lon")]
public float Longitude;
[JsonProperty("address")]
public string Address;
}
}

38
ngschaider.SpaceAPI/Types/Person.cs

@ -1,20 +1,20 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Person {
[JsonProperty("name")]
public string Name;
[JsonProperty("irc_nick")]
public string IRCNick;
[JsonProperty("phone")]
public string Phone;
[JsonProperty("email")]
public string Email;
[JsonProperty("twitter")]
public string Twitter;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class Person {
[JsonProperty("name")]
public string Name;
[JsonProperty("irc_nick")]
public string IRCNick;
[JsonProperty("phone")]
public string Phone;
[JsonProperty("email")]
public string Email;
[JsonProperty("twitter")]
public string Twitter;
}
}

38
ngschaider.SpaceAPI/Types/RadioShow.cs

@ -1,20 +1,20 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class RadioShow {
[JsonProperty("name")]
public string Name;
[JsonProperty("url")]
public string Url;
[JsonProperty("type")]
public string Type;
[JsonProperty("start")]
public string Start;
[JsonProperty("end")]
public string End;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types {
public class RadioShow {
[JsonProperty("name")]
public string Name;
[JsonProperty("url")]
public string Url;
[JsonProperty("type")]
public string Type;
[JsonProperty("start")]
public string Start;
[JsonProperty("end")]
public string End;
}
}

22
ngschaider.SpaceAPI/Types/Sensors/BoolSensor.cs

@ -1,12 +1,12 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class BoolSensor : DescriptiveSensor {
[JsonProperty("value")]
public bool Value;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class BoolSensor : DescriptiveSensor {
[JsonProperty("value")]
public bool Value;
}
}

30
ngschaider.SpaceAPI/Types/Sensors/DescriptiveSensor.cs

@ -1,16 +1,16 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class DescriptiveSensor {
[JsonProperty("name")]
public string Name;
[JsonProperty("location")]
public string Location;
[JsonProperty("description")]
public string Description;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class DescriptiveSensor {
[JsonProperty("name")]
public string Name;
[JsonProperty("location")]
public string Location;
[JsonProperty("description")]
public string Description;
}
}

26
ngschaider.SpaceAPI/Types/Sensors/Machine.cs

@ -1,14 +1,14 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class Machine {
[JsonProperty("name")]
public string Name;
[JsonProperty("mac")]
public string MAC;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class Machine {
[JsonProperty("name")]
public string Name;
[JsonProperty("mac")]
public string MAC;
}
}

30
ngschaider.SpaceAPI/Types/Sensors/NetworkConnection.cs

@ -1,16 +1,16 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class NetworkConnection : DescriptiveSensor {
[JsonProperty("type")]
public string Type;
[JsonProperty("value")]
public float Value;
[JsonProperty("machines")]
public Machine[] Machines;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class NetworkConnection : DescriptiveSensor {
[JsonProperty("type")]
public string Type;
[JsonProperty("value")]
public float Value;
[JsonProperty("machines")]
public Machine[] Machines;
}
}

26
ngschaider.SpaceAPI/Types/Sensors/Numeric.cs

@ -1,14 +1,14 @@
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class Numeric {
[JsonProperty("value")]
public float Value;
[JsonProperty("unit")]
public string Unit;
}
using Newtonsoft.Json;
namespace ngschaider.SpaceAPI.Types.Sensors {
public class Numeric {
[JsonProperty("value")]
public float Value;
[JsonProperty("unit")]
public string Unit;
}
}

22
ngschaider.SpaceAPI/Types/Sensors/NumericNamesSensor.cs

@ -1,12 +1,12 @@
using Newtonsoft.Json;