  */
 
 
+
 public struct PushyConf{
     fileprivate let host:String
     fileprivate let port:UInt16
+    fileprivate let regUrl:String
     fileprivate let deviceId:String
     fileprivate let clientId:String
+    fileprivate let langType:UInt8
     fileprivate let user:String?
     fileprivate let pass:String?
     fileprivate let isSSL:Bool
     fileprivate let certName:String?
     fileprivate let certPass:String?
-    
-    public init(host:String,port:UInt16,deviceId:String,clientId client:String,
+
+    
+    public init(host:String,port:UInt16,registrationUrl regUrl:String,deviceId:String,
+                clientId client:String, langType:UInt8 = 1,
          user:String? = nil,password pass:String? = nil,
          isSSL:Bool=false,certificateName certName:String? = nil,
          certificatePassword certPass:String? = nil){
         
         self.host       = host;
         self.port       = port;
+        self.regUrl     = regUrl;
         self.deviceId   = deviceId;
         self.clientId   = client;
+        self.langType   = langType;
         self.user       = user;
         self.pass       = pass;
         self.isSSL      = isSSL;
         self.certName   = certName;
         self.certPass   = certPass;
+
         
     }
 }

        }
    
    func updateDeviceId(deviceId:String,clientId:String,host:String, callback:@escaping (PushyClient.Status)->Void) throws{
        let scheme = conf.isSSL ? "https":"http"
        guard let connUrl =  URL(string: "\(scheme)://\(host)/\(self.urlSuffix)") else{
            
            throw PushyError.malformedUrl(reason: "\(host) is invalid")
        }

    
    private let notificationCenter = NotificationCenter.default
 
    fileprivate let urlSuffix = "/api/secured/device"
    
    
    fileprivate let conf:PushyConf
    
