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 pathVineUser.swift
52 lines (45 loc) · 1.7 KB
/
VineUser.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
//
// VineUser.swift
// VineTracker
//
// Created by Connor Wybranowski on 9/4/15.
// Copyright (c) 2015 Wybro. All rights reserved.
//
import UIKit
class VineUser: NSObject {
var username: String!
var userId: Int!
var avatarPic: UIImage!
var followerCount: Int!
var loopCount: Int!
init (username: String, userId: Int, avatarPic: UIImage, followerCount: Int, loopCount: Int) {
super.init()
self.username = username
self.userId = userId
self.avatarPic = avatarPic
self.followerCount = followerCount
self.loopCount = loopCount
}
// init(coder aDecoder: NSCoder!) {
// self.username = aDecoder.decodeObjectForKey("username") as! String
// self.avatarPic = aDecoder.decodeObjectForKey("avatarPic")as! UIImage
// self.followerCount = aDecoder.decodeObjectForKey("followerCount") as! Int
// self.loopCount = aDecoder.decodeObjectForKey("loopCount") as! Int
// }
//
// func initWithCoder(aDecoder: NSCoder) -> VineUser {
// self.username = aDecoder.decodeObjectForKey("username") as! String
// self.avatarPic = aDecoder.decodeObjectForKey("avatarPic")as! UIImage
// self.followerCount = aDecoder.decodeObjectForKey("followerCount") as! Int
// self.loopCount = aDecoder.decodeObjectForKey("loopCount") as! Int
// return self
// }
//
// func encodeWithCoder(aCoder: NSCoder!) {
// aCoder.encodeObject(username, forKey: "username")
// aCoder.encodeObject(avatarPic, forKey: "avatarPic")
// aCoder.encodeObject(followerCount, forKey: "followerCount")
// aCoder.encodeObject(loopCount, forKey: "loopCount")
//
// }
}