Files
peko-ios/YuMi/Modules/YMRoom/View/MorePlay/Presenter/XPRoomMorePlayPresenter.m
2023-07-14 18:50:55 +08:00

32 lines
916 B
Objective-C

//
// YMRoomMorePlayPresenter.m
// YUMI
//
// Created by YUMI on 2022/10/24.
//
#import "XPRoomMorePlayPresenter.h"
#import "RoomInfoModel.h"
#import "UserInfoModel.h"
#import "XPRoomActivityPlayModel.h"
#import "ClientConfig.h"
#import "XPRoomMorePlayProtocol.h"
@implementation XPRoomMorePlayPresenter
- (void)getRoomMorePlayData:(RoomInfoModel *)roomInfo userInfo:(UserInfoModel *)userInfo {
NSMutableArray * data = [NSMutableArray array];
///航海玩法
XPRoomActivityPlayModel *sailingModel = [[XPRoomActivityPlayModel alloc] init];
sailingModel.name = YMLocalizedString(@"XPRoomMorePlayPresenter0");
sailingModel.imageName = @"room_sailiing_enter";
sailingModel.playType = RoomActivityPlayTypeSailing;
if ([ClientConfig shareConfig].configInfo.linearlyPoolOpenLevel <= userInfo.userLevelVo.experLevelSeq) {
[data addObject:sailingModel];
}
[[self getView] getMorePlaysSuccess:data];
}
@end