define(["ember","emberdata"],function(a,b){var c=b.attr;return a.Mixin.create({Title:c("string"),TopictypeCode:c("string"),TopicclassCode:c("string"),Grade:c("string"),TopicYear:c("number"),TopicMonth:c("number"),Tag:c("string"),Summary:c("string"),Isenable:c("boolean",{defaultValue:!0}),Limitx:c("number",{defaultValue:0}),Limity:c("number",{defaultValue:0}),Limitz:c("number",{defaultValue:0}),CreatedBy:c("number"),CreatedDate:c("date"),LastUpdatedBy:c("number"),LastUpdatedDate:c("date"),Sort:c("number",{defaultValue:0}),Usertype:c("number",{defaultValue:1}),PrincipalAllowed:function(a,b){if(arguments.length>1){var c=this.get("Usertype");this.set("Usertype",b?4|c:4^c)}return 4==(4&this.get("Usertype"))?!0:!1}.property("Usertype"),TeacherAllowed:function(a,b){if(arguments.length>1){var c=this.get("Usertype");this.set("Usertype",b?2|c:2^c)}return 2==(2&this.get("Usertype"))?!0:!1}.property("Usertype"),StudentAllowed:function(a,b){if(arguments.length>1){var c=this.get("Usertype");this.set("Usertype",b?1|c:1^c)}return 1==(1&this.get("Usertype"))?!0:!1}.property("Usertype"),Tags:function(a,b){var c;return arguments.length>1&&b&&this.set("Tag",b.join(",")),(c=this.get("Tag"))?c.split(","):[]}.property("Tag")})});