public static void ExecuteOn_Created_Through_CreateRoom(XComponent.ChatManager.UserObject.CreateChatroom createChatroom, XComponent.ChatManager.UserObject.Chatroom chatroom, object object_InternalMember, RuntimeContext context, ICreateRoomCreateChatroomOnCreatedChatroomSenderInterface sender) { chatroom.Name = createChatroom.Name; }
public static void ExecuteOn_Created_Through_PublishMessage(XComponent.ChatManager.UserObject.SentMessage sentMessage, XComponent.ChatManager.UserObject.Chatroom chatroom, object object_InternalMember, RuntimeContext context, IPublishMessageSentMessageOnCreatedChatroomSenderInterface sender) { sender.PublishMessage(context, new PublishedMessage { Message = sentMessage.Message, Room = chatroom.Name, User = sentMessage.User, DateTime = DateTime.Now }); context.PublishNotification = false; }