示例#1
0
 private APIRequestTask ReqeustUserNewCount()
 {
     if (this.ExistNewFacility() && CMD_FacilityShop.lastFocusTab == CMD_FacilityShop.FacilityShopTab.FACILITY)
     {
         DataMng.Instance().RespDataMP_MyPage.userNewsCountList.facilityNewCount = 0;
         return(FarmDataManager.RequestUserNewFacility(FacilityType.FACILITY, new Action <UserNewFacilityResponse>(this.SetUserFacilityNewCount), true));
     }
     if (this.ExistNewDecoration() && CMD_FacilityShop.lastFocusTab == CMD_FacilityShop.FacilityShopTab.DECORATION)
     {
         DataMng.Instance().RespDataMP_MyPage.userNewsCountList.decorationNewCount = 0;
         return(FarmDataManager.RequestUserNewFacility(FacilityType.DECORATION, new Action <UserNewFacilityResponse>(this.SetUserFacilityNewCount), true));
     }
     return(null);
 }