Skip to content

Commit

Permalink
feat(NaturalLanguageUnderstandingV1): Add new limit property to Categ…
Browse files Browse the repository at this point in the history
…oriesOptions model
  • Loading branch information
Anthony Oliveri committed Dec 11, 2018
1 parent 80258db commit 5bf6637
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,31 @@ import Foundation
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
*/
public struct CategoriesOptions: Codable, Equatable {
public init() { }

/**
Maximum number of categories to return.
Maximum value: **10**.
*/
public var limit: Int?

// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case limit = "limit"
}

/**
Initialize a `CategoriesOptions` with member variables.

- parameter limit: Maximum number of categories to return.
Maximum value: **10**.

- returns: An initialized `CategoriesOptions`.
*/
public init(
limit: Int? = nil
)
{
self.limit = limit
}

}

0 comments on commit 5bf6637

Please sign in to comment.