-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReport.swift
More file actions
executable file
·78 lines (63 loc) · 1.63 KB
/
Report.swift
File metadata and controls
executable file
·78 lines (63 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// Position.swift
// Atmos
//
// Created by Evangelos on 17/01/16.
// Copyright © 2016 Evangelos. All rights reserved.
//
import Foundation
public class Report {
//MARK Properties
private var type: String //report OR prediction
private var userId:String //userId on Atmos remote DB
private var temperature: String // temp
private var weather: String // weather
private var wind: String //wind
private var position: Position
public init(){
type = "report"
userId = "default"
temperature = "default"
weather = "default"
wind = "default"
position = Position()
}//endInit()
//MARK: Setters
public func setType(_type: String) {
type = _type
}
public func setUserId(_userId: String) {
userId = _userId
}
public func setTemperature(_temperature: String) {
temperature = _temperature
}
public func setWeather(_weather: String) {
weather = _weather
}
public func setWind(_wind: String) {
wind = _wind
}
public func setPosition(_position: Position) {
position = _position
}
//MARK: Getters
public func getType() -> String {
return type
}
public func getUserId() -> String {
return userId
}
public func getTemperature() -> String {
return temperature
}
public func getWeather() ->String {
return weather
}
public func getWind() -> String {
return wind
}
public func getPosition() -> Position {
return position
}
}//endPosition.swift