35 lines
1.1 KiB
Objective-C
35 lines
1.1 KiB
Objective-C
//
|
|
// XPRoomMoreMenuActionContext.m
|
|
// YuMi
|
|
//
|
|
// Created by Linus on 2025/1/13.
|
|
//
|
|
|
|
#import "XPRoomMoreMenuActionContext.h"
|
|
#import "XPMoreMenuPresenter.h"
|
|
|
|
@implementation XPRoomMoreMenuActionContext
|
|
|
|
+ (instancetype)contextWithRoomInfo:(RoomInfoModel *)roomInfo
|
|
userInfo:(UserInfoModel * _Nullable)userInfo
|
|
hostDelegate:(id<RoomHostDelegate> _Nullable)hostDelegate
|
|
presentingViewController:(id _Nullable)presentingViewController
|
|
isOnMic:(BOOL)isOnMic
|
|
isSuperAdmin:(BOOL)isSuperAdmin
|
|
isAppSuperAdmin:(BOOL)isAppSuperAdmin {
|
|
|
|
XPRoomMoreMenuActionContext *context = [[XPRoomMoreMenuActionContext alloc] init];
|
|
context.roomInfo = roomInfo;
|
|
context.userInfo = userInfo;
|
|
context.hostDelegate = hostDelegate;
|
|
context.presentingViewController = presentingViewController;
|
|
context.isOnMic = isOnMic;
|
|
context.isSuperAdmin = isSuperAdmin;
|
|
context.isAppSuperAdmin = isAppSuperAdmin;
|
|
|
|
return context;
|
|
}
|
|
|
|
|
|
@end
|