-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generated code for commit d9ac12f.
Co-authored-by: shortcuts <vannicattec@gmail.com>
- Loading branch information
1 parent
d9ac12f
commit 34e0ca8
Showing
83 changed files
with
4,738 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...lgoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_recommend_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
// ignore_for_file: unused_element | ||
|
||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'base_recommend_request.g.dart'; | ||
|
||
@JsonSerializable() | ||
final class BaseRecommendRequest { | ||
/// Returns a new [BaseRecommendRequest] instance. | ||
const BaseRecommendRequest({ | ||
required this.indexName, | ||
this.threshold, | ||
this.maxRecommendations, | ||
}); | ||
|
||
/// Index name. | ||
@JsonKey(name: r'indexName') | ||
final String indexName; | ||
|
||
/// Recommendations with a confidence score lower than `threshold` won't appear in results. > **Note**: Each recommendation has a confidence score of 0 to 100. The closer the score is to 100, the more relevant the recommendations are. | ||
// minimum: 0 | ||
// maximum: 100 | ||
@JsonKey(name: r'threshold') | ||
final int? threshold; | ||
|
||
/// Maximum number of recommendations to retrieve. If 0, all recommendations will be returned. | ||
@JsonKey(name: r'maxRecommendations') | ||
final int? maxRecommendations; | ||
|
||
@override | ||
bool operator ==(Object other) => | ||
identical(this, other) || | ||
other is BaseRecommendRequest && | ||
other.indexName == indexName && | ||
other.threshold == threshold && | ||
other.maxRecommendations == maxRecommendations; | ||
|
||
@override | ||
int get hashCode => | ||
indexName.hashCode + threshold.hashCode + maxRecommendations.hashCode; | ||
|
||
factory BaseRecommendRequest.fromJson(Map<String, dynamic> json) => | ||
_$BaseRecommendRequestFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$BaseRecommendRequestToJson(this); | ||
|
||
@override | ||
String toString() { | ||
return toJson().toString(); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...oliasearch-client-dart/packages/algoliasearch/lib/src/model/base_recommend_request.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.