コード例 #1
0
        public Task <Boolean> CreateChat(CChatData chatData, Guid creatorId, List <Guid> participantsId)
        {
            _logger.LogInfo($"Supplier method '{nameof(CreateChat)}({chatData}, {creatorId}, {participantsId})' is called");

            CNewChatDto chatDto = new CNewChatDto(chatData.Title, chatData.IsPersonal, (Int32)chatData.Type, creatorId, participantsId);

            return(Task.Run <Boolean>(() => _service.CreateChat(chatDto)));
        }
コード例 #2
0
 public COpenChatCommandArgs(CChatData chatData, Boolean isSelected)
 {
     ChatData   = chatData;
     IsSelected = isSelected;
 }