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

	
	// MARK: Paginatable
	
	var paginationData: PaginationData?
	
	public var canFetchNextPage: Bool {
		return self.paginationData?.afterCursor != nil
	}

	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")
	}
	
	
