 	public init(id: String) {
 		super.init()
 		self.id = id
+	}
+	
+	// MARK: NSCoding protocol
+	
+	public required init(coder: NSCoder) {
+		super.init()
+		self.id = coder.decodeObjectForKey("id") as? String
+		self.href = coder.decodeObjectForKey("href") as? String
+	}
+	
+	public func encodeWithCoder(coder: NSCoder) {
+		coder.encodeObject(self.id, forKey: "id")
+		coder.encodeObject(self.href, forKey: "href")
 	}
 	
 	


//MARK: -

public class LinkedResource: NSObject, Printable {
	public var isLoaded: Bool
	public var link: (href: NSURL?, type: String, id: String?)?
	public var resource: Resource?


//MARK: -

public class ResourceCollection: NSObject, NSCoding, ArrayLiteralConvertible, SequenceType, Printable, Paginatable {
	/// Whether the resources for this collection are loaded
	public var isLoaded: Bool
	
