Explorar el Código

Make access control of Channel more strict

takasek hace 8 años
padre
commit
248f125b4b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Plugin/Templates/client.swift

+ 1 - 1
Plugin/Templates/client.swift

@@ -23,7 +23,7 @@
 //-{% endfor %}
 //-{% endfor %}
 /// Call methods of this class to make API calls.
 /// Call methods of this class to make API calls.
 {{ access }} final class {{ .|serviceclass:file,service }} {
 {{ access }} final class {{ .|serviceclass:file,service }} {
-  public var channel: Channel
+  public private(set) var channel: Channel
 
 
   /// This metadata will be sent with all requests.
   /// This metadata will be sent with all requests.
   {{ access }} var metadata : Metadata
   {{ access }} var metadata : Metadata