Facing issue while using getter and setter method, that is to be All paths through this function will call itself.
import Foundation
struct FirebaseUser
{
var student_class_id1 : Int
{
get
{
return self.student_class_id1
}
set(newstudent_class_id1)
{
self.student_class_id1 = newstudent_class_id1
}
}
var name: String
{
get
{
return self.name
}
set(newName)
{
self.name = newName
}
}
//var school_id: Int?
var school_id: Int
{
get
{
return self.school_id
}
set(newSchoolId)
{
self.school_id = newSchoolId
}
}
}