IForeventsAPIConfig class

Configuration class for IForevents API Integration

Constructors

IForeventsAPIConfig({required String projectKey, required String projectSecret, String baseUrl = 'https://api.iforevents.com', int batchSize = 10, int batchIntervalMs = 5000, int connectTimeoutMs = 10000, int receiveTimeoutMs = 10000, int sendTimeoutMs = 10000, bool enableRetry = true, int maxRetries = 3, int retryDelayMs = 1000, bool enableLogging = false, bool throwOnError = false, bool requeueFailedEvents = true})
const

Properties

baseUrl String
Base URL for the IForevents API (default: https://api.iforevents.com)
final
batchIntervalMs int
Interval in milliseconds to check for batch processing (default: 5000ms)
final
batchSize int
Number of events to batch before sending (default: 10) Set to 1 to disable batching
final
connectTimeoutMs int
Connection timeout in milliseconds (default: 10000ms)
final
enableLogging bool
Enable debug logging (default: false)
final
enableRetry bool
Enable automatic retry on failure (default: true)
final
hashCode int
The hash code for this object.
no setterinherited
maxRetries int
Maximum number of retries (default: 3)
final
projectKey String
Project API key (required)
final
projectSecret String
Project API secret (required)
final
receiveTimeoutMs int
Receive timeout in milliseconds (default: 10000ms)
final
requeueFailedEvents bool
Re-queue failed events for retry (default: true)
final
retryDelayMs int
Delay between retries in milliseconds (default: 1000ms)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeoutMs int
Send timeout in milliseconds (default: 10000ms)
final
throwOnError bool
Throw exceptions on errors instead of just logging (default: false)
final

Methods

copyWith({String? projectKey, String? projectSecret, String? baseUrl, int? batchSize, int? batchIntervalMs, int? connectTimeoutMs, int? receiveTimeoutMs, int? sendTimeoutMs, bool? enableRetry, int? maxRetries, int? retryDelayMs, bool? enableLogging, bool? throwOnError, bool? requeueFailedEvents}) IForeventsAPIConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited