Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
c635c149
Commit
c635c149
authored
Sep 30, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IOS-171: remove unneeded attributes from the Minutelly model.
parent
caac91a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
13 deletions
+1
-13
BlendMinutelySource/BlendMinutelySource/BlendMinutelySource.swift
+0
-4
OneWeatherCore/OneWeatherCore/ModelObjects/Minutely/MinutelyForecast.swift
+1
-9
No files found.
BlendMinutelySource/BlendMinutelySource/BlendMinutelySource.swift
View file @
c635c149
...
@@ -143,10 +143,6 @@ public class BlendMinutelySource: MinutelyForecastSource {
...
@@ -143,10 +143,6 @@ public class BlendMinutelySource: MinutelyForecastSource {
windSpeed
:
.
init
(
value
:
Double
(
$0
.
windSpeed
),
unit
:
.
milesPerHour
),
windSpeed
:
.
init
(
value
:
Double
(
$0
.
windSpeed
),
unit
:
.
milesPerHour
),
pressure
:
.
init
(
value
:
Double
(
$0
.
pressure
),
unit
:
.
inchesOfMercury
))
}
pressure
:
.
init
(
value
:
Double
(
$0
.
pressure
),
unit
:
.
inchesOfMercury
))
}
let
minutelyForecast
=
MinutelyForecast
(
lastUpdateTime
:
Date
(),
let
minutelyForecast
=
MinutelyForecast
(
lastUpdateTime
:
Date
(),
forecastInterval
:
itemToConvert
.
forecastInterval
,
tempUnit
:
.
fahrenheit
,
windUnit
:
.
milesPerHour
,
pressureUnit
:
.
inchesOfMercury
,
forecast
:
items
)
forecast
:
items
)
return
minutelyForecast
return
minutelyForecast
}
}
...
...
OneWeatherCore/OneWeatherCore/ModelObjects/Minutely/MinutelyForecast.swift
View file @
c635c149
...
@@ -9,18 +9,10 @@ import Foundation
...
@@ -9,18 +9,10 @@ import Foundation
public
struct
MinutelyForecast
{
public
struct
MinutelyForecast
{
public
let
lastUpdateTime
:
Date
public
let
lastUpdateTime
:
Date
public
let
forecastInterval
:
Int
public
let
tempUnit
:
UnitTemperature
public
let
windUnit
:
UnitSpeed
public
let
pressureUnit
:
UnitPressure
public
let
forecast
:
[
MinutelyItem
]
public
let
forecast
:
[
MinutelyItem
]
public
init
(
lastUpdateTime
:
Date
,
forecast
Interval
:
Int
,
tempUnit
:
UnitTemperature
,
windUnit
:
UnitSpeed
,
pressureUnit
:
UnitPressure
,
forecast
:
[
MinutelyItem
])
{
public
init
(
lastUpdateTime
:
Date
,
forecast
:
[
MinutelyItem
])
{
self
.
lastUpdateTime
=
lastUpdateTime
self
.
lastUpdateTime
=
lastUpdateTime
self
.
forecastInterval
=
forecastInterval
self
.
tempUnit
=
tempUnit
self
.
windUnit
=
windUnit
self
.
pressureUnit
=
pressureUnit
self
.
forecast
=
forecast
self
.
forecast
=
forecast
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment