Exemple #1
0
 /// <summary>
 /// Odeslani(vlozeni) zpravy do systemu
 /// </summary>
 /// <param name="nick"></param>
 /// <param name="password"></param>
 /// <param name="msg"></param>
 /// <returns></returns>
 public static bool Message_InsertMessageForUser(int id_usr, string password, string msg_body, int msg_type, int[] dest_users)
 {
     try
     {
         using (MessagingServiceClient api = new MessagingServiceClient())
         {
             if (api.User_Validate(id_usr, password))
             {
                 return api.Message_InsertMessageForUser(id_usr, password, msg_body, msg_type, dest_users);
             }
             else
             {
                 return false;
             }
         }
     }
     catch (Exception)
     {
         return false;
     }
 }