         call.executeInBackground(nil)
     }
     
-    private static func generateSurvey(channel channel: MMXChannel, owner: MMUser,name: String, question: String,  options: [MMXPollOption], hideResultsFromOthers: Bool, endDate: NSDate?, extras: [String : String]?, multipleChoiceEnabled: Bool) -> MMXSurvey {
+    private static func generateSurvey(channel channel: MMXChannel, owner: MMUser,name: String, question: String,  options: [MMXPollOption], areResultsPublic: Bool, endDate: NSDate?, extras: [String : String]?, multipleChoiceEnabled: Bool) -> MMXSurvey {
         let survey = MMXSurvey()
         survey.owners = [owner.userID]
         survey.name = name

            return
        }
        
        let survey = MMXPoll.generateSurvey(channel: channel, owner: user, name: self.name, question: self.question, options: self.options, hideResultsFromOthers: self.areResultsPublic, endDate: self.endDate, extras: self.extras, multipleChoiceEnabled: self.multipleChoiceEnabled)
        let call = MMXSurveyService().createSurvey(survey, success: { survey in
            let error = MMXClient.errorWithTitle("Poll", message: "Error Parsing Poll", code: 400)
            

        surveyDefinition.startDate = NSDate()
        surveyDefinition.endDate = endDate
        surveyDefinition.type = .POLL
        surveyDefinition.resultAccessModel = areResultsPublic ? .PRIVATE : .PUBLIC
        surveyDefinition.participantModel = .PUBLIC
        survey.surveyDefinition = surveyDefinition
        let surveyQuestion = MMXSurveyQuestion()
