//
/* NOTICE: All information contained herein is, and remains the property of Brightinsight Inc. or its customer. 
The intellectual and technical concepts contained herein are proprietary to Brightinsight Inc. or its customer and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law.
Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Brightinsight Inc. or its customer. Access to the source code contained herein is hereby forbidden to anyone except current Brightinsight Inc. employees, managers or contractors who have executed
Confidentiality and Non-disclosure agreements explicitly covering such access.
*/
/**
* System Name : BISDKCore
* Component ID : BISDKUploaderRetryConfig
* Description : 
* Author: Arnold Dominguez
* Copyright © : Brightinsight, Inc.
* -----------------------
* Revision Change
* -----------------------
*                Author            Date             Version       Change-Description
*========================================================================================================
 * Arnold Dominguez     09/06/21      1.0                 Creation
 * Arnold Dominguez      09/15/21     1.1            Upload data and retry logic
*/

import Foundation

/**
 * Configuration class with the information for the uploader timer
 */

public struct BISDKUploaderRetryConfig {
    /// Maximum number of retries per session
    public let maxRetry: Int
    /// Total number of retries allowed before delete from storage.
    public let totalMaxRetry: Int
    /// Time before the timedUploader wait between readings.
    public let delay: Int
    /// The time after an failure upload to wait before sending again.
    public let retryDelay: Int
    
    public init(maxRetry: Int, totalMaxRetry: Int, delay: Int, retryDelay: Int) {
        self.maxRetry = maxRetry
        self.totalMaxRetry = totalMaxRetry
        self.delay = delay
        self.retryDelay = retryDelay
    }
}
