public static void SetResponseData(WebAPI.ResponseData response) { if (response == null) { return; } if (typeof(GameWebAPI.RespDataMA_GetFacilityM) == response.GetType()) { GameWebAPI.RespDataMA_GetFacilityM respDataMA_GetFacilityM = (GameWebAPI.RespDataMA_GetFacilityM)response; FarmDataManager.facilityMaster = respDataMA_GetFacilityM.facilityM.Where((FacilityM x) => int.Parse(x.facilityId) != 6).ToList <FacilityM>(); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityKeyM) == response.GetType()) { FarmDataManager.InitList <FacilityKeyM>(ref FarmDataManager.facilityKeyMaster); FarmDataManager.facilityKeyMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityKeyM)response).facilityKeyM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityUpgradeM) == response.GetType()) { FarmDataManager.InitList <FacilityUpgradeM>(ref FarmDataManager.facilityUpgradeMaster); FarmDataManager.facilityUpgradeMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityUpgradeM)response).facilityUpgradeM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityMeatFieldM) == response.GetType()) { FarmDataManager.InitList <FacilityMeatFieldM>(ref FarmDataManager.facilityMeatFieldMaster); FarmDataManager.facilityMeatFieldMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityMeatFieldM)response).facilityMeatFieldM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityWarehouseM) == response.GetType()) { FarmDataManager.InitList <FacilityWarehouseM>(ref FarmDataManager.facilityWarehouseMaster); FarmDataManager.facilityWarehouseMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityWarehouseM)response).facilityWarehouseM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityExpUpM) == response.GetType()) { FarmDataManager.InitList <FacilityExpUpM>(ref FarmDataManager.facilityExpUpMaster); FarmDataManager.facilityExpUpMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityExpUpM)response).facilityExpUpM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityRestaurantM) == response.GetType()) { FarmDataManager.InitList <FacilityRestaurantM>(ref FarmDataManager.facilityRestaurantMaster); FarmDataManager.facilityRestaurantMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityRestaurantM)response).facilityRestaurantM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityHouseM) == response.GetType()) { FarmDataManager.InitList <FacilityHouseM>(ref FarmDataManager.facilityHouseMaster); FarmDataManager.facilityHouseMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityHouseM)response).facilityHouseM); } else if (typeof(GameWebAPI.RespDataMA_FacilityConditionM) == response.GetType()) { FarmDataManager.InitList <FacilityConditionM>(ref FarmDataManager.facilityConditionMaster); FarmDataManager.facilityConditionMaster.AddRange(((GameWebAPI.RespDataMA_FacilityConditionM)response).facilityConditionM); } else if (typeof(GameWebAPI.RespDataMA_FacilityExtraEffectM) == response.GetType()) { FarmDataManager.InitList <FacilityExtraEffectM>(ref FarmDataManager.facilityExtraEffectMaster); FarmDataManager.facilityExtraEffectMaster.AddRange(((GameWebAPI.RespDataMA_FacilityExtraEffectM)response).facilityExtraEffectM); } else if (typeof(GameWebAPI.RespDataMA_FacilityExtraEffectLevelM) == response.GetType()) { FarmDataManager.InitList <FacilityExtraEffectLevelM>(ref FarmDataManager.facilityExtraEffectLevelMaster); FarmDataManager.facilityExtraEffectLevelMaster.AddRange(((GameWebAPI.RespDataMA_FacilityExtraEffectLevelM)response).facilityExtraEffectLevelM); } else if (typeof(GameWebAPI.RespDataMA_GetFacilityChipM) == response.GetType()) { FarmDataManager.InitList <FacilityChipM>(ref FarmDataManager.facilityChipFieldMaster); FarmDataManager.facilityChipFieldMaster.AddRange(((GameWebAPI.RespDataMA_GetFacilityChipM)response).facilityChipM); } }