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

            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)
            

    
    //MARK: Init
    
    public convenience init(name: String, question: String, options: [String], areResultsPublic: Bool, endDate: NSDate? = nil, extras: [String:String]? = nil, multipleChoiceEnabled: Bool = false) {
        
        var opts = [MMXPollOption]()
        for option in options {
            let mmxOption = MMXPollOption(text: option, count: 0)
            opts.append(mmxOption)
        }
        self.init(name : name, question: question, mmxPollOptions: opts, areResultsPublic: areResultsPublic, endDate: endDate, extras: extras, multipleChoiceEnabled: multipleChoiceEnabled)
    }
    
    //MARK: Creation
    
    public static func createPoll(name : String, question: String, options: [String], areResultsPublic: Bool, endDate: NSDate? = nil, extras : [String:String]? = nil, multipleChoiceEnabled : Bool = false) -> MMXPoll {
        return MMXPoll(name: name, question: question, options: options, areResultsPublic: areResultsPublic, endDate: endDate, extras: extras, multipleChoiceEnabled: multipleChoiceEnabled)
    }
    
    public static func createPoll(name : String, question: String, options: [String], areResultsPublic: Bool, endDate: NSDate? = nil, extras : [String:String]? = nil) -> MMXPoll {
        return MMXPoll(name: name, question: question, options: options, areResultsPublic: areResultsPublic, endDate: endDate, extras: extras)
    }
    
    public static func createPoll(name : String, question: String, options: [String], areResultsPublic: Bool, endDate: NSDate? = nil) -> MMXPoll {
        return MMXPoll(name: name, question: question, options: options, areResultsPublic: areResultsPublic, endDate: endDate)
    }
    
    public static func createPoll(name : String, question: String, options: [String], areResultsPublic: Bool) -> MMXPoll {
        return MMXPoll(name: name, question: question, options: options, areResultsPublic: areResultsPublic)
    }
    
    //MARK: Private Init
    
    private init(name : String, question: String, mmxPollOptions options: [MMXPollOption], areResultsPublic: Bool, endDate: NSDate?, extras: [String:String]?, multipleChoiceEnabled: Bool) {
        self.question = question
        self.options = options
        self.name = name
        self.areResultsPublic = areResultsPublic
        self.endDate = endDate
        self.ownerID = MMUser.currentUser()?.userID
        self.extras = extras
