//
//  AbonentForRegister.swift
//  kt
//
//  Created by Assylkhan Rakhatov on 08.02.16.
//  Copyright © 2016 Alexandr Zalutskiy. All rights reserved.
//

import Foundation

class AbonentForRegister {
    
    // for guid
    var inPhone: String = ""
    var inIin: String = ""
    
    // for register
    var inAdv: Int = 0
    var inSms: Int = 0
    var inAbonentId: String = ""
    var inMobile: String = ""
    var inServerId: String = ""
    var inCodeWord: String = ""
    var inEmail: String = ""
    var inLogin: String = ""
    var inPassword: String = ""
    var inControlQuestion: String = ""
    var inControlAnswer: String = ""
    
    func clear() {
        inAdv = 0
        inAbonentId = ""
        inMobile = ""
        inServerId = ""
        inCodeWord = ""
        inEmail = ""
        inLogin = ""
        inPassword = ""
        inSms = 0
        inControlQuestion = ""
        inControlAnswer = ""
    }
    
    class func sharedInstance() -> AbonentForRegister {
        struct Shared {
            static let instance = AbonentForRegister()
        }
        return Shared.instance
    }
}
