-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvent.swift
66 lines (58 loc) · 1.8 KB
/
Event.swift
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
//
// Event.swift
// InV
//
// Created by David Park on 7/25/16.
// Copyright © 2016 David Park. All rights reserved.
//
import Foundation
class Event{
var username: String!
var sport: String!
//var location: Location!
var location: Location!
var numPplAttending: Int!
var usersAttending: [User]? //change this optional
var attendance: Bool!
var time: String? //change this optional
var date: String!
var description: String?
var comments: [String]?
var skillLevel: String?
/*init(user: User, sport: String, location: String, time: String, date: String, skillLevel: Int?, description: String?){
self.username = user.username;
self.sport = sport;
self.location.locationName = location;
self.attendance = true;
self.numPplAttending = 1;
self.usersAttending!.append(user);
self.time = time;
self.date = date;
self.skillLevel = skillLevel;
self.description = description;
}*/
/*init(user: String, sport: String, location: String, time: String?, date: String, skillLevel: String?, description: String?){
self.username = user;
self.sport = sport;
//self.location.locationName = location;
self.location = location
self.attendance = true;
self.numPplAttending = 1;
//self.usersAttending.append(user);
self.time = time;
self.date = date;
self.skillLevel = skillLevel;
self.description = description;
}*/
init(){
self.username = ""
self.sport = ""
self.location = Location()
self.attendance = true;
self.numPplAttending = 1;
self.time = ""
self.date = ""
self.skillLevel = ""
self.description = ""
}
}