30 lines
509 B
Swift
30 lines
509 B
Swift
//
|
|
// PerfectCRUDCursor.swift
|
|
// PerfectCRUD
|
|
//
|
|
// Created by Jonathan Guthrie on 2016-09-23.
|
|
//
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PerfectCRUDCursor {
|
|
public var limit: Int = 50
|
|
public var offset: Int = 0
|
|
public var totalRecords: Int = 0
|
|
|
|
public init() {}
|
|
|
|
public init(limit: Int, offset: Int) {
|
|
self.limit = limit
|
|
self.offset = offset
|
|
}
|
|
public init(limit: Int, offset: Int, totalRecords: Int) {
|
|
self.limit = limit
|
|
self.offset = offset
|
|
self.totalRecords = totalRecords
|
|
}
|
|
|
|
}
|
|
|