/// <exception cref="ApiException"></exception> protected static void EnsureLogined() { if (!UserPreferences.IsLogined) { throw ApiExceptions.NoAuthority(); } }