Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUB Terra
SMS
Frontend
Commits
2ad2a3d7
Commit
2ad2a3d7
authored
4 years ago
by
Marc Hanisch
Browse files
Options
Downloads
Patches
Plain Diff
sets defaults to null
parent
348a8bae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!33
Feature configuration models
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/Location.ts
+12
-12
12 additions, 12 deletions
models/Location.ts
with
12 additions
and
12 deletions
models/Location.ts
+
12
−
12
View file @
2ad2a3d7
...
...
@@ -3,41 +3,41 @@ import { DeviceProperty } from '@/models/DeviceProperty'
export
interface
IStationaryLocation
{
type
:
string
latitude
:
number
longitude
:
number
elevation
:
number
latitude
:
number
|
null
longitude
:
number
|
null
elevation
:
number
|
null
}
export
class
StationaryLocation
implements
IStationaryLocation
,
IPathSetter
{
private
_latitude
:
number
=
0
private
_longitude
:
number
=
0
private
_elevation
:
number
=
0
private
_latitude
:
number
|
null
=
null
private
_longitude
:
number
|
null
=
null
private
_elevation
:
number
|
null
=
null
get
type
():
string
{
return
'
stationary
'
}
get
latitude
():
number
{
get
latitude
():
number
|
null
{
return
this
.
_latitude
}
set
latitude
(
latitude
:
number
)
{
set
latitude
(
latitude
:
number
|
null
)
{
this
.
_latitude
=
latitude
}
get
longitude
():
number
{
get
longitude
():
number
|
null
{
return
this
.
_longitude
}
set
longitude
(
longitude
:
number
)
{
set
longitude
(
longitude
:
number
|
null
)
{
this
.
_longitude
=
longitude
}
get
elevation
():
number
{
get
elevation
():
number
|
null
{
return
this
.
_elevation
}
set
elevation
(
elevation
:
number
)
{
set
elevation
(
elevation
:
number
|
null
)
{
this
.
_elevation
=
elevation
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment