File: SwiftClient.jinja

package info (click to toggle)
python-stone 3.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,036 kB
  • sloc: python: 22,311; objc: 498; sh: 23; makefile: 11
file content (25 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
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
///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
/// Auto-generated by Stone, do not modify.
///

import Foundation

public class {{ class_name }}: DropboxTransportClientOwning {
    public var client: {{ transport_client_name }}

    {% for var, type in namespace_fields %}
    /// Routes within the {{ var }} namespace. See {{ type }}Routes for details.
    public var {{ var }}: {{ type }}Routes!
    {% endfor %}

    public required init(client: {{ transport_client_name }}) {
        self.client = client

        {% for var, type in namespace_fields %}
        self.{{ var }} = {{ type }}Routes(client: client)
        {% endfor %}
    }
}