Files
Musify/lib/models/proxy_model.dart
2026-01-02 00:17:56 +04:00

45 lines
1.3 KiB
Dart

/*
* Copyright (C) 2026 Valeri Gokadze
*
* Musify is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Musify is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*
* For more information about Musify, including how to contribute,
* please visit: https://github.com/gokadzev/Musify
*/
class ProxyInfo {
ProxyInfo({
required this.source,
required this.country,
required this.address,
this.isSsl,
});
final String address;
final String country;
final bool? isSsl;
final String source;
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is ProxyInfo &&
other.address == address &&
other.country == country;
}
@override
int get hashCode => address.hashCode ^ country.hashCode;
}