@@ -118,10 +118,10 @@ private var sharedInstance: UserReport?
118
118
* - parameter sakId: UserReport account SAK ID. (You can find these value on media setting page)
119
119
* - parameter mediaId: ID of media created in UserReport account. (You can find these value on media setting page)
120
120
* - parameter user: User information
121
- * - parameter userSettings : Settings set by user
121
+ * - parameter settings : Settings set by user
122
122
*/
123
- @objc public class func configure( sakId: String , mediaId: String , user: User = User ( ) , userSettings : Settings ? = nil ) {
124
- sharedInstance = UserReport ( sakId: sakId, mediaId: mediaId, user: user, userSettings : userSettings )
123
+ @objc public class func configure( sakId: String , mediaId: String , user: User = User ( ) , settings : Settings ? = nil ) {
124
+ sharedInstance = UserReport ( sakId: sakId, mediaId: mediaId, user: user, settings : settings )
125
125
}
126
126
127
127
/**
@@ -196,17 +196,17 @@ private var sharedInstance: UserReport?
196
196
//==========================================================================================================
197
197
198
198
/**
199
- * Creates an instance with the specified `sakId`, `mediaId`, `user` and `userSettings `.
199
+ * Creates an instance with the specified `sakId`, `mediaId`, `user` and `settings `.
200
200
* Download config from backend and log visit.
201
201
*
202
202
* - parameter sakId: UserReport account SAK ID. (You can find these value on media setting page)
203
203
* - parameter mediaId: ID of media created in UserReport account. (You can find these value on media setting page)
204
204
* - parameter user: User information
205
- * - parameter userSettings: Settings set by user
205
+ * - parameter settings: Settings set by user
206
206
*
207
207
* - returns: The new `UserReport` instance.
208
208
*/
209
- private init ( sakId: String , mediaId: String , user: User , userSettings : Settings ? ) {
209
+ private init ( sakId: String , mediaId: String , user: User , settings : Settings ? ) {
210
210
super. init ( )
211
211
212
212
// Create info
@@ -235,12 +235,12 @@ private var sharedInstance: UserReport?
235
235
self . info. media. companyId = mediaSettings. companyId
236
236
237
237
// Set settings
238
- let settings = mediaSettings. settings
239
- Settings . defaultInstance = settings
240
- self . session. updateSettings ( settings )
238
+ let defaultSettings = mediaSettings. settings
239
+ Settings . defaultInstance = defaultSettings
240
+ self . session. updateSettings ( defaultSettings )
241
241
242
- if let usrSettings = userSettings {
243
- self . session. updateSettings ( usrSettings )
242
+ if let userSettings = settings {
243
+ self . session. updateSettings ( userSettings )
244
244
}
245
245
case . failure( let error) :
246
246
self . logger. log ( " Failed get config. Error: \( error. localizedDescription) " , level: . error)
0 commit comments