SortDefinition

public struct SortDefinition

Struct defining how a request’s results should be sorted. Note that this sorting is done on Giant Bomb’s server side and not by the framework. SortDefinition just acts as a convenient and strongly typed way to add in the appropriate url parameters when making requests.

  • An enum which declares in which direction results should be sorted by.

    See more

    Declaration

    Swift

    public enum SortDirection: String
  • Designated initializer for making a SortDefinition.

    Declaration

    Swift

    public init(field: String, direction: SortDirection)