mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* feat: server features * chore: open api * icon size --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:openapi/api.dart';
 | 
						|
 | 
						|
class ServerInfoState {
 | 
						|
  final ServerVersionResponseDto serverVersion;
 | 
						|
  final bool isVersionMismatch;
 | 
						|
  final String versionMismatchErrorMessage;
 | 
						|
 | 
						|
  ServerInfoState({
 | 
						|
    required this.serverVersion,
 | 
						|
    required this.isVersionMismatch,
 | 
						|
    required this.versionMismatchErrorMessage,
 | 
						|
  });
 | 
						|
 | 
						|
  ServerInfoState copyWith({
 | 
						|
    ServerVersionResponseDto? serverVersion,
 | 
						|
    bool? isVersionMismatch,
 | 
						|
    String? versionMismatchErrorMessage,
 | 
						|
  }) {
 | 
						|
    return ServerInfoState(
 | 
						|
      serverVersion: serverVersion ?? this.serverVersion,
 | 
						|
      isVersionMismatch: isVersionMismatch ?? this.isVersionMismatch,
 | 
						|
      versionMismatchErrorMessage:
 | 
						|
          versionMismatchErrorMessage ?? this.versionMismatchErrorMessage,
 | 
						|
    );
 | 
						|
  }
 | 
						|
 | 
						|
  @override
 | 
						|
  String toString() {
 | 
						|
    return 'ServerInfoState( serverVersion: $serverVersion, isVersionMismatch: $isVersionMismatch, versionMismatchErrorMessage: $versionMismatchErrorMessage)';
 | 
						|
  }
 | 
						|
 | 
						|
  @override
 | 
						|
  bool operator ==(Object other) {
 | 
						|
    if (identical(this, other)) return true;
 | 
						|
 | 
						|
    return other is ServerInfoState &&
 | 
						|
        other.serverVersion == serverVersion &&
 | 
						|
        other.isVersionMismatch == isVersionMismatch &&
 | 
						|
        other.versionMismatchErrorMessage == versionMismatchErrorMessage;
 | 
						|
  }
 | 
						|
 | 
						|
  @override
 | 
						|
  int get hashCode {
 | 
						|
    return serverVersion.hashCode ^
 | 
						|
        isVersionMismatch.hashCode ^
 | 
						|
        versionMismatchErrorMessage.hashCode;
 | 
						|
  }
 | 
						|
}
 |