This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSavedUser.swift
50 lines (42 loc) · 1.55 KB
/
SavedUser.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
//
// SavedUser.swift
// Vino-VineTracker
//
// Created by Connor Wybranowski on 9/10/15.
// Copyright (c) 2015 Wybro. All rights reserved.
//
import UIKit
class SavedUser: NSObject {
var username: String!
var userId: Int!
var avatarPic: UIImage!
var followerCount: Int!
var newFollowers: Int!
var followerDataPoints: [Int]!
var loopCount: Int!
var newLoops: Int!
var loopDataPoints: [Int]!
// Data for updates
var date: NSDate!
var startingFollowers: Int!
var newFollowersFromPreviousDate: Int!
var startingLoops: Int!
var newLoopsFromPreviousDate: Int!
init(username: String, userId: Int, avatarPic: UIImage, followerCount: Int, newFollowers: Int, followerDataPoints: [Int], loopCount: Int, newLoops: Int, loopDataPoints: [Int], date: NSDate, startingFollowers: Int, newFollowersFromPreviousDate: Int, startingLoops: Int, newLoopsFromPreviousDate: Int) {
super.init()
self.username = username
self.userId = userId
self.avatarPic = avatarPic
self.followerCount = followerCount
self.newFollowers = newFollowers
self.followerDataPoints = followerDataPoints
self.loopCount = loopCount
self.newLoops = newLoops
self.loopDataPoints = loopDataPoints
self.date = date
self.startingFollowers = startingFollowers
self.newFollowersFromPreviousDate = newFollowersFromPreviousDate
self.startingLoops = startingLoops
self.newLoopsFromPreviousDate = newLoopsFromPreviousDate
}
}