internal static AddChatRoomMemberRequest CreateChatroomMemRequestEntity(string sessionKey, uint uin, string deviceID, string OSType, string chatroomName, List <string> memList) { BaseRequest @base = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType); AddChatRoomMemberRequest.Builder builder = new AddChatRoomMemberRequest.Builder(); builder.SetBase(@base); builder.SetMemberCount(memList.Count); foreach (string mem in memList) { ChatRoomItem.Builder builder2 = new ChatRoomItem.Builder(); builder2.SetMemberName(new SKBuiltinString_t.Builder().SetString(mem)); builder.AddMembers(builder2); } builder.SetChatRoomName(new SKBuiltinString_t.Builder().SetString(chatroomName)); return(builder.Build()); }
internal static AddChatRoomMemberRequest CreateChatroomMemRequestEntity(string sessionKey, uint uin, string deviceID, string OSType, string chatroomName, List <string> memList) { BaseRequest br = CreateBaseRequestEntity(deviceID, sessionKey, uin, OSType); AddChatRoomMemberRequest.Builder request = new AddChatRoomMemberRequest.Builder(); request.SetBase(br); request.SetMemberCount(memList.Count); foreach (string item in memList) { ChatRoomItem.Builder cib = new ChatRoomItem.Builder(); cib.SetMemberName(new SKBuiltinString_t.Builder().SetString(item)); request.AddMembers(cib); } request.SetChatRoomName(new SKBuiltinString_t.Builder().SetString(chatroomName)); return(request.Build()); }