class Turn14Entity {
  final String code;
  final String message;
  final String userId;

  /// Credentials
  final bool hasCredentials;
  final String? clientId;
  final String? clientSecret;

  /// Token Info
  final String? accessToken;
  final String? expiresIn;

  const Turn14Entity({
    required this.code,
    required this.message,
    required this.userId,
    required this.hasCredentials,
    this.clientId,
    this.clientSecret,
    this.accessToken,
    this.expiresIn,
  });

  bool get isConnected =>
      hasCredentials == true && accessToken != null && accessToken!.isNotEmpty;
}


class Turn14StatusEntity {
  final String userId;
  final bool hasCredentials;
  final String? clientId;
  final String? clientSecret;
  final String? accessToken;
  final int? expiresIn;

  Turn14StatusEntity({
    required this.userId,
    required this.hasCredentials,
    this.clientId,
    this.clientSecret,
    this.accessToken,
    this.expiresIn,
  });
}
