define(["ember"],function(a){return a.Object.extend({state:"online",error:"",isOnline:function(){return"online"==this.get("state")}.property("state"),isLoading:function(){return"loading"==this.get("state")}.property("state"),isLoaded:function(){return["loaded","init","fetching","fetched"].contains(this.get("state"))}.property("state"),isFetching:function(){return"fetching"==this.get("state")}.property("state"),isFetched:function(){return"fetched"==this.get("state")}.property("state"),text:function(){if(this.get("error"))return this.get("error");var a="";switch(this.get("state")){case"online":a="未下载";break;case"loading":a="获取中";break;case"loaded":case"init":case"fetching":a="下载中";break;case"fetched":a="已下载"}return a}.property("state")})});