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 1b46a68 commit 6918e9a
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 6918e9a

Please sign in to comment.