         
         var resultString = ""
         
-//        var allkeys = self.paramsDict.keys.array
-        
         var stringConnector = ""
         
-        for param in self.finalParamsArrayForConnection {
+        for param in self.finalParams {
             
             var keyValueString = "\(param.key)=\(param.value)"
             resultString += "\(stringConnector)\(keyValueString)"

        
    }
    
//    func addFileValueParam(key:String, value:){
//        self.addParam(GZHTTPConnectionStringValueParam(key: key, value: value))
//    }
//    

//    func setParams<T>(#key:String, image:UIImage, imageType:GZHTTPConnectionFileContentType){
//
//        var param = GZHTTPConnectionFileValueParam(value: UIImageJPEGRepresentation(image, 0.8))
//        param.contentType = imageType
//        self.setParams(key: key, value: param)
//
//    }

}

//extension GZHTTPConnectionData {
//
//    subscript(key:String)->AnyObject{
//
//
//        get{
//            return self.paramsDict[key]!.value
//        }
//
//        set(value){
//
//            println("key:\(key) value:\(value)")
//            
//            self.setParams(key: key, value: value)
//            
//        }
//        
//    }
//    
//    
//    
//}
    private struct PrivateCache {
        
        var session:NSURLSession! = nil
        var finalParamsArrayForConnection:[GZHTTPConnectionValueParam] = []
        
    }
    
}

//MARK: - add params
extension GZHTTPConnectionData {
    
    func addParam(param:GZHTTPConnectionValueParam){
        self.paramsArray.append(param)
    }
