File: StoneBase.swift

package info (click to toggle)
python-stone 3.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,748 kB
  • sloc: python: 21,736; objc: 498; sh: 30; makefile: 11
file content (31 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///

import Foundation

// The objects in this file are used by generated code and should not need to be invoked manually.

open class Route<ASerial: JSONSerializer, RSerial: JSONSerializer, ESerial: JSONSerializer> {
    public let name: String
    public let version: Int32
    public let namespace: String
    public let deprecated: Bool
    public let argSerializer: ASerial
    public let responseSerializer: RSerial
    public let errorSerializer: ESerial
    public let attrs: [String: String?]

    public init(name: String, version: Int32, namespace: String, deprecated: Bool,
                argSerializer: ASerial, responseSerializer: RSerial, errorSerializer: ESerial,
                attrs: [String: String?]) {
        self.name = name
        self.version = version
        self.namespace = namespace
        self.deprecated = deprecated
        self.argSerializer = argSerializer
        self.responseSerializer = responseSerializer
        self.errorSerializer = errorSerializer
        self.attrs = attrs
    }
}