32 lines
916 B
Objective-C
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
|