Ejemplo n.º 1
0
        public static void InformarNuevoGrupo(ChatEntity chat, string usuarios, int idOwner)
        {
            //agrego el owner a participantes
            usuarios += "," + idOwner.ToString();
            DTONuevoChat nuevoChat = new DTONuevoChat()
            {
                IdChat        = chat.IdChat,
                Nombre        = chat.Nombre,
                Participantes = usuarios.Split(',').Select(x => new DTOUsuario()
                {
                    IdUsuario = int.Parse(x)
                }).ToList(),
                IdOwner = idOwner,
                Fecha   = chat.Fecha
            };

            WCFHelper.ExecuteService <IChatService>(ConfiguracionSistemaURLsEnumDestino.ChatService, i => i.InformarNuevoGrupo(nuevoChat));
        }
Ejemplo n.º 2
0
 public void InformarNuevoGrupo(DTONuevoChat nuevoChat)
 {
     ChatMessageHelper.InformarNuevoGrupo(nuevoChat);
 }
 public static void OnNewChatHandle(DTONuevoChat nuevoChat)
 {
     _onNewChatHandler?.Invoke(nuevoChat);
 }
 public static void InformarNuevoGrupo(DTONuevoChat nuevoChat)
 {
     _onNewChatHandler(nuevoChat);
 }