/// <summary>
 /// Get alle chats for the user
 /// </summary>
 /// <remarks>
 /// Gets all chats for the specific user id
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userId'>
 /// The id of the user
 /// </param>
 public static IList <ChatDTO> GetAllChatsForUser(this IChats operations, int userId)
 {
     return(operations.GetAllChatsForUserAsync(userId).GetAwaiter().GetResult());
 }